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

How to delete python package from pypi-type repository using command line?

I need to delete a python package from a private python package index (a.k.a. repository) using the command line. This repo is on artifactory, but I am not able to use the artifactory portal UI to do this. The package was originally uploaded using…
cowlinator
  • 7,195
  • 6
  • 41
  • 61
1
vote
1 answer

ANTLR4 - How to match something until two characters match?

Flutter: Framework • revision 18116933e7 (vor 8 Wochen) • 2021-10-15 10:46:35 -0700 Engine • revision d3ea636dc5 Tools • Dart 2.14.4 Antrl4: antlr4: ^4.9.3 I would like to implement a simple tool that formats text like in the following definition:…
Stefan Schaller
  • 93
  • 1
  • 2
  • 7
1
vote
1 answer

The data folder doesn't included when I upload my package to pypi?

I created a package and I wanted to upload it to pypi. The structure of files is like this: AAA ├── AAA │   ├── AAA.py │   ├── BBB.py │   ├── CCC.py │   ├── __init__.py │   └── DDD.py │ ├── data │   ├── table2.json │   └── table2.json │ ├──…
Asdoost
  • 316
  • 1
  • 2
  • 15
1
vote
0 answers

Feature Branch Artifacts Workflow in CI with SemVer

I have a library (let's call it my_lib) and an application (my_app) structured in two Python packages where my tool my_app requires my_lib in the requirements.txt. In practice, I often develop a feature in my_app where the underlying added…
1
vote
0 answers

Cannot call functions after creating a python package

Recently I created my first package called pycohort: https://pypi.org/project/pycohort/ Here there are existing python functions that are working without any issues. A snippet from the code looks like this: # packages needed import pandas as…
realkes
  • 833
  • 1
  • 12
  • 20
1
vote
0 answers

Python Twine, Certifi, Requests failed when publish package to Pypi

I am trying to publish a python package to Pypi using Python twine command. However, it failed when running twine and got errors that seems point to certifi and requests package. Can anyone help? Much appreciated! I get an error says: [SSL:…
1
vote
2 answers

Twine is not asking for a password when I'm trying to publish my python library into Pypi

I'm trying to upload my python library into PyPi. I'm running this command: twine upload -r testpypi dist/* It asks for username and after I type it and press enter it is not asking for a password and just hangs.
Dalireeza
  • 107
  • 3
  • 13
1
vote
1 answer

Uploading custom python library to azure artifacts

I'm trying to upload a custom python library to Azure artifacts for sharing amongst our team. I'm trying to upload using twine. I've used pip to install twine and everything seems to have worked correctly, however when I try to run the following…
Tom Smith
  • 178
  • 2
  • 13
1
vote
1 answer

Im trying to test uplading a library to pypi i just made a verry simple one

How the folders and files are structured: all the text in README.txt This is a verry simple calculator. all the text in CHANGELOG.txt Change Log ========== 0.0.1 (19/10/2020) ------------------- - First Release all the text in LICENCE.txt…
Martin
  • 75
  • 8
1
vote
1 answer

How are Azure Devops service connections secure?

Currently, I audit the security of Azure Devops service connections: How secure are the credentials stored in the service connection? Example in case is the TwineAuthenticate Task. It will pull the credentials from the service connection…
Wolfgang Kuehn
  • 12,206
  • 2
  • 33
  • 46
1
vote
1 answer

twine: warning: `long_description_content_type` missing

This is what my setup.py looks like: from distutils.core import setup setup( author='...', description='...', download_url='...', license='...', long_description=open('README.md', 'r').read(), …
joedeandev
  • 626
  • 1
  • 6
  • 15
1
vote
1 answer

upload a python package to a private pypiserver

So I've built my Python package using: python3 setup.py bdist_wheel Tried to use twine in order to upload the package to my local pypiserver. twine upload dist/* --repository-url Now it asks for username and password but I don't remember…
IsaacLevon
  • 2,260
  • 4
  • 41
  • 83
1
vote
1 answer

"-bash: twine: command not found" when attempting to upload to PyPi

I am attempting to publish a package to PyPi using twine. Running twine upload dist/* in the project folder gives -bash: twine: command not found. I am using Python 3.7.7 on MacOS Mojave. I have run pip install twine successfully, and running pip3…
1
vote
1 answer

Why does the following error pop up when twine uploading files to pypi

When I execute the following lines and put in my information twine upload dist/* The following error pops up HTTPError: 400 Client Error: The description failed to render in the default format of reStructuredText. See…
1
vote
1 answer

Uploading a Python package into PyPI

I am following the instructions in the PyPI link below to upload my Python package into PyPI: https://packaging.python.org/tutorials/packaging-projects/ but I am stuck at the step where I need to run twine after installing it, which is the step…
Leockl
  • 1,906
  • 5
  • 18
  • 51