-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
78 lines (70 loc) · 2.45 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
78
"""The setup script."""
import os
from setuptools import find_packages, setup
REQUIREMENTS = [
"click>=8.1.1",
"colorama>=0.4.4",
"dateparser>=1.1.4",
"tzlocal>=4.0",
"backports.zoneinfo>=0.2.1;python_version < '3.9'",
"click-default-group>=1.2.2",
"peewee>=3.15.2",
"platformdirs>=2.6.0",
]
curr_dir = os.path.abspath(os.path.dirname(__file__))
def get_file_text(file_name):
with open(os.path.join(curr_dir, file_name), encoding="utf-8") as in_file:
return in_file.read()
_init = {}
_init_file = os.path.join(curr_dir, "workedon", "__init__.py")
with open(_init_file) as fp:
exec(fp.read(), _init)
name = _init["__name__"]
author = _init["__author__"]
email = _init["__email__"]
version = _init["__version__"]
setup(
name=name,
version=version,
description="Work tracking from your shell.",
long_description=get_file_text("README.md") + "\n\n" + get_file_text("CHANGELOG.md"),
long_description_content_type="text/markdown",
author=author,
author_email=email,
maintainer=author,
maintainer_email=email,
license="MIT license",
packages=find_packages(include=["workedon"], exclude=["tests", "tests.*"]),
include_package_data=True,
zip_safe=False,
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Natural Language :: English",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries :: Python Modules",
],
url="https://github.com/viseshrp/workedon",
project_urls={
"Documentation": "https://github.com/viseshrp/workedon#readme",
"Changelog": "https://github.com/viseshrp/workedon/blob/develop/CHANGELOG.md",
"Bug Tracker": "https://github.com/viseshrp/workedon/issues",
"Source Code": "https://github.com/viseshrp/workedon",
"CI": "https://github.com/viseshrp/workedon/actions",
},
python_requires=">=3.7",
keywords="workedon work worklog log journal",
install_requires=REQUIREMENTS,
entry_points={
"console_scripts": [
"workedon=workedon.__main__:main",
],
},
)