Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pypi seem to have change python-requires format '3' not valid #84

Closed
Carreau opened this issue Aug 27, 2016 · 3 comments
Closed

Pypi seem to have change python-requires format '3' not valid #84

Carreau opened this issue Aug 27, 2016 · 3 comments

Comments

@Carreau
Copy link
Contributor

Carreau commented Aug 27, 2016

Traceback (most recent call last):
  File "/Users/bussonniermatthias/.local/bin/flit", line 4, in <module>
    main()
  File "/Users/bussonniermatthias/.local/lib/python3.5/site-packages/flit/__init__.py", line 88, in main
    repo=args.repository)
  File "/Users/bussonniermatthias/.local/lib/python3.5/site-packages/flit/wheel.py", line 191, in wheel_main
    do_upload(wheel_path, wb.metadata, repo)
  File "/Users/bussonniermatthias/.local/lib/python3.5/site-packages/flit/upload.py", line 164, in do_upload
    upload_wheel(file, metadata, repo)
  File "/Users/bussonniermatthias/.local/lib/python3.5/site-packages/flit/upload.py", line 133, in upload_wheel
    resp.raise_for_status()
  File "/Users/bussonniermatthias/anaconda/lib/python3.5/site-packages/requests/models.py", line 837, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: requires_python: Invalid specifier in requirement. for url: https://upload.pypi.io/legacy/

See https://github.com/Carreau/warn/blob/8fbb2e0a4e8c46f88361ae3d690784444cc8ca5c/flit.ini and previous commit (uploading through warehouse)

I should likely check whether it's a warehouse thing but I want to make sure to fix flit docs if it's not the case.

@Carreau Carreau changed the title Pip seem to have change python-requires format '3' not valid Pypi seem to have change python-requires format '3' not valid Aug 27, 2016
@takluyver
Copy link
Member

The examples at https://www.python.org/dev/peps/pep-0345/#version-specifiers seem to show that a version specifier consisting of just a number is fine, and that 3 is a shorthand for >=3,<4. So I think we should try making an issue on Warehouse for it. They may say that the PEP should be changed, or that Warehouse is going to be more restrictive than the metadata spec, in which case we can handle that.

@takluyver
Copy link
Member

You've updated the docs, but I'll leave this open for now because it would also be good for flit to check this, so you can discover the problem before attempting to upload to warehouse.

@takluyver
Copy link
Member

Validation added in #154.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants