|
| 1 | +import importlib |
1 | 2 | import os |
2 | 3 |
|
3 | 4 | from setuptools import setup |
4 | 5 |
|
| 6 | +from BaseExtensions.Setup import GetRequirements, ReadFromFile |
5 | 7 | from src.PythonDebugTools import __author__, __classifiers__, __email__, __license__, __maintainer__, __maintainer_email__, __name__, __short_description__, __url__, __version__ |
6 | 8 |
|
7 | 9 |
|
8 | 10 |
|
9 | 11 |
|
10 | | -with open(os.path.abspath("requirements.txt"), "r") as f: |
11 | | - install_requires = f.readlines() |
| 12 | +long_description = ReadFromFile(os.path.abspath("PyPiReadme.md")) |
12 | 13 |
|
13 | | -with open(os.path.abspath("README.md"), "r") as f: |
14 | | - long_description = f.read() |
15 | | - |
16 | | -data_files = [ |
17 | | - f'{__name__}/*.py' |
18 | | - ] |
| 14 | +install_requires = GetRequirements(os.path.abspath('./requirements.txt')) |
19 | 15 |
|
20 | 16 | setup(name=__name__, |
21 | 17 | version=__version__, |
22 | 18 | packages=[__name__], |
23 | 19 | url=__url__, |
24 | | - # download_url=f'https://github.com/Jakar510/PythonDebugTools/releases/tag/{version}', |
25 | 20 | license=__license__ or 'GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007', |
26 | 21 | author=__author__, |
27 | 22 | author_email=__email__, |
|
35 | 30 | keywords='switch switch-case case', |
36 | 31 | package_dir={ __name__: f'src/{__name__}' }, |
37 | 32 | package_data={ |
38 | | - __name__: data_files, |
| 33 | + __name__: [f'{__name__}/*.py'], |
39 | 34 | }, |
40 | 35 | ) |
0 commit comments