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

Package a Python project to be run in the console: pyproject.toml file structure

I have the following structure for a Python project that I want to package to have an entry point on the console. example_prog ├── src ├ └── my_module_name ├ └── app.py ├ └── blueprint.py ├ └── cli.py ├ └── config.py ├ …
2
votes
1 answer

AWS CodeArtifact error with 401 Unauthorized when trying to upload with twine

I'm having issues pushing python package into CodeArtifact using twine. I would love your ideas on what this might be and how to debug this. I've setup the repository following this doc. Running aws codeartifact login --tool twine is successful and…
polo
  • 1,352
  • 2
  • 16
  • 35
2
votes
2 answers

Publish Python Package via GitHub Actions to AWS CodeArtifact

I have a hard time to publish a package to AWS CodeArtifact. Problem is the authentification. First I tried to execute the login via the aws cli but due to the lack of the .pypirc file containing the repository settings that didn't work out. Now I…
2
votes
0 answers

unable to import pakage created by myself from pypi.org

asking this question after going through this -- What is the python equivalent to a Java .jar file? I have a python project which has been uploaded to https://pypi.org/ using the instructions provided by the official python packaging Manager and…
Thina
  • 21
  • 3
2
votes
3 answers

How to maintain glibc and libmusl Python wheels in the same pip repository?

Previously we've used our internal pip repository for source distributions only. Moving forward we want to host wheels as well to accomplish two things: serve our own code to both (local) developer machines and Alpine Docker environments create…
oschlueter
  • 2,596
  • 1
  • 23
  • 46
2
votes
1 answer

Store credentials for twine upload of artifacts

I'm building my python package using Azure DevOps pipeline and the generated artifact is then uploaded to a feed. Everything is working fine, however, I don't like the fact that I have a .pypirc file containing the credentials for the upload sitting…
thomas
  • 624
  • 1
  • 12
  • 27
2
votes
1 answer

Twine does not recognize --repository-url flag

I want to use twine to upload a project build to test.pypi.org. I am following the README for the basic use case from the twine GitHub page. I have installed the latest version of twine: $ twine --version twine version 1.5.0 (pkginfo: 1.2.1,…
James
  • 39
  • 2
  • 4
2
votes
1 answer

Upload sphinx-generated documentation to pypi over https

Now that PyPI has been moved to new version and upload_docs command fails with Upload failed (410): Gone (This API has been deprecated and removed from legacy PyPI, what do I use to upload .rst files? Twine developers seem to have expressed resolve…
user3292534
2
votes
1 answer

Can't upload to PyPI with twine ("invalid command")

I'm trying to upload my package to PyPI using twine. I've followed the official documentation and I'm getting stopped at this step: twine upload dist/* I don't have errors on any previous steps, and I've been using python3 instead of python (so all…
singmotor
  • 3,930
  • 12
  • 45
  • 79
1
vote
0 answers

How to list all available Python packages including their versions on a (private) PyPi package repository?

We are maintaining a private PyPi repository on a GitLab instance in which we upload hundreds of Python wheels for different platforms, architectures and Python versions in order to use them internally. As the amount of packages grows, we only want…
Cord Kaldemeyer
  • 6,405
  • 8
  • 51
  • 81
1
vote
2 answers

How do I upload a Python package to Azure Artifacts without having to open the device login page and enter in the auth code?

Does anyone know how I can upload a Python package through Azure DevOps/Pipelines to the artifact feed, without having to open the device login page, and enter in the auth code each time? Currently, my pipeline runs fine where it builds the Python…
1
vote
1 answer

Python Package not pushed to DevOps Artifacts through Feed

I have been following a tutorial for publishing a Python package, which is only meant to be used by the members of my organisation, to Azure DevOps Artifacts (link). I use an azure pipeline: trigger: - main pool: vmImage: ubuntu-latest steps: -…
FaCoffee
  • 7,609
  • 28
  • 99
  • 174
1
vote
0 answers

Why is pip ignoring the latest version of my package?

I am currently developing and testing a package named game.py. While trying to install the newest version (0.0.2) with pip, it would only download 0.0.1. pip install -i https://test.pypi.org/simple/ game.py==0.0.2 did not help me either as that just…
Connor Club
  • 64
  • 1
  • 7
1
vote
0 answers

twine --version TypeError: expected string or bytes-like object

twine --version shows this error: Traceback (most recent call last): File "C:\Users\scr\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File…
Ram sankar s
  • 11
  • 1
  • 1
1
vote
1 answer

The description failed to render for 'text/markdown'- PyPi

I try to upload my library to pip. At final stage I got that error. HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/ The description failed to render for 'text/markdown'. See https://pypi.org/help/#description-content-type for more…