-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
78 lines (73 loc) · 2.9 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
#!/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='pyroute2',
version=config.get('setup', 'release'),
description='Python Netlink library',
author='Peter V. Saveliev',
author_email='peter@svinota.eu',
url='https://github.com/svinota/pyroute2',
license='dual license GPLv2+ and Apache v2',
packages=['pyroute2',
'pyroute2.bsd',
'pyroute2.cli',
'pyroute2.config',
'pyroute2.dhcp',
'pyroute2.ipdb',
'pyroute2.iproute',
'pyroute2.ndb',
'pyroute2.netns',
'pyroute2.netns.process',
'pyroute2.netlink',
'pyroute2.netlink.generic',
'pyroute2.netlink.ipq',
'pyroute2.netlink.nfnetlink',
'pyroute2.netlink.rtnl',
'pyroute2.netlink.rtnl.ifinfmsg',
'pyroute2.netlink.rtnl.ifinfmsg.plugins',
'pyroute2.netlink.rtnl.tcmsg',
'pyroute2.netlink.taskstats',
'pyroute2.netlink.nl80211',
'pyroute2.netlink.devlink',
'pyroute2.netlink.diag',
'pyroute2.netlink.event',
'pyroute2.nftables',
'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',
'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())