Skip to content

Commit adfe7fc

Browse files
authored
Update requirements and metadata (#47)
* Update requirements and metadata typing: python <3.8 (due to still not completed) setup_requires & python_requires in setup.py due to old setuptools logic project_urls for packaging * Move URLs to setup.cfg This attributes are parsed by modern setuptools only, so reduce warnings
1 parent feb82c4 commit adfe7fc

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ exec-helpers
66
.. image:: https://coveralls.io/repos/github/python-useful-helpers/exec-helpers/badge.svg?branch=master
77
:target: https://coveralls.io/github/python-useful-helpers/exec-helpers?branch=master
88
.. image:: https://readthedocs.org/projects/exec-helpers/badge/?version=latest
9-
:target: http://exec-helpers.readthedocs.io/
9+
:target: https://exec-helpers.readthedocs.io/
1010
:alt: Documentation Status
1111
.. image:: https://img.shields.io/pypi/v/exec-helpers.svg
1212
:target: https://pypi.python.org/pypi/exec-helpers

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ six>=1.10.0 # MIT
44
threaded>=1.0 # Apache-2.0
55
PyYAML>=3.12 # MIT
66
advanced-descriptors>=1.0 # Apache-2.0
7-
typing >= 3.6 ; python_version < "3.7"
7+
typing >= 3.6 ; python_version < "3.8"

setup.cfg

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,14 @@
11
[metadata]
22
name = exec-helpers
3+
project_urls =
4+
Bug Tracker = https://github.com/python-useful-helpers/exec-helpers/issues
5+
Documentation = https://exec-helpers.readthedocs.io/
36

4-
long_description = file: README.rst
57

68
[options]
79
zip_safe = False
810
packages = find:
911

10-
# While setuptools cannot deal with pre-installed incompatible versions,
11-
# setting a lower bound is not harmful - it makes error messages cleaner. DO
12-
# NOT set an upper bound on setuptools, as that will lead to uninstallable
13-
# situations as progressive releases of projects are done.
14-
# Blacklist setuptools 34.0.0-34.3.2 due to https://github.com/pypa/setuptools/issues/951
15-
# Blacklist setuptools 36.2.0 due to https://github.com/pypa/setuptools/issues/1086
16-
setup_requires =
17-
setuptools >= 21.0.0,!=24.0.0,!=34.0.0,!=34.0.1,!=34.0.2,!=34.0.3,!=34.1.0,!=34.1.1,!=34.2.0,!=34.3.0,!=34.3.1,!=34.3.2,!=36.2.0
18-
19-
python_requires = >=2.7.5,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*
20-
2112
[bdist_wheel]
2213
# This flag says that the code is written to work on both Python 2 and Python
2314
# 3. If at all possible, it is good practice to do this. If you cannot, you

setup.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,16 @@ def get_simple_vars_from_src(src):
267267
long_description=long_description,
268268
classifiers=classifiers,
269269
keywords=keywords,
270+
python_requires='>=2.7.5,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
271+
# While setuptools cannot deal with pre-installed incompatible versions,
272+
# setting a lower bound is not harmful - it makes error messages cleaner. DO
273+
# NOT set an upper bound on setuptools, as that will lead to uninstallable
274+
# situations as progressive releases of projects are done.
275+
# Blacklist setuptools 34.0.0-34.3.2 due to https://github.com/pypa/setuptools/issues/951
276+
# Blacklist setuptools 36.2.0 due to https://github.com/pypa/setuptools/issues/1086
277+
setup_requires="setuptools >= 21.0.0,!=24.0.0,"
278+
"!=34.0.0,!=34.0.1,!=34.0.2,!=34.0.3,!=34.1.0,!=34.1.1,!=34.2.0,!=34.3.0,!=34.3.1,!=34.3.2,"
279+
"!=36.2.0",
270280
extras_require={
271281
':python_version == "2.7"': [
272282
'futures>=1.0',

0 commit comments

Comments
 (0)