twine

I am getting an error when i run twine upload

I am getting an error when i run twine upload Question: 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 Asked By: tjwllms52 || Source Answers: Well, what does ./* expand to? Chances …

Total answers: 1

Can install new PyPi module with pip, but can't import it myself?

Can install new PyPi module with pip, but can't import it myself? Question: So I’m trying to add a new script I wrote, fakesky, to PyPi as a module. I uploaded it to PyPi, and pip will let me install it successfully, but every time I try to import it, I get the following error: …

Total answers: 1

Publishing python package into azure artifacts

Publishing python package into azure artifacts Question: Due to poor documentation I’m suffering alot to upload my Python Package to my internal Azure Artifacts: I have followed exactly like this Twine authenticate was successful however unable to upload to feed as it keeps asking username! Is my setup correct? I need to self authenticate the …

Total answers: 2

Twine is defaulting "long_description_content_type" to text/x-rst

Twine is defaulting "long_description_content_type" to text/x-rst Question: Heres is my setup setup( name="`…", version="…", description=…, long_description_content_type="text/markdown", long_description=README, author="…", classifiers=[…], packages=["…"], include_package_data=True, ) I used the following command to package my project python setup.py sdist bdist_wheel but when I run twine check dist/* I get the following error Checking distFutshane_TBG-1.0.0-py3-none-any.whl: FAILED `long_description` has syntax errors in …

Total answers: 2

Publishing package to PyPi from Azure Devops hangs at twine upload

Publishing package to PyPi from Azure Devops hangs at twine upload Question: 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 work. …

Total answers: 2

How to upload new versions of project to PyPI with twine?

How to upload new versions of project to PyPI with twine? Question: I’ve uploaded my Python package to PyPI. But now I made new version of my package and need to upload it. I tried to make same progress which I did when upload the package first time. but give me this error: HTTPError: 400 …

Total answers: 6

twine not found (-bash: twine: command not found)

twine not found (-bash: twine: command not found) Question: I am trying to use twine to publish my first python package on pypi (of course will add on test-pypi first). I followed the official guideline on https://packaging.python.org/tutorials/packaging-projects/. But for some reason, twine is not found or not properly installed. I installed twine using: pip install …

Total answers: 3

Upload to pypi from Gitlab Pipelines

Upload to pypi from Gitlab Pipelines Question: I’m trying to upload a package to pypi using a Gitlab CI job, but I cannot make it work :/ Anyone has a working example? What I have tried so far in my .gitlab-ci.yaml (from my local machine all of them are working): Twine with a .pypirc file …

Total answers: 7

Can't upload to PyPi with Twine

Can't upload to PyPi with Twine Question: I’m trying to upload a python package to PyPi, using the following commands: pip install -e . python setup.py bdist_wheel –universal twine upload –repository-url https://upload.pypi.org/legacy/ dist/* I get this error: HTTPError: 403 Client Error: Invalid or non-existent authentication information. for url: https://upload.pypi.org/legacy/ I’ve also tried the following commands: …

Total answers: 13