-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·45 lines (38 loc) · 1.2 KB
/
setup.py
File metadata and controls
executable file
·45 lines (38 loc) · 1.2 KB
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
#!/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="tt-time-tracker",
version="1.1.1",
author="Bogdan Maxim",
author_email="bogdan.maxim@metamorphant.de",
packages=find_packages(),
include_package_data=True,
scripts=[],
url="https://github.com/dribnif/tt",
description="A simple, precise command-line based time tracker",
long_description=read("README.md", "CHANGES.md"),
long_description_content_type='text/markdown',
entry_points={
"console_scripts": [
"tt = tt.tt:main",
]
},
install_requires=["colorama", "pyyaml", 'tzlocal==2.1', 'pytz', 'mock'],
setup_requires=["pytest-runner"] if testing else [],
tests_require=["pytest", "cram", "pytest-cram"],
extras_require={
"docs": ["ghp-import", "pygreen"],
},
python_requires='>=3.6'
)