forked from svinota/pyroute2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
63 lines (56 loc) · 2.22 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
#!/usr/bin/env python
'''
Please be aware, that `setup.py.in` is just a template.
Strings between `@` will be replaced with variables from
Makefile, see target `setup.py`
RELEASE will be replaced with `git describe`
SETUPLIB by default is `distutils.core`
To use `setuptools`, run `make ... setuplib=setuptools`
'''
try:
import configparser
except ImportError:
import ConfigParser as configparser
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='pyroute2',
version=config.get('setup', 'release'),
description='Python Netlink library',
author='Peter V. Saveliev',
author_email='[email protected]',
url='https://github.com/svinota/pyroute2',
license='dual license GPLv2+ and Apache v2',
packages=['pyroute2',
'pyroute2.config',
'pyroute2.dhcp',
'pyroute2.ipdb',
'pyroute2.netns',
'pyroute2.netns.process',
'pyroute2.netlink',
'pyroute2.netlink.generic',
'pyroute2.netlink.ipq',
'pyroute2.netlink.nfnetlink',
'pyroute2.netlink.rtnl',
'pyroute2.netlink.taskstats',
'pyroute2.netlink.nl80211',
'pyroute2.protocols',
'pyroute2.remote'],
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',
'Operating System :: POSIX',
'Intended Audience :: Developers',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Development Status :: 4 - Beta'],
long_description=readme.read())