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
0
votes
1 answer

ValueError: No PKG-INFO in archive

I've been trying to upload my package to PyPI by taking these steps: Registering on PyPI Creating a hidden .pypirc file in my home directory (~/) containing: [distutils] index-servers =…
ShellRox
  • 2,532
  • 6
  • 42
  • 90
0
votes
0 answers

pypi does not update according to GitHub repository

I uploaded my project to PyPI for the first time last week. Then I revised some of my code and I changed the version number in setup.py. Then python setup.py bdist_wheel and twine upload dist/* like I did first time uploading the package. But…
PizzaPatz
  • 21
  • 1
0
votes
1 answer

Pypi upload problems: Must be a valid Python identifier

I'm having trouble uploading my package to pypi. I used to be able to just use python setup.py sdist upload -r pypi but this now causes an error: Upload failed (400): requires: Must be a valid Python identifier. error: Upload failed (400): requires:…
CiaranWelsh
  • 7,014
  • 10
  • 53
  • 106
0
votes
1 answer

400 Client Error: Web Environment' is not a valid choice for this field for url: https://upload.pypi.org/legacy/

When i put my module on the package when uploading to pypi, something went wrong and I did not know how to fix it $ twine upload dist/* Uploading distributions to https://upload.pypi.org/legacy/ Uploading zaoshu-0.1.1-py3-none-any.whl HTTPError:…
0
votes
1 answer

Pip install fails with `Invalid requirement: ''`

I have created a package and tried to upload it to testpypi to test it, as suggested in the Python Packaging User Guide. I created a distribution, registered it, and uploaded it to testpypi: me@machine$ cd mypackage me@machine:~/mypackage$ python…
m00am
  • 5,910
  • 11
  • 53
  • 69
0
votes
1 answer

Import error when using twine and wheel to upload python package to PYPI

I have a python package ready for distribution on PyPI. To do this I am using twine as recommended on the in the Python docs. I have my setup.py file and this previously worked using the setup.py register upload command for my previous release. To…
CiaranWelsh
  • 7,014
  • 10
  • 53
  • 106
-1
votes
1 answer

I am getting an error when i run twine upload

I ran this command: twine upload ./* and this error happened: Uploading distributions to https://upload.pypi.org/legacy/ ERROR InvalidDistribution: Unknown distribution format: 'dist' edit: I forgot to run it in the dist folder
RGB_CATT
  • 37
  • 8
-1
votes
1 answer

How do I specify a minimum package version in pipit setup.cfg

I am trying to specify a minimum package version in a pypi setup.cfg file. I have written this: install_requires = cocotb>=1.5.2 But I get this error message when I test my package installation: ERROR: Could not find a version that satisfies…
Ray Salemi
  • 5,247
  • 4
  • 30
  • 63
-1
votes
1 answer

Error with Twine: SSLError: HTTPSConnectionPool

I am trying to upload a package to PyPi; however, when I use the recommended platform twine to connect to PyPi, I get this error: SSLError: HTTPSConnectionPool(host='upload.pypi.org', port=443): Maxretries exceeded with url: /legacy/ (Caused by…
Ajax1234
  • 69,937
  • 8
  • 61
  • 102
-2
votes
1 answer

Is there any other way to upload package to PyPI?

I tried so many times and nothing seems to work even after I created a GitHub repo I can't upload my first package to PyPI every time I try to use twine it gives this C:\Users\Admin\PycharmProjects\Python Packages\opencvFPS>twine upload…
Prathamesh Bhatkar
  • 291
  • 1
  • 4
  • 15
1 2 3
9
10