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

Unknown distribution format: '' when uploading to PyPI via Twine

I am trying to update the version of infixpy using twine. Here is my ~/.pypirc: index-servers = pypi pypitest [pypi] repository: https://upload.pypi.org/legacy/ username: myuser password: mypassword [pypitest] repository:…
WestCoastProjects
  • 58,982
  • 91
  • 316
  • 560
6
votes
1 answer

How to install data_files of python package into home directory

Here's my setup.py setup( name='shipane_sdk', version='1.0.0.a5', # ... data_files=[(os.path.join(os.path.expanduser('~'), '.shipane_sdk', 'config'), ['config/scheduler-example.ini'])], # ... ) Packing & Uploading…
user1633272
  • 2,007
  • 5
  • 25
  • 48
5
votes
1 answer

Published by twine python package does not appear in repository

I'm trying to publish my python package to private repository. I followed the official guide https://packaging.python.org/en/latest/tutorials/packaging-projects/ and everything seemed to be good. Here's terminal output: (venv)…
StuffHappens
  • 6,457
  • 13
  • 70
  • 95
5
votes
3 answers

How to disable SSL certificate verification in Twine?

When I tried to push a new package to my company's artifactory : python -m twine upload --repository-url https:///artifactory/api/pypi/gdp_pypi dist/* I got an error on SSL. ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed…
Oceania Water
  • 267
  • 2
  • 11
5
votes
3 answers

Distribution format for Python libraries uploaded on PyPI

I went through the tutorial of uploading packages to https://test.pypi.org/ and I was successful in doing so. However, $python setup.py sdist bdist_wheel produces a .whl file and a tar.gz file in the dist/ directory. twine allows uploading just the…
Anusha
  • 647
  • 11
  • 29
5
votes
3 answers

403 Client Error: Invalid or non-existent authentication information while uploading to Pypi with twine

403 Client Error: Invalid or non-existent authentication information occurs when uploading new module to pypi with Twine Win10 Pro 1803 Biuld 17134.1069 64 bit // Python 3.7.5 32 bit // pip 19.3.1 I successfully created tar. and whl. in the dist…
Gavrk
  • 295
  • 1
  • 4
  • 16
5
votes
2 answers

When adding package to PyPi SSL error occurs

I am trying to add a package to PyPi so I can install it with Pip. I am trying to add it using twine upload dist/*. This causes me to get multiple SSL errors such as raise SSLError(e, request=request) requests.exceptions.SSLError:…
Alex Hawking
  • 1,125
  • 5
  • 19
  • 35
5
votes
2 answers

Getting error only one sdist may be uploaded

Why is this creating 2 tar.gz files, ‘ python setup.py sdist? I am trying to upload using twine upload -r pypitest dist/*.tar.gz and i get error saying HTTPError: 400 Client Error: Only one sdist may be uploaded per release. for url:…
Ciasto piekarz
  • 7,853
  • 18
  • 101
  • 197
5
votes
2 answers

not able to update my package on pypi.org

I have made changes to package I had submitted long time back in 2015 now today I added support markdown on pypi and updated setup.py to support pip version 10, however now I am facing a strange problem: If I run this command python setup.py sdist…
Ciasto piekarz
  • 7,853
  • 18
  • 101
  • 197
5
votes
1 answer

ConnectionError: ('Connection aborted.', BrokenPipeError(32, 'Broken pipe'))

everybody! I have a python package in PyPI, i went to update it. but the upload command not executed correctly! command: twine upload dist/* error: ConnectionError: ('Connection aborted.', BrokenPipeError(32, 'Broken pipe')) os: linux…
Arman
  • 367
  • 3
  • 12
5
votes
1 answer

How to upload a PyPI package to Nexus3

I am new to Nexus3, I am following the instruction here to upload a PyPI package (python v2.7): https://books.sonatype.com/nexus-book/3.0/reference/pypi.html However, I got the following message prevent me from uploading the the…
Chengzhi
  • 2,531
  • 2
  • 27
  • 41
5
votes
0 answers

Python - pypi upload error with twine

I have a package for which local installation and distribution work correctly. However, when I try to upload it to pypi with twine, I get the following error message: $ twine upload dist/mypackage.tar.gz Uploading distributions to…
andrea-ci
  • 51
  • 3
5
votes
5 answers

400 ERROR: Invalid URI when uploading new PyPI package (twine)

I followed the official documentation for uploading packages to PyPI, as well as the information provided in PyPI readme, but I get a HTTP 400 error each time: $ twine upload dist/* Uploading distributions to https://upload.pypi.org/legacy/ Enter…
Brad Allen
  • 115
  • 1
  • 2
  • 6
4
votes
1 answer

PyPI: The name is too similar to an existing project

When uploading to PyPI there is an error: $ twine upload -r test dist/examplepkg-1.0.tar.gz Uploading distributions to https://test.pypi.org/legacy/ Uploading examplepkg-1.0.tar.gz Error during upload. Retry with the --verbose option for…
platypus
  • 1,128
  • 8
  • 15
4
votes
2 answers

Publishing package to PyPi from Azure Devops hangs at twine upload

I want to publish a built .whl package to PyPi.org from our Azure Devops release pipeline, but the script twine upload keeps hanging without error, completion or time out. So the actual upload of our package (which is extremely small) does not…
Sam Vanhoutte
  • 3,247
  • 27
  • 48
1
2
3
9 10