-
Notifications
You must be signed in to change notification settings - Fork 18
/
setup.py
83 lines (68 loc) · 2.34 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/usr/bin/env python
"""
PIP installation configuration file
"""
import os
import sys
from setuptools import setup
from setuptools import find_packages
# Find local file path
localdir = os.path.split(os.path.abspath(__file__))[0]
# Using a function to make the damn linter happy
def version():
project_dir = os.path.join(localdir, "meraki_cli")
sys.path = [project_dir] + sys.path
import __version__
return __version__.version
with open(os.path.join(
localdir, "README.md"), "r", encoding='utf-8') as readme:
long_description = readme.read()
readme.close()
with open(os.path.join(
localdir, "requirements.txt"), "r", encoding='utf-8') as req_file:
install_requires = []
for package in req_file.read().split("\n"):
if package:
install_requires.append(package)
req_file.close()
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: MacOS',
'Operating System :: POSIX',
'Operating System :: Microsoft',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Internet',
'Topic :: Utilities',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System',
'Topic :: System :: Networking']
setup(name='meraki_cli',
version=version(),
description='A Simple CLI tool to automate and control your '
'Meraki Dashboard',
long_description=long_description,
long_description_content_type='text/markdown',
author='John W Kerns',
classifiers=CLASSIFIERS,
author_email='jkerns@packetsar.com',
url='https://github.com/PackeTsar/meraki-cli',
license="GNU",
packages=find_packages(),
install_requires=install_requires,
extras_require={'dev': ['jinja2', 'pytest', 'coverage', 'flake8',
'requests-mock', 'tox', 'mkdocs',
'mkdocs-material']},
entry_points={
'console_scripts': [
'meraki = meraki_cli.__main__:main'
]
}
)