-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·86 lines (75 loc) · 2.28 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
79
80
81
82
83
84
85
86
"""For building and installing TimeTracker"""
__copyright__ = 'Copyright (C) 2025-present, DV Klopfenstein, PhD. All rights reserved'
__author__ = "DV Klopfenstein, PhD"
from os.path import join
from os.path import abspath
from os.path import dirname
from setuptools import setup
PACKAGES = [
'timetracker',
'timetracker.cmd',
'timetracker.cfg',
'timetracker.epoch',
]
PACKAGE_DIRS = {p:join(*p.split('.')) for p in PACKAGES}
def get_long_description():
"""Return the contents of the README.md as a string"""
dir_cur = abspath(dirname(__file__))
with open(join(dir_cur, 'README.md'), 'rb') as ifstrm:
return ifstrm.read().decode("UTF-8")
CONSOLE_SCRIPTS = [
'trk=timetracker.cli:main',
'timestr=timetracker.epoch.cli:main',
]
REQUIRES = [
'tomlkit',
'pytimeparse2',
'dateparser',
'python-docx',
]
KEYWORDS = [
"linux",
"cli",
"productivity",
"csv",
"history",
"collaboration",
"time-tracker",
"timetracker",
"csv-reading",
"csv-export",
"timetracking",
]
setup(
# The name of the project on PyPi
name='timetracker-csv',
# https://peps.python.org/pep-0440/
version='0.4a0',
author='DV Klopfenstein, PhD',
author_email='[email protected]',
packages=PACKAGES,
package_dir=PACKAGE_DIRS,
entry_points={
'console_scripts': CONSOLE_SCRIPTS,
},
# https://pypi.org/classifiers/
classifiers=[
'Programming Language :: Python',
'Environment :: Console',
'Intended Audience :: Science/Research',
'Development Status :: 1 - Planning',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Programming Language :: Python :: 3',
'Topic :: Office/Business :: Financial :: Spreadsheet',
],
url='http://github.com/dvklopfenstein/timetracking',
description="A lightweight, repo-based, command-line timetracker "
"that stores data in csv files",
long_description=get_long_description(),
long_description_content_type='text/markdown',
install_requires=REQUIRES,
# Needed for assignment expressions & the walrus operator
python_requires='>=3.8',
keywords=KEYWORDS,
)
# Copyright (C) 2025-present, DV Klopfenstein, PhD. All rights reserved