|
2 | 2 | Setup file for the PyThreadkiller package. |
3 | 3 | """ |
4 | 4 |
|
5 | | -__version__ = "2024.05.19.01" |
| 5 | +__version__ = "3.0.8" |
6 | 6 | __author__ = "Muthukumar Subramanian" |
7 | 7 |
|
8 | | -import re |
9 | 8 | import os |
10 | 9 | from setuptools import setup, find_packages |
11 | 10 |
|
12 | | -# Paths to your README and change log files |
13 | | -readme_path = os.path.join(os.path.dirname(__file__), 'README.md') |
14 | | -changelog_path = os.path.join(os.path.dirname(__file__), 'CHANGELOG.md') |
15 | | -requirements_path = os.path.join(os.path.dirname(__file__), 'requirements.txt') |
| 11 | +BASE_DIR = os.path.abspath(os.path.dirname(__file__)) |
16 | 12 |
|
17 | | -# Read README file |
18 | | -with open(readme_path, encoding='UTF-8') as f: |
| 13 | +# Read README |
| 14 | +with open(os.path.join(BASE_DIR, "README.md"), encoding="utf-8") as f: |
19 | 15 | readme_content = f.read() |
20 | 16 |
|
21 | | -# Read CHANGELOG file |
| 17 | +# Read CHANGELOG |
| 18 | +changelog_path = os.path.join(BASE_DIR, "CHANGELOG.md") |
22 | 19 | if os.path.exists(changelog_path): |
23 | | - with open(changelog_path, encoding='UTF-8') as f: |
| 20 | + with open(changelog_path, encoding="utf-8") as f: |
24 | 21 | changelog_content = f.read() |
25 | 22 | else: |
26 | | - changelog_content = '' |
| 23 | + changelog_content = "" |
27 | 24 |
|
28 | | -# Combine README and CHANGELOG content for the long description |
29 | | -long_description = readme_content + '\n\n' + changelog_content |
30 | | - |
31 | | -# Read requirements file |
32 | | -requirements_file_list = [] |
33 | | -if os.path.exists(requirements_path): |
34 | | - with open(requirements_path, encoding='UTF-8') as f: |
35 | | - requirements_file = f.read() |
36 | | - requirements_file_list = [re.sub(r'(\w+)~.*', r'\1', i) for i in requirements_file.split('\n')] |
| 25 | +long_description = readme_content + "\n\n" + changelog_content |
37 | 26 |
|
38 | 27 | setup( |
39 | | - name='PyThreadKiller', |
40 | | - version='3.0.6', |
41 | | - description='A utility to manage and kill threads in Python applications', |
| 28 | + name="pythreadkiller", |
| 29 | + version=__version__, |
| 30 | + description="A utility to manage and kill threads in Python applications", |
42 | 31 | long_description=long_description, |
43 | | - long_description_content_type='text/markdown', |
44 | | - author='Muthukumar Subramanian', |
| 32 | + long_description_content_type="text/markdown", |
| 33 | + author=__author__, |
| 34 | + author_email="kumarmuthuece5@gmail.com", |
45 | 35 | url="https://github.com/kumarmuthu/PyThreadKiller", |
46 | 36 | project_urls={ |
47 | 37 | "Homepage": "https://github.com/kumarmuthu/PyThreadKiller", |
48 | 38 | "Source": "https://github.com/kumarmuthu/PyThreadKiller", |
49 | 39 | "Tracker": "https://github.com/kumarmuthu/PyThreadKiller/issues" |
50 | 40 | }, |
51 | | - author_email='kumarmuthuece5@gmail.com', |
52 | | - install_requires=requirements_file_list, |
53 | | - packages=find_packages('.'), |
| 41 | + packages=find_packages(), |
| 42 | + python_requires=">=3.8", |
54 | 43 | classifiers=[ |
55 | | - 'Development Status :: 3 - Alpha', |
56 | | - 'Intended Audience :: Developers', |
57 | | - 'License :: OSI Approved :: MIT License', |
58 | | - 'Programming Language :: Python :: 3', |
59 | | - 'Programming Language :: Python :: 3.12', |
60 | | - 'Programming Language :: Python :: 3.11', |
61 | | - 'Programming Language :: Python :: 3.10', |
62 | | - 'Programming Language :: Python :: 3.9', |
63 | | - 'Programming Language :: Python :: 3.8', |
| 44 | + "Development Status :: 3 - Alpha", |
| 45 | + "Intended Audience :: Developers", |
| 46 | + "License :: OSI Approved :: MIT License", |
| 47 | + "Programming Language :: Python :: 3", |
| 48 | + "Programming Language :: Python :: 3.8", |
| 49 | + "Programming Language :: Python :: 3.9", |
| 50 | + "Programming Language :: Python :: 3.10", |
| 51 | + "Programming Language :: Python :: 3.11", |
| 52 | + "Programming Language :: Python :: 3.12", |
64 | 53 | ], |
65 | | - python_requires='>=3.8', |
66 | | - package_dir={'': '.'} |
67 | 54 | ) |
0 commit comments