-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
66 lines (53 loc) · 1.72 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
import io
import os
import shutil
from setuptools import Command, find_packages, setup
from modules.__version__ import version
class CleanCommand(Command):
"""Custom clean command to tidy up the project root."""
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
for directory in ["dist", "build", "*.egg-info"]:
if os.path.isdir(directory):
print(f"Removing directory: {directory}")
shutil.rmtree(directory)
elif os.path.isfile(directory):
print(f"Removing file: {directory}")
os.remove(directory)
DESCRIPTION = "Record and report times spent in various activities."
here = os.path.abspath(os.path.dirname(__file__))
try:
with io.open(os.path.join(here, "README.md"), encoding="utf-8") as f:
long_description = "\n" + f.read()
except FileNotFoundError:
long_description = DESCRIPTION
setup(
name="timemate",
version=version,
description=DESCRIPTION,
long_description=long_description,
long_description_content_type="text/markdown",
author="Daniel A Graham",
author_email="dnlgrhm@gmail.com",
packages=find_packages(),
cmdclass={"clean": CleanCommand},
install_requires=[
"click",
"click-shell",
"prompt_toolkit",
"python-dateutil",
"rich",
"pyyaml",
],
python_requires=">=3.9",
url="https://github.com/dagraham/timemate", # Adjust based on the minimum Python version your app supports
entry_points={
"console_scripts": [
"timemate=modules.__main__:main", # Replace `your_module_name` with the actual module
],
},
)