-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
52 lines (49 loc) · 2.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
43
44
45
46
47
48
49
50
51
52
# setup.py
from setuptools import setup, find_packages
import os
def read_version():
with open("trf/__version__.py") as f:
for line in f:
if line.startswith("version"):
# Extract the version string
return line.split("=")[1].strip().strip("'")
readme_path = os.path.join(os.path.dirname(__file__), 'trf', 'README.txt')
with open(readme_path, "r") as readme_file:
long_description = readme_file.read()
setup(
name="trf-dgraham", # Replace with your app's name
version=read_version(),
author="Daniel A Graham", # Replace with your name
author_email="[email protected]", # Replace with your email
description="This is a simple application for recording the sequence of occasions on which a task is completed and forecasting when the next completion might be needed.",
# long_description=open("README.md").read(), # If you have a README file
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/dagraham/trf-dgraham", # Replace with the repo URL if applicable
packages=find_packages(),
include_package_data=True, # Include non-Python files specified in MANIFEST.in
package_data={
'trf': ['README.txt'], # Ensure README.txt is included in the trf package
}, # py_modules=["trf"],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License", # Replace with your license
"Operating System :: OS Independent",
],
python_requires=">=3.9.0", # Specify the minimum Python version
install_requires=[
'prompt-toolkit>=3.0.24',
'ruamel.yaml>=0.15.88',
'python-dateutil>=2.7.3',
'persistent>=4.6.4', # Add persistent here
'ZODB>=5.6.0', # Add ZODB here
'transaction>=3.0.1', # Add transaction here
'lorem>=0.1.1',
'pyperclip>=1.7.0',
],
entry_points={
'console_scripts': [
'trf=trf.__main__:main', # Correct the path to `main` in `trf/trf.py`
],
},
)