-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
66 lines (53 loc) · 1.93 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
import os
from setuptools import setup, find_packages
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
def strip_comments(l):
return l.split('#', 1)[0].strip()
def _pip_requirement(req):
if req.startswith('-r '):
_, path = req.split()
return reqs(*path.split('/'))
return [req]
def _reqs(*f):
return [
_pip_requirement(r) for r in (
strip_comments(l) for l in open(
os.path.join(os.getcwd(), *f)).readlines()
) if r]
def reqs(*f):
return [req for subreq in _reqs(*f) for req in subreq]
setup(
name='M4',
version='1.1',
packages=find_packages(),
include_package_data=True,
url='https://m4system.com',
license='AGPL3',
author='Daniel Gagnon',
author_email='[email protected]',
description='M is for Modern Monitoring and Management',
classifiers=[
'Development Status :: 3 - Alpha',
'License:: OSI Approved :: BSD License',
'Environment :: No Input/Output (Daemon)',
'Framework :: Django :: 1.11',
'Intended Audience :: Information Technology',
'Intended Audience :: Manufacturing',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Natural Language :: English',
'Natural Language :: French',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3.7',
'Programming Language :: JavaScript',
'Topic :: Home Automation',
'Topic :: System :: Networking'
],
install_requires=reqs('requirements.txt'),
scripts=[os.path.join('M4', 'manage.py')],
entry_points={'console_scripts': ['manage=M4.manage:main']},
)