-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Read the Python support from the .python-version file to keep a single source of truth.
- Loading branch information
1 parent
c2580e7
commit cc8af27
Showing
2 changed files
with
20 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,11 @@ | |
long_description = f.read() | ||
|
||
|
||
with open("tests/.python-version", "r") as f: | ||
python_versions = sorted(f.read().splitlines()) | ||
|
||
min_python_version = python_versions[0].split(".") | ||
|
||
setup( | ||
name="envier", | ||
description="Python application configuration via the environment", | ||
|
@@ -14,19 +19,16 @@ | |
author_email="[email protected]", | ||
classifiers=[ | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 2.7", | ||
"Programming Language :: Python :: 3.5", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
] | ||
+ [ | ||
"Programming Language :: Python :: %s.%s" % (v[0], v[1]) | ||
for v in [v.split(".") for v in python_versions] | ||
], | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
license="MIT", | ||
packages=find_packages(exclude=["tests*"]), | ||
python_requires=">=2.7", | ||
python_requires=">=%s.%s" % (min_python_version[0], min_python_version[1]), | ||
install_requires=["typing; python_version<'3.5'"], | ||
extras_require={"mypy": ["mypy"]}, | ||
setup_requires=["setuptools_scm"], | ||
|