Skip to content

Commit 21bd027

Browse files
committed
Update python_requires value for new PyPI upload check
- attempting to upload the package with `twine` to Test PyPI currently fails: ``` $ twine upload --repository-url https://test.pypi.org/legacy/ dist/save-thread-result-0.1.1.tar.gz dist/save-thread-result-0.1.1.tar.gz.asc dist/save_thread_result-0.1.1-py3-none-any.whl dist/save_thread_result-0.1.1-py3-none-any.whl.asc --verbose Uploading distributions to https://test.pypi.org/legacy/ INFO dist/save_thread_result-0.1.1-py3-none-any.whl (9.3 KB) INFO Signed with dist/save_thread_result-0.1.1-py3-none-any.whl.asc INFO dist/save-thread-result-0.1.1.tar.gz (15.6 KB) INFO Signed with dist/save-thread-result-0.1.1.tar.gz.asc INFO Response from https://test.pypi.org/legacy/: 400 '>=3.0.*, <4' is an invalid value for Requires-Python. Error: Invalid specifier in requirement. See https://packaging.python.org/specifications/core-metadata for more information. INFO <html> <head> <title>400 '>=3.0.*, <4' is an invalid value for Requires-Python. Error: Invalid specifier in requirement. See https://packaging.python.org/specifications/core-metadata for more information.</title> </head> <body> <h1>400 '>=3.0.*, <4' is an invalid value for Requires-Python. Error: Invalid specifier in requirement. See https://packaging.python.org/specifications/core-metadata for more information.</h1> The server could not comply with the request since it is either malformed or otherwise incorrect.<br/><br/> &#x27;&gt;=3.0.*, &lt;4&#x27; is an invalid value for Requires-Python. Error: Invalid specifier in requirement. See https://packaging.python.org/specifications/core-metadata for more information. </body> </html> ERROR HTTPError: 400 Bad Request from https://test.pypi.org/legacy/ '>=3.0.*, <4' is an invalid value for Requires-Python. Error: Invalid specifier in requirement. See https://packaging.python.org/specifications/core-metadata for more information. ``` - this change should hopefully address the `HTTPError: 400 Bad Request from https://test.pypi.org/legacy/`
1 parent 5a91140 commit 21bd027

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@
314314
# package_dir={'':'src'},
315315

316316

317-
python_requires = '>=3.0.*, <4',
317+
python_requires = '>3.0, <4',
318318
install_requires = [], # Optional
319319
# https://packaging.python.org/discussions/install-requires-vs-requirements/
320320

0 commit comments

Comments
 (0)