forked from kontron/python-ixia
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
48 lines (43 loc) · 1.59 KB
/
setup.py
File metadata and controls
48 lines (43 loc) · 1.59 KB
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
#!/usr/bin/env python
from setuptools import setup, find_packages
from subprocess import Popen, PIPE
def get_git_version():
try:
p = Popen(['git', 'describe', '--tags', '--always', '--dirty'],
stdout=PIPE, stderr=PIPE)
p.stderr.close()
if p.wait() == 0:
return p.stdout.readlines()[0].strip()
except:
pass
raise AssertionError('Could not find the version number')
version = get_git_version()
with open('pyixia/version.py', 'w') as f:
f.write('# This file was autogenerated by setup.py\n')
f.write('__version__ = \'%s\'\n' % (version,))
setup(name = 'pyixia',
version = version,
description = 'Ixia tools',
author = 'Michael Walle',
author_email = 'michael.walle@kontron.com',
packages = find_packages(),
url = 'http://github.com/kontron/python-ixia',
license = 'LGPLv2+',
classifiers = [
'Development Status :: 3 - Alpha',
'Environment :: Console',
'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Libraries :: Python Modules',
],
entry_points = {
'console_scripts': [
'ixia_cli = pyixia.cli:main',
'ixia_tcl_cli = pyixia.tcl_cli:main',
],
},
include_package_data = True,
)