pypi

Why does pypi upload include \r\n in POST request data?

大憨熊 提交于 2020-01-07 05:48:04
问题 I recently upgraded my Mac to El Capitan. After the upgrade I started seeing strange behavior when I run "python setup.py upload" The POST request generated by the upload command now inserts \r\n into each of the data fields. It doesn't cause any issues uploading to python.org/pypi/ but I am using djangopypi (github.com/benliles/djangopypi/) and the library does string compares on that post request data. I've pushed a patch to my instance of djangopypi where it just strips the POST request

Hosting Company Doesn't Support WebApp2 - What Can I Use In Its Place?

不羁的心 提交于 2020-01-07 03:27:17
问题 I'm trying to run a python file on a subdomain that I created. According to HostGator, python files are supported, but not the webapp2 framework, which I used throughout the file: #!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or

My uploaded package is not searchable in pypi, neither in pypi web UI nor PIP3

独自空忆成欢 提交于 2020-01-05 06:09:12
问题 I created a package, named furigana . This package page can be browsed by a user not logined to pypi. However, if I type "furigana" in the homepage of pypi, it can not find my package "furigana". I also used pip3 search to search it, and it also find nothing. I ran below commands to create archive and upload it by twine: python3 setup.py test python3 setup.py sdist twine upload dist/furigana-0.0.7.tar.gz The output message of twine is: Uploading distributions to https://upload.pypi.org/legacy

Python - setuptools - working on two dependent packages (in a single repo?)

不想你离开。 提交于 2020-01-04 09:16:53
问题 I am working on a python project which contains two modules. The modules are very closely related and hence I want them to be in the same git repo, and to be able to develop them together in my IDE: module1 depends on module2 module1 has lots of other heavy dependencies, module2 does not module1 and module2 will be used in different runtime environments module2 should be installable separately so it can run in e.g. an AWS Lambda Consequently I have tried to set up a project structure which

How to get PyPI to automatically install dependencies

牧云@^-^@ 提交于 2020-01-03 04:18:33
问题 How can I publish a package on PyPI such that all dependencies are automatically installed, rather than manually by the user. I specify the dependencies in setup.py with install_requires as follows: setuptools.setup(name='myPackage', version='1.0', packages=setuptools.find_packages(), include_package_data=True, classifiers=[ 'Programming Language :: Python :: 3', 'Operating System :: OS Independent', 'Topic :: Scientific/Engineering :: Bio-Informatics' ], install_requires=['numpy', 'pandas',

pip install and custom index url

假如想象 提交于 2020-01-02 03:47:05
问题 I am getting the following exception while trying to install using pip : Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(111, 'Connection refused'))': /simple/<package>/ Where does pip install the packages from? How do I proxy or use alternate internal site to get these packages? 回答1: pip install looks at http://pypi.python.org/simple/<package>/ You might see the following error in case the connection to

How do I include non-.py files in PyPI?

怎甘沉沦 提交于 2020-01-01 09:44:07
问题 I am a newb to PyPI...so let me qualify with that. I am trying to put a package on PyPI but having a bit of trouble when I try to install it with pip. When I upload the file to PyPI, I get a warning (but the setup.py script finishes with not fatal errors and a 200 status): 'my_package/static/my_folder' not a regular file -- skipping And then when I go to install it in pip, I get an error: "error: can't copy 'my_package/static/my_folder': doesn't exist or not a regular file. From other answers

How do I include non-.py files in PyPI?

我的梦境 提交于 2020-01-01 09:43:28
问题 I am a newb to PyPI...so let me qualify with that. I am trying to put a package on PyPI but having a bit of trouble when I try to install it with pip. When I upload the file to PyPI, I get a warning (but the setup.py script finishes with not fatal errors and a 200 status): 'my_package/static/my_folder' not a regular file -- skipping And then when I go to install it in pip, I get an error: "error: can't copy 'my_package/static/my_folder': doesn't exist or not a regular file. From other answers

Installing my sdist from PyPI puts the files in unexpected places

[亡魂溺海] 提交于 2020-01-01 09:29:09
问题 My problem is that when I upload my Python package to PyPI, and then install it from there using pip, my app breaks because it installs my files into completely different locations than when I simply install the exact same package from a local sdist. Installing from the local sdist puts files on my system like this: /Python27/ Lib/ site-packages/ gloopy-0.1.alpha-py2.7.egg/ (egg and install info files) data/ (images and shader source) doc/ (html) examples/ (.py scripts that use the library)

List PyPI packages by popularity [closed]

落爺英雄遲暮 提交于 2020-01-01 03:56:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . Is it possible to obtain a list of PyPI packages ordered by popularity (number of total downloads)? I am unable to find a way to do this on PyPI. Perhaps PyPI provides a database dump for this purpose? If I'm unable to find a simpler way, I plan to scrape PyPI using their JSON API. 回答1: The Python Wheels site