-
Notifications
You must be signed in to change notification settings - Fork 311
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
requires_dist is null in json api when sdist is uploaded before wheel package #761
Comments
This is new territory for me; thanks for the detailed writeup. One thing that wasn't clear to me was the end result of the Some searching yielded some existing issues for this, making me think the issue is not in Twine: pypa/setuptools#1805 As you noted, this isn't an issue in practice, because Twine will always upload the wheel first: twine/twine/commands/__init__.py Line 48 in 2afd7ad
Why are you doing that? 😉 |
I am building 2 packages as part of our release workflow. The server package and the client package. These assets are then tested and published to PyPI. The packages are both in the |
If you're using the same auth to upload both and not project specific tokens, you do not need to run separate commands. Even if you really wanted to continue doing that, you could do |
I'm curious about your configuration; do you have a repo that you can share? I've generally assumed one Project per directory:
So, in my head, you'd have a client and server Project, each of which generates two Packages: a Source and a Wheel. That said, I echo @sigmavirus24 comment. |
I'm imagining something like
Where both rely on modules in |
I'm going to close this due to inactivity, and because it doesn't seem like an issue with Twine. We can reopen it if necessary |
Your Environment
Thank you for taking the time to report an issue.
To more efficiently resolve this issue, we'd like to know some basic information about your system and setup.
Your operating system: Fedora 33
Version of python you are running:
Python 3.9.4
pip
twine version 3.4.1 (importlib_metadata: 4.0.1, pkginfo: 1.7.0, requests: 2.24.0, requests-toolbelt: 0.9.1, tqdm: 4.60.0)
If you're having issues uploading a specific package, you must include a copy of the following:
PKG-INFO
file.pypirc
file (REMOVE ALL USERNAMES & PASSWORDS BEFORE UPLOADING)The Issue
When I upload the sdist of the package first, the
requires_dist
field in the JSON API is set to null. When I upload the wheel package first, therequires_dist
field in the JSON API is set correctly.This is an example of the sdist being uploaded first: https://test.pypi.org/pypi/gerrods-test/0.0.1/json
This is an example of the wheel being uploaded first: https://test.pypi.org/pypi/gerrods-test/0.0.2/json
Steps to Reproduce
Upload sdist before upload the wheel package.
This issue is masked when
twine upload dist/*
is called because the wheel is always uploaded first..The text was updated successfully, but these errors were encountered: