-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
38 lines (33 loc) · 1.21 KB
/
setup.py
File metadata and controls
38 lines (33 loc) · 1.21 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
from setuptools import setup, find_packages
from codecs import open
import os
# Get the directory where this current file is saved
here = os.path.abspath(os.path.dirname(__file__))
# Read the README.md file
with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
# Read the version from version.txt
version_file = os.path.join(here, 'resppredict', 'version.txt')
with open(version_file, 'r') as f:
__version__ = f.read().strip()
# Read requirements from requirements.txt
requirements = []
requirements_file = os.path.join(here, 'requirements.txt')
if os.path.exists(requirements_file):
with open(requirements_file) as f:
requirements = f.read().splitlines()
setup(
name='resppredict',
python_requires='>=3.11',
version=__version__,
long_description=long_description,
long_description_content_type='text/markdown', # Important for PyPI
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.11',
],
package_dir={'resppredict': 'resppredict'},
install_requires=requirements, # Use the requirements from requirements.txt
)