pypi

Setting up a local PyPi server with custom set of packages [duplicate]

廉价感情. 提交于 2019-12-07 04:21:53
问题 This question already has answers here : How to roll my own pypi? (10 answers) Closed 5 years ago . I want to set up a local PyPi server with a custom set of packages and all their dependencies. What I have right now is a list of packages in format: django==1.4.3 celery==3.0.12 uwsgi==1.2.6 pillow==1.7.7 ... and I would like to have a local PyPi server which can serve all these eggs and their dependencies. How can I achieve this? Ideally I would like to have a tool which can take requirements

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

大城市里の小女人 提交于 2019-12-06 17:30:44
问题 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 Client Error: File already exists. See https://pypi.org/help/#file-name-reuse for url: https://upload.pypi.org/legacy Now, how to upload new version without any error?! 回答1: PyPI does not allow for the reuse of distribution filenames (project name + version number +

How to host a private python package manager in Azure or AWS

我与影子孤独终老i 提交于 2019-12-06 06:17:47
问题 I work in a small team of Python developers and we aim to create a private package manager to store our packages. I came cross pypicloud and following its tutorial I've successfully been able to upload and install packages stored in AWS-S3. That's fantastic. However, the private package manager is launched and hosted locally typing pserve server.ini in the terminal. The package manager is then accessible at http://0.0.0.0:6543/#/ . Ideally, I want this server to be: hosted in the cloud

setup.py not honoring PIP_INDEX_URL

家住魔仙堡 提交于 2019-12-06 05:19:06
I am running a local pypi server . I can install packages from this server by either specifying it with the -i option of the pip command or by setting the PIP_INDEX_URL environment variable. When I install a package that has prerequisites, setup.py has historically honored the PIP_INDEX_URL environment variable, pulling the additional packages from my local server. However, on a couple of systems that have been recently installed, it is behaving differently. Running, for instance, python setup.py develop fails because it tries to install prerequisites packages from pypi.python.org . I have

What does “weight” on search results in PyPI help in choosing a package?

跟風遠走 提交于 2019-12-06 04:36:33
问题 When I search "XML parse" in PyPI, the matched results are listed according to "weight". When I hove my mouse over "weight", it says "occurrence of search term weighted by field (name, summary, keywords, description, author, maintainer)". What does "weighted by field (name, summary, keywords, description, author, maintainer)" mean? Ideally, does a package ranked higher most likely better than a package ranked lower? Thanks. 回答1: Interesting question! I cloned the pypi repository and searched

Plone: pypi specific download issue behind a proxy server - can't install eggs

那年仲夏 提交于 2019-12-06 01:46:56
Have a weird problem here. I am in a network that uses an authenticated proxy to connect to the outside world. I do not control this proxy server. This fact has in the past tripped me up with use of wget, curl, etc. (this is on Mac OSX 10.8). So, I set the environment variables: HTTP_PROXY=proxyserveraddress:3128 FTP_PROXY=proxyserveraddress:3128 RSYNC_PROXY=proxyserveraddress:3128 This when added to the bash rc (is it profile?) file, has made the network connections transparent to the shell. There is also a system proxy setting that points the same way. Now, I installed Plone and wanted to

Best workflow and practices for releasing a new python package version on github and pypi

让人想犯罪 __ 提交于 2019-12-06 01:31:25
问题 I was wondering what is the best procedure or practices for releasing a new python package version on pypi and github. For example, is this the typical workflow a major python package would follow? On master branch, increment version number Set version='1.5.0' in setup.py Set __version__ = '1.5.0' in package __init__.py Update CHANGELOG.md with new version Run tox locally to verify package Push changes git push origin master Create tag git tag v1.5.0 -m "Release v1.5.0" Push tag git push

How to have PyPI package install header files for C extension with distutils/setuptools?

主宰稳场 提交于 2019-12-06 01:07:32
We have a package (rebound) up on PyPI that includes a C extension . The relevant part of the setup.py file looks like this (simplified): libreboundmodule = Extension('librebound', sources = [ 'src/rebound.c'], include_dirs = ['src'],) Additional libraries need access to rebound.h, but when one runs pip install rebound it doesn't install rebound.h anywhere. How can we get distutils/setuptools to install rebound.h somewhere along with all the python modules? We're hoping that we can have pip install rebound do all the work so the user doesn't have to run any additional commands. 来源: https:/

How to upload a pristine Python package to PyPI?

♀尐吖头ヾ 提交于 2019-12-05 17:48:23
问题 What's the magic " python setup.py some_incantation_here " command to upload a package to PyPI, in a form that can be downloaded to get the original package in its original form? I have a package with some source and a few image files (as package_data). If I do " setup.py sdist register upload ", the .tar.gz has the image files excluded. If I do " setup.py bdist_egg register upload ", the egg contains the images but excludes the setup.py file. I want to be able to get a file uploaded that is