-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
38 lines (34 loc) · 1.02 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
#!/usr/bin/env python
import common_tools
from pathlib import Path
from setuptools import setup, find_packages
def read(*names):
values = {}
for name in names:
value = ''
for extension in ('.txt', '.md'):
filename = name + extension
if Path(filename).is_file():
with open(filename) as f:
value = f.read()
break
values[name] = value
return values
description = '''%(README)s
%(CHANGES)s''' % read('README', 'CHANGES')
setup(
name = 'common_tools',
version = common_tools.__version__,
description = 'a set of tools',
long_description = description,
packages = find_packages(),
entry_points={'console_scripts': [
'tree-cli = common_tools.tree_cli:cmd_runner',
'heapsort = common_tools.heapsort:runner',
'vxlan-pcap = common_tools.pcap_vxlan:runner',
]},
install_requires=[
'python-libpcap',
'Cython'
]
)