Skip to content

Commit

Permalink
Update python_requires value for new PyPI upload check
Browse files Browse the repository at this point in the history
- 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/`
  • Loading branch information
shailshouryya committed May 30, 2023
1 parent 5a91140 commit 21bd027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@
# package_dir={'':'src'},


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

Expand Down

0 comments on commit 21bd027

Please sign in to comment.