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
4
votes
2 answers

twine upload fails when using a proxy server

I can't upload to pypi using twine when a proxy server is involved. That's what I tried so far: python -m twine upload -u USER -p PASSWORD dist/* When I'm behind our company proxy server twine just hangs, no error message. Set the https_proxy and…
Wollmich
  • 1,616
  • 1
  • 18
  • 46
4
votes
2 answers

Where does twine look for certificates?

I have a personal Python repository set up with https and I'm able to upload to it using the following command: twine upload -r --cert However, I'd like to be able to upload without having to explicitly specify…
Billy
  • 5,179
  • 2
  • 27
  • 53
4
votes
2 answers

Pip no matching distribution found (my library)

I made a library called Pillow3f. I tried to upload it to Pypi. Here are the step I took to do so and the error I received when trying to install it. I am using Python3.6, and I already checked the latest dist folder to make sure it said python36. I…
stack user
  • 53
  • 1
  • 5
4
votes
4 answers

Issue uploading a Python package to Pypi using Windoes 10 - twine is not recognized as an internal or external commend

I have been trying to upload a Python package to Pypi. I have been following a couple of different guides. I have install twine using pip install twine And it doesn't show any problem: Requirement already satisfied: twine in…
Randomizer
  • 475
  • 7
  • 19
4
votes
1 answer

Cannot install latest version of the package via pip from PyPI

I have a package on PyPI. Latest version is 0.1.6. Unfortunately, I cannot install it via pip: $ pip install sexpr==0.1.6 Could not find a version that satisfies the requirement sexpr==0.1.6 (from versions: 0.1.6.linux-x86_64, 0.1.2, 0.1.3,…
Siegmeyer
  • 4,312
  • 6
  • 26
  • 43
4
votes
1 answer

Twine won't let me register or upload my package: is https://upload.pypi.org/legacy/ wrong?

I have a Python package that I am trying to register on PyPI. I am trying to do this with the latest version of twine (1.9.1) and following the instructions on the twine webpage. I have my package correctly configured locally. (setup.py is complete…
W.P. McNeill
  • 16,336
  • 12
  • 75
  • 111
3
votes
1 answer

Upload a Python Package to Azure Artifacts Using a Github Action

I have a repository on Github for a private Python package for my organization, and I would like to publish this package in a private Azure Artifacts feed using Github actions for automated CI/CD. It seems like none of the documentation around…
3
votes
2 answers

Twine upload credentials not update, HTTPError 401 Unauthorized

Problem description My access token to private python package registry expired. Before everything worked well. I have defined .pypirc file as follows: [distutils] index-servers = gitlab [gitlab] repository = username =…
Viljami
  • 639
  • 7
  • 15
3
votes
1 answer

PyPI install_requires direct links

I have a Python library (https://github.com/jcrozum/PyStableMotifs) that I want to publish on PyPI. It depends on another library (https://github.com/hklarner/PyBoolNet) that I do not control and that is only available on GitHub, and in particular,…
3
votes
0 answers

How to release a package with python-specific wheels to the GitLab Package Registry and twine

I try to use GitLab CI to automate the package release process and store the releases in GitLab Package Registry. I have followed the documentation: https://docs.gitlab.com/ee/user/packages/pypi_repository/ and managed to setup the CI so it builds…
3
votes
3 answers

SSL error while uploading python package to custom registry using twine

When trying to upload a python custom package to our internal registry its failing with the following error. urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='custom-nexus.com’, port=443): Max retries exceeded with url:…
aquero
  • 843
  • 4
  • 13
  • 30
3
votes
0 answers

Why do I get an error when uploading to pypi?

I am attempting PyPI's tutorial for the first time, and upon uploading the dist archives, I get this error: HTTPError: 403 Client Error: Invalid or non-existent authentication information. for url: https://upload.pypi.org/legacy This was my…
OakenDuck
  • 485
  • 1
  • 6
  • 15
3
votes
1 answer

twine upload dist. Get an error "is an invalid value for Version"

I am trying to upload my package with twine upload dist/* command. and I get an error: Client Error: 'X.Y.ZZ.post0.dev0-g83905ac' is an invalid value for Version. Error: It looks to me that X.Y.ZZ.post0.dev0-g83905ac version does satisfy PEP 440. I…
Valentyn
  • 659
  • 1
  • 7
  • 28
3
votes
1 answer

is there still an advantage using twine for Python pkg upload?

the twine package in Python is used to upload stuff to PyPi using HTTPs. I am already using Python 2.7.9, and the twine readme says, 'only recently Python 2.7.9 stopped using HTTP.' Does it mean that when I do python setup.py upload, the connection…
stackjs
  • 443
  • 2
  • 6
  • 13
2
votes
1 answer

PyPi: twine missing METADATA, but it exists in .whl file

I was trying to upload an update to my package on PyPi but I noticed they have changed it so you have to use a pyproject.toml file. So I did follow steps on PyPi Created pyproject.toml Ran py -m build with no errors or warnings Ran twine check…
Ashenguard
  • 174
  • 1
  • 10
1 2
3
9 10