-
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
Upload to TestPyPI silently failed. #742
Comments
Thanks for reporting this! I am not sure why the upload does not fail when it should but this is definitely a bug. I will investigate and get back to you. |
Related to #239 ? |
@jgirardet I guess so. I tried the same thing as your comment on #239 . >>> subprocess.check_output('poetry --version', shell=True).decode()
'Poetry 0.12.10\n'
>>> subprocess.check_call('poetry publish -r testpypi --username kk6 --password PASSWORD', shell=True)
Publishing kk6-demo (0.1.0) to testpypi
- Uploading kk6-demo-0.1.0.tar.gz 100%
- Uploading kk6_demo-0.1.0-py3-none-any.whl 100%
0 Actually, the package could not be uploaded. |
Thanks for posting this. My
succeeded. |
I noticed similar behavior against devpi-server. My mistake was to use I found by looking at the server log that the server responded with a 200 http code:
Using the correct URL, the log indicates that the server responds with a 200 http code:
|
This behavior is common for most poetry commands I guess.
|
This issue with the |
Version |
This bug seems to still be here
using the
|
I am experiencing the bug in Poetry 1.0.3 |
While uploading to TestPypi,
|
Thanks @brentspector, adding the trailing slash in the config works for me. Using this fails silently: poetry config repositories.testpypi https://test.pypi.org/legacy
poetry publish -r testpypi Adding the slash works, and the package becomes available on testpypi: poetry config repositories.testpypi https://test.pypi.org/legacy/
poetry publish -r testpypi In both cases the output is identical. |
I think the doc should use https://test.pypi.org/simple/ instead of https://foo.bar/simple/ which feels like a fake URL. |
When I use |
Going to close and duplicate this onto #6687 as more discussion has happened there. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).https://gist.github.com/kk6/47980a543bc3f249f2bbe1d91660610d
Issue
I tried uploading the test package to TestPyPI using Poetry.
As far as looking at the output, the upload seems to be successful. However, when I look at TestPyPI's own project list, I can not find the package I uploaded earlier.
So, trying uploading in the same way using
twine
as a test,HTTPError: 400 Client Error
returned.It seems to be caused by not setting the homepage, so I added the following settings to pyproject.toml.
When I tried uploading again with Poetry, I succeeded this time.
This time it was added to https://test.pypi.org/manage/projects/ properly.
If homepage is not set in
pyproject.toml
, I think that Poetry probably receivedHTTPError: 400 Client Error
, but in that case I thought that should be displayed.The text was updated successfully, but these errors were encountered: