forked from jazzband/Watson
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
77 lines (68 loc) · 2.42 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Setup file for the Watson distribution."""
from os.path import join
from setuptools import setup
with open('README.rst') as f:
readme = f.read()
# read package meta-data from version.py
pkg = {}
mod = join('watson', 'version.py')
exec(compile(open(mod).read(), mod, 'exec'), {}, pkg)
def parse_requirements(requirements, ignore=('setuptools',)):
"""Read dependencies from requirements file (with version numbers if any)
Note: this implementation does not support requirements files with extra
requirements
"""
with open(requirements) as f:
packages = set()
for line in f:
line = line.strip()
if line.startswith(('#', '-r', '--')):
continue
if '#egg=' in line:
line = line.split('#egg=')[1]
pkg = line.strip()
if pkg not in ignore:
packages.add(pkg)
return tuple(packages)
setup(
name='td-watson',
version=pkg['version'],
description='A wonderful CLI to track your time!',
url="https://github.com/TailorDev/Watson",
packages=['watson'],
author='TailorDev',
author_email='[email protected]',
license='MIT',
long_description=readme,
install_requires=parse_requirements('requirements.txt'),
tests_require=parse_requirements('requirements-dev.txt'),
entry_points={
'console_scripts': [
'watson = watson.__main__:cli',
]
},
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Customer Service",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"Intended Audience :: Other Audience",
"License :: OSI Approved :: MIT License",
"Environment :: Console",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Office/Business",
"Topic :: Utilities",
],
keywords='watson time-tracking time tracking monitoring report',
)