forked from sharat87/ti
-
Notifications
You must be signed in to change notification settings - Fork 16
/
setup.py
executable file
·42 lines (36 loc) · 1.06 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
#!/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.1.3.dev0",
author="Shrikant Sharat & Trevor Bekolay",
author_email="[email protected]",
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:main",
]
},
install_requires=["colorama", "pyyaml"],
setup_requires=["pytest-runner"] if testing else [],
tests_require=["pytest", "cram", "pytest-cram"],
extras_require={
"docs": ["ghp-import", "pygreen"],
}
)