pypi

My rst README is not formatted on pypi.python.org

假如想象 提交于 2020-01-28 14:15:45
问题 When I submit my package to the Python Package Index (https://pypi.python.org/pypi) my README file, which is written with valid reStructuredText and saved as README.rst, is displayed as plain text without any formatting. I have run it through validators (rstctl and collective.checkdocs) and no errors are returned. My package is at: https://pypi.python.org/pypi/lcinvestor It's in github at: https://github.com/jgillick/LendingClubAutoInvestor 回答1: It turns out that the answer from @sigmavirus

My rst README is not formatted on pypi.python.org

核能气质少年 提交于 2020-01-28 14:15:36
问题 When I submit my package to the Python Package Index (https://pypi.python.org/pypi) my README file, which is written with valid reStructuredText and saved as README.rst, is displayed as plain text without any formatting. I have run it through validators (rstctl and collective.checkdocs) and no errors are returned. My package is at: https://pypi.python.org/pypi/lcinvestor It's in github at: https://github.com/jgillick/LendingClubAutoInvestor 回答1: It turns out that the answer from @sigmavirus

Could not upload csv file to test.pypi.org

我只是一个虾纸丫 提交于 2020-01-25 08:50:11
问题 I am trying to upload a simple python package to PypI. For testing this I first uploaded to test.pypi.org. When I install this package with pip and use it, I get the error FileNotFoundError: [Errno 2] File b'../data/spam_collection.csv' does not exist: b'../data/spam_collection.csv' . I implemented the following referring to other similar questions on StackOverflow and the documentation here and here. I tried with this a lot as you can see this is the version 11 of my package. What am I doing

Define setup.py dependencies from a private PyPI

ぃ、小莉子 提交于 2020-01-24 08:50:07
问题 I'd like to install dependencies from my private PyPI by specifying them within a setup.py . I've already tried to specify where to find dependencies within the dependency_links this way: setup( ... install_requires=["foo==1.0"], dependency_links=["https://my.private.pypi/"], ... ) I've also tried to define the entire URL within the dependency_links : setup( ... install_requires=[], dependency_links=["https://my.private.pypi/foo/foo-1.0.tar.gz"], ... ) but when I try to install with python

How to specify pytroch as a package requirement on windows?

懵懂的女人 提交于 2020-01-23 22:56:41
问题 I have a python package which depends on pytorch and which I’d like windows users to be able to install via pip (the specific package is: https://github.com/mindsdb/lightwood, but I don’t think this is very relevant to my question). What are the best practices for going about this ? Are there some project I could use as examples ? It seems like the pypi hosted version of torch & torchvision aren’t windows compatible and the “getting started” section suggests installing from the custom pytorch

Optional dependencies for PyPI packages

拜拜、爱过 提交于 2020-01-16 04:50:11
问题 I want to create a new PyPI package, but this will have an special wheels where I will invoke it like this: pip install misoftware[customer1] Is this possible? If so how can I provide patches for [customer1] For example my main release is: misoftware==1.1 and misoftware[customer1] I want misoftware[customer1]==1.1.2 This will be 3 wheels total 回答1: You're describing setuptools 'extras'. This allows you to specify additional dependencies, so for example misoftware just installs the misoftware

Any limitations on platform constraints for wheels on PyPI?

有些话、适合烂在心里 提交于 2020-01-14 08:47:08
问题 Are there any limitations declared anywhere (PEPs or elsewhere) about how broad a scope the Linux wheels uploaded to PyPI should have? Specifically: is it considered acceptable practice to upload linux_x86_64 wheels to PyPI, instead of manylinux1_x86_64, when we are unable to build the latter - due to external C libraries that depend on a newer glibc? See also PEP 513 / "Rationale": Build tools using PEP 425 platform tags [3] do not track information about the particular Linux distribution or

UnicodeDecodeError with PIP?

旧城冷巷雨未停 提交于 2020-01-14 07:57:24
问题 I am attempting to distribute my open-source project, Melopy, but package management has been giving me problems since I started. Today, I registered for PyPI, but upon running python setup.py sdist upload I am faced with the following error. running sdist running check reading manifest template 'MANIFEST.in' not writing to manually maintained manifest file 'MANIFEST' making hard links in Melopy-0.1.0... Creating tar archive Traceback (most recent call last): File "setup.py", line 19, in

Can't upload to PyPi with Twine

我怕爱的太早我们不能终老 提交于 2020-01-13 08:18:11
问题 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: twine upload dist/* twine upload --repository-url pypi dist/* twine upload --repository-url https://upload.pypi

How can I subscribe to updates of a package on PyPI?

落爺英雄遲暮 提交于 2020-01-10 08:49:07
问题 I would like to be notified every time a new version of Virtualenv is released on PyPI, preferably by email or by RSS feed. Is this possible? 回答1: Yes, it's possible. libraries.io The open(*) libraries.io service provides an e-mail notification service and RSS release feeds for Python package releases. An RSS feed URL follows these pattern: https://libraries.io/pypi/{PACKAGENAME}/versions.atom Example: curl -L https://libraries.io/pypi/virtualenv/versions.atom For the email subscription you