-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
publish command doesn't publish to PyPI despite showing no errors #3397
Comments
I can confirm the same behavior when attempting to publish to a gitlab pypi clone. Trying the same publishing sequence with twine showed that the upload of the files was successful, but registering the new versions was getting rejected by a 403 error due to permissions. Publishing with twine: $ python -m twine upload --repository gitlab dist/* --verbose
Uploading distributions to https:/---.com/api/v4/projects/1330/packages/pypi
dist/fetch_config-0.1.4-py3-none-any.whl (3.8 KB)
dist/fetch_config-0.1.5-py3-none-any.whl (3.8 KB)
dist/fetch_config-0.4.4-py3-none-any.whl (4.2 KB)
dist/fetch_config-0.4.5-py3-none-any.whl (4.2 KB)
dist/fetch_config-0.4.6-py3-none-any.whl (5.5 KB)
dist/fetch_config-0.4.7-py3-none-any.whl (5.5 KB)
dist/fetch_config-0.4.8-py3-none-any.whl (5.5 KB)
dist/fetch-config-0.1.4.tar.gz (3.3 KB)
dist/fetch-config-0.1.5.tar.gz (3.4 KB)
dist/fetch-config-0.4.4.tar.gz (3.8 KB)
dist/fetch-config-0.4.5.tar.gz (3.8 KB)
dist/fetch-config-0.4.6.tar.gz (4.6 KB)
dist/fetch-config-0.4.7.tar.gz (4.6 KB)
dist/fetch-config-0.4.8.tar.gz (4.6 KB)
Uploading fetch_config-0.1.4-py3-none-any.whl
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 7.33k/7.33k [00:00<00:00, 109kB/s]
Content received from server:
{"message":"403 Forbidden"}
HTTPError: 403 Forbidden from https:/---.com/api/v4/projects/1330/packages/pypi
Forbidden publishing with poetry: $ poetry publish --repository=gitlab
Publishing fetch-config (0.4.8) to gitlab
URL: http://---.com/api/v4/projects/1214/packages/pypi
- Uploading fetch-config-0.4.8.tar.gz 100%
URL: http://---.com/api/v4/projects/1214/packages/pypi
- Uploading fetch_config-0.4.8-py3-none-any.whl 100%
$ echo $?
0 Even though the package wasn't registered, the command exited with a success code. Once I resolved the permissions issue, both the twine and the poetry publish command successfully published the package |
Should help with cases like python-poetry#3397 The existing tests in tests/publishing/test_uploader.py should verify that this doesn't cause regressions.
Should help with cases like python-poetry#3397 The existing tests in tests/publishing/test_uploader.py should verify that this doesn't cause regressions.
Should help with cases like python-poetry#3397 The existing tests in tests/publishing/test_uploader.py should verify that this doesn't cause regressions.
Should help with cases like #3397 The existing tests in tests/publishing/test_uploader.py should verify that this doesn't cause regressions.
Should help with cases like python-poetry#3397 The existing tests in tests/publishing/test_uploader.py should verify that this doesn't cause regressions.
Should help with cases like python-poetry#3397 The existing tests in tests/publishing/test_uploader.py should verify that this doesn't cause regressions.
by using poetry |
-vvv
option).Issue
I have an issue with poetry not publishing the package to PyPI. The project is called
dpaster
, however the PyPI repo name is calledthepaster
. I've configured it to point to the remote repository:The output of config command:
The output of publish command:
As you can see, it doesn't report any error, however, the project ends up not getting published.
I realize it works when the name in pyproject.toml is the same as the remote repository repo name, but IMO this should throw an error if it's not getting published.
The text was updated successfully, but these errors were encountered: