-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
31 lines (28 loc) · 883 Bytes
/
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
import subprocess
from setuptools import setup, find_packages
with open('requirements.txt') as f:
requirements = f.read().splitlines()
def get_version():
try:
return subprocess.check_output(['git', 'describe', '--tags', '--always']).strip().decode("utf-8")
except:
return "0.0.dev0"
setup(
name='ukwa-manage',
version=get_version(),
packages=find_packages(),
install_requires=requirements,
include_package_data=True,
license='Apache 2.0',
long_description=open('README.md').read(),
entry_points={
'console_scripts': [
'trackdb=lib.trackdb.cmd:main',
'windex=lib.windex.cmd:main',
'store=lib.store.cmd:main',
'docharv=lib.docharvester.cmd:main',
'tidy-logs=lib.store.tidy_logs:main',
'tidy-warcs=lib.store.tidy_warcs:main'
]
}
)