-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
54 lines (49 loc) · 1.96 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
#!/usr/bin/env python
import os
try:
import configparser
except ImportError:
import ConfigParser as configparser
# When one runs pip install from the git repo, the setup.ini
# doesn't exist. But we still have here a full git repo with
# all the git log and with the Makefile.
#
# So just try to use it.
try:
os.stat('setup.ini')
except:
os.system('make force-version')
config = configparser.ConfigParser()
config.read('setup.ini')
module = __import__(config.get('setup', 'setuplib'),
globals(),
locals(),
['setup'], 0)
setup = getattr(module, 'setup')
readme = open("README.md", "r")
setup(name='dtcd',
version=config.get('setup', 'release'),
description='Dynamic network blocks allocation via HTTP',
author='Peter V. Saveliev',
author_email='[email protected]',
url='https://github.com/svinota/dtcd',
license='dual license GPLv2+ and Apache v2',
packages=['dtcd',],
scripts=['./src/dtcd', ],
classifiers=['License :: OSI Approved :: GNU General Public ' +
'License v2 or later (GPLv2+)',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: ' +
'Python Modules',
'Topic :: System :: Networking',
'Topic :: System :: Systems Administration',
'Operating System :: POSIX :: Linux',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Intended Audience :: Telecommunications Industry',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Development Status :: 4 - Beta'],
long_description=readme.read())