pypi

Does PIP/Python support multiple versions of the same package?

旧时模样 提交于 2021-02-07 08:48:12
问题 Let's say I have a package foo , and foo packages up binary shared objects that I use in multiple Python scripts. Foo v1 (shared objects) Bar v1 (requires Foo v1) Baz v1 (requires Foo v1) Now I want to push out a new breaking update to Foo. Foo v2 (shared objects) Bar v2 (requires Foo v2) Foo v1 (shared objects) Bar v1 (requires Foo v1) Baz v1 (requires Foo v1) Can old-dependencies with different major versions in semvar be distributed over PyPI? If so, how? 回答1: Pypi can and will track

Does PIP/Python support multiple versions of the same package?

烈酒焚心 提交于 2021-02-07 08:46:16
问题 Let's say I have a package foo , and foo packages up binary shared objects that I use in multiple Python scripts. Foo v1 (shared objects) Bar v1 (requires Foo v1) Baz v1 (requires Foo v1) Now I want to push out a new breaking update to Foo. Foo v2 (shared objects) Bar v2 (requires Foo v2) Foo v1 (shared objects) Bar v1 (requires Foo v1) Baz v1 (requires Foo v1) Can old-dependencies with different major versions in semvar be distributed over PyPI? If so, how? 回答1: Pypi can and will track

How should I create and read a user editable configuration file in ~/.config or similar?

一世执手 提交于 2021-02-05 06:36:08
问题 I am planning a command line Python application that I intend to distribute through PyPi. When the application is installed with pip, I want to create a user-editable configuration file in the appropriate location on the user's filesystem. For example, in Ubuntu, the file would be something like ~/.config/foo/config.ini On installation I want to create the file (if possible) and be able to specify another config file to use instead with a command line parameter. What is the usual scheme for

How should I create and read a user editable configuration file in ~/.config or similar?

自古美人都是妖i 提交于 2021-02-05 06:35:46
问题 I am planning a command line Python application that I intend to distribute through PyPi. When the application is installed with pip, I want to create a user-editable configuration file in the appropriate location on the user's filesystem. For example, in Ubuntu, the file would be something like ~/.config/foo/config.ini On installation I want to create the file (if possible) and be able to specify another config file to use instead with a command line parameter. What is the usual scheme for

Binary wheel can't be uploaded on pypi using twine

牧云@^-^@ 提交于 2021-02-04 23:15:11
问题 I am trying to upload a package on Pypi for linux and windows from github actions with linux I get this result Binary wheel 'xxx-cp36-cp36m-linux_x86_64.whl' has an unsupported platform tag 'linux_x86_64'. during windows installation InvalidDistribution: Cannot find file (or expand pattern): 'dist/*' the code for upload is that python setup.py sdist bdist_wheel twine upload dist/* --verbose Any ideas how to upload distributions for linux and windows? 回答1: You cannot upload a linux_*.whl wheel

Leaving out the .git directory on pypi

此生再无相见时 提交于 2021-01-28 01:21:28
问题 Can anyone tell me how to prevent the contents of the .git directory to be uploaded to PyPi. My MANIFEST.in looks like so: global-include *.py *.js *.rst *.html *.css *.lyx *.pdf *.png *.gif *.jpg *.txt *.jar *.bat * global-exclude *.pyc *.git .gitignore prune Transcrypt/development/*.git prune Transcrypt/development/attic prune Transcrypt/development/docs prune Transcrypt/development/experiments My uploads get too big with the .git stuff around... I've spend quite some time reading about

How to upload package to PyPi with Two Factor enabled?

血红的双手。 提交于 2021-01-27 12:04:46
问题 I would like to upload a package to Pypi so I have created an account and tried to follow the manual. Account: It looks I cannot create projects from pypi.org directly: I installed twine and I did $ python3 -m twine upload dist/* This time I have the following error: HTTPError: 403 Client Error: Invalid or non-existent authentication information. for url: https://upload.pypi.org/legacy/ Perhaps this is related to my Two Factor Authentication. I am also curious about he legacy word used there.

How to upload package to PyPi with Two Factor enabled?

泄露秘密 提交于 2021-01-27 11:58:10
问题 I would like to upload a package to Pypi so I have created an account and tried to follow the manual. Account: It looks I cannot create projects from pypi.org directly: I installed twine and I did $ python3 -m twine upload dist/* This time I have the following error: HTTPError: 403 Client Error: Invalid or non-existent authentication information. for url: https://upload.pypi.org/legacy/ Perhaps this is related to my Two Factor Authentication. I am also curious about he legacy word used there.

Is there a PyPi source download link that always points to the lastest version?

别来无恙 提交于 2021-01-27 07:08:57
问题 Say my latest version of a package is on PyPi and the source can be downloaded with this url: https://pypi.python.org/packages/source/p/pydy/pydy-0.3.1.tar.gz I'd really like to have a url that looks like: https://pypi.python.org/packages/source/p/pydy/pydy-latest.tar.gz which will always redirect to the latest version, in this case 0.3.1. Does this exist? 回答1: No, pypi provides no such links. Releases can have multiple download files (binaries for different Python versions, different

Is there a PyPi source download link that always points to the lastest version?

左心房为你撑大大i 提交于 2021-01-27 07:07:07
问题 Say my latest version of a package is on PyPi and the source can be downloaded with this url: https://pypi.python.org/packages/source/p/pydy/pydy-0.3.1.tar.gz I'd really like to have a url that looks like: https://pypi.python.org/packages/source/p/pydy/pydy-latest.tar.gz which will always redirect to the latest version, in this case 0.3.1. Does this exist? 回答1: No, pypi provides no such links. Releases can have multiple download files (binaries for different Python versions, different