forked from dribnif/ti
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·43 lines (36 loc) · 1.1 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
#!/usr/bin/env python
import io
import sys
from setuptools import find_packages, setup
def read(*filenames, **kwargs):
encoding = kwargs.get("encoding", "utf-8")
sep = kwargs.get("sep", "\n")
buf = []
for filename in filenames:
with io.open(filename, encoding=encoding) as f:
buf.append(f.read())
return sep.join(buf)
testing = bool({"pytest", "test"}.intersection(sys.argv))
setup(
name="ti",
version="0.9.0",
author="Shrikant Sharat & Trevor Bekolay",
author_email="tbekolay@gmail.com",
packages=find_packages(),
include_package_data=True,
scripts=[],
url="http://ti.sharats.me/",
description="A silly simple time tracker",
long_description=read("README.rst", "CHANGES.rst"),
entry_points={
"console_scripts": [
"ti = ti.ti:main",
]
},
install_requires=["colorama", "pyyaml", 'tzlocal', 'pytz', 'mock', 'lark-parser'],
setup_requires=["pytest-runner"] if testing else [],
tests_require=["pytest", "cram", "pytest-cram"],
extras_require={
"docs": ["ghp-import", "pygreen"],
}
)