Questions tagged [twine]

For questions about the Python package used for uploading distributions to the Python Package Index (PyPI).

Use the tag if your question is about any of the features found in the Twine package.

This can include, but is not limited to:

  • interacting with PyPI
  • uploading to PyPI

Twine is a utility for securely interacting with PyPI over HTTPS. PyPI is the Python Package Index - a repository of software for the Python programming language.

Twine is one of two ways to upload to PyPI, the other being through the "setup.py upload" command.

When tagging with consider tagging with as well.

145 questions
1
vote
1 answer

Broken Pipe Error when uploading to pypi with Twine

Same error as ConnectionError: ('Connection aborted.', BrokenPipeError(32, 'Broken pipe')) except that my exact error message is File "/anaconda3/envs/chihack/lib/python3.7/site-packages/urllib3/contrib/pyopenssl.py", line 320, in _send_until_done …
Josh Herzberg
  • 318
  • 1
  • 13
1
vote
1 answer

twine command not found (circleci)

I am using circleci to automatically deploy my python package to PyPi when a new tag is being pushed to GitHub. I've been following this tutorial My workflow is failing with the error home/circleci/project/twitter_sentiment/bin/python: No module…
Teddy
  • 633
  • 1
  • 8
  • 22
1
vote
1 answer

client URL for self hosted devpi?

I am running this devpi docker container as per instruction I have setup password in the environment variable DEVPI_PASSWORD to devpi then I have setup ~/.pypirc file…
Ciasto piekarz
  • 7,853
  • 18
  • 101
  • 197
1
vote
1 answer

SSL Errors when uploading py file to proxy server via Twine

I have packaged up a python application using python setup.py sdist bdist_wheelon an Ubuntu machine. I want to upload these files to a proxy server of Artifactory. I am using the following twine command to do it twine upload --repository-url…
DoingItNow
  • 91
  • 1
  • 11
1
vote
2 answers

How to upgrade twine to version 1.11?

I had the same error as twine upload TypeError and checked my twine version to find out it's 1.10. However, with pip list I find that twine is version 1.11. I tried $ sudo apt-get install --only-upgrade twine (see here) and found that twine is…
Ollie
  • 189
  • 1
  • 13
1
vote
1 answer

Upload to pypitest with twine - fails on repeated tests

twine upload dist/* -r pypitest This command results in the below error when I repeat an upload with the same version number. I thought that pypitest (e.i. https://test.pypi.org/legacy/) was available exactly to support repeated uploads "until I get…
1
vote
1 answer

Is it possible to upload python package on PyPI using OpenID?

I can see that we can create account on PyPI using OpenID as well. Can we also upload python packages to PyPI server using OpenID? Something like generic upload procedure by creating .pypirc file and using PyPI username and password.
1
vote
1 answer

Twine can not upload to pypi.org

I have a python package (xyz) that was on python.pypi.org. I am trying to release a new version and I am using twine for upload. I fixed everything in the ~/.pypirc file as explained on tutorials. When I run the following command: twine upload…
Cihan Kaya
  • 11
  • 1
1
vote
1 answer

pypi uploading error: twine

I am trying to upload my Python package for the first time. But, I am getting this error: HTTPError: 403 Client Error: You are not allowed to upload to 'test'. for url: https://upload.pypi.org/legacy/ What are the correct steps to upload a…
1
vote
0 answers

Pypi package using setuptools: Upload Failed (400): Invalid file type in python2.7 or unknow type of file in python 3.5

I try to make my python program into a command-like pypi package, so I can install the package using pip install mypackage and run my package with mypackage in the command windows. My python program is in Github. The Pypi page of my package is…
EvanL00
  • 370
  • 3
  • 13
0
votes
1 answer

401 Unauthorized from https://test.pypi.org/legacy/

I am using this cmd on windows to upload my package in testpypi twine upload -r testpypi dist/* but it's showing this error. so how to upload in testpypi and pypi when 2FA is enable ? Uploading mypackage-0.1.0-py3-none-any.whl 100%…
zircon
  • 742
  • 1
  • 10
  • 22
0
votes
0 answers

Upload python package to Azure DevOps custom artifactory without using using username/password in the pypirc file

My challenge is to publish a python package to a feed (Azure DevOps / Artifacts) using Authentification by Token. Let me share what I tried : A - [Build pipeline] I build a python package without a problem. Then I obtain an artifact to publish : A.1…
Gauss
  • 21
  • 1
  • 5
0
votes
0 answers

How to play a sound when the cursor hovers over an image?

I'm on Twine using Harlowe 3.3.5. I have an image: And I have a sound that I would like to play when the mouse hovers over the image. This is the JavaScript code: document.addEventListener('DOMContentLoaded',…
0
votes
0 answers

Authentication error when trying to upload PYPI package

I have this: python -m twine upload dist/* -u __token__ -p $PYPI_TOKEN in my publish.yml. On push this is run. However, I get an error in the CI: ERROR HTTPError: 403 Forbidden from https://test.pypi.org/legacy/ Invalid or…
Mike B
  • 2,136
  • 2
  • 12
  • 31
0
votes
0 answers

Is it possible to turn a game made on Twine into a mobile app?

I am currently working on an interactive video-game on Twine, I'm a complete beginner to this regards. Once my game is made, that I have the full HTML and CSS file of the project, do you think it's possible to publish it on the appstore and…
FarBeyond
  • 33
  • 4