-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
executable file
·73 lines (63 loc) · 2.03 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
__title__ = 'opennms_client'
__version__ = '0.2.3'
__author__ = 'Manuel Villarejo'
__author_email__ = '[email protected]'
__license__ = 'MIT License'
__copyright__ = 'Copyright 2015 Manuel Villarejo'
packages = [
__title__
]
if sys.argv[-1] == 'build':
os.system('python setup.py sdist')
os.system('sphinx-apidoc -f -o docs/source/ {}'.format(__title__))
os.system('cd docs && make html')
sys.exit()
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
with open('requirements.txt') as f:
requires = f.read().splitlines()
with open('README.rst') as f1:
with open('CHANGELOG.rst') as f2:
long_desc = f1.read() + '\n\n' + f2.read()
setup(
name=__title__,
version= __version__,
description="A simple package to manage openNMS.",
long_description=long_desc,
url='https://github.com/mvillarejo/%s' % __title__,
license=__license__,
author=__author__,
author_email=__author_email__,
download_url='https://github.com/mvillarejo/%s/releases' % __title__,
platforms='any',
keywords='%s opennms client python' % __title__,
packages=packages,
package_data={'': ['LICENSE']},
package_dir={__title__: __title__},
include_package_data=True,
install_requires=requires,
tests_require=[],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Natural Language :: English',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Libraries :: Python Modules',
],
# extras_require={
# 'security': ['pyOpenSSL>=0.15.1', 'ndg-httpsclient', 'pyasn1'],
# },
)