|
4 | 4 | import io |
5 | 5 | import os |
6 | 6 |
|
7 | | -from pkg_resources import Requirement |
8 | 7 | from setuptools import find_packages, setup |
9 | 8 |
|
10 | 9 | import versioneer |
|
25 | 24 | URL = "https://github.com/Chris-hughes10/func-to-script" |
26 | 25 | |
27 | 26 | AUTHOR = "Chris Hughes" |
28 | | -REQUIRES_PYTHON = ">=3.7.0" |
| 27 | +REQUIRES_PYTHON = ">=3.8.0" |
29 | 28 | VERSION = versioneer.get_version() |
30 | 29 |
|
31 | 30 | FILEPATH = os.path.abspath(os.path.dirname(__file__)) |
32 | | -REQUIRED = [] |
33 | 31 |
|
34 | 32 | with open("requirements.txt", "r") as f: |
35 | | - for line in f.readlines(): |
36 | | - try: |
37 | | - REQUIRED.append(str(Requirement.parse(line))) |
38 | | - except ValueError: |
39 | | - pass |
| 33 | + REQUIRED = [line.strip() for line in f if line.strip() and not line.startswith('#')] |
40 | 34 |
|
41 | 35 | # Import the README and use it as the long-description. |
42 | 36 | # Note: this will only work if 'README.md' is present in your MANIFEST.in file! |
|
69 | 63 | "Programming Language :: Python", |
70 | 64 | "Programming Language :: Python :: 3", |
71 | 65 | "Programming Language :: Python :: 3.7", |
| 66 | + "Programming Language :: Python :: 3.8", |
| 67 | + "Programming Language :: Python :: 3.9", |
| 68 | + "Programming Language :: Python :: 3.10", |
| 69 | + "Programming Language :: Python :: 3.11", |
| 70 | + "Programming Language :: Python :: 3.12", |
72 | 71 | "Programming Language :: Python :: Implementation :: CPython", |
73 | 72 | ], |
74 | 73 | ) |
0 commit comments