pypi

Python - Import package modules before as well as after setup.py install

故事扮演 提交于 2020-06-25 10:15:00
问题 Assume a Python package (e.g., MyPackage ) that consists of several modules (e.g., MyModule1.py and MyModule2.py ) and a set of unittests (e.g., in MyPackage_test.py ). . ├── MyPackage │ ├── __init__.py │ ├── MyModule1.py │ └── MyModule2.py ├── README.md ├── requirements.txt ├── setup.py └── tests └── MyPackage_test.py I would like to import functions of MyModule1.py within the unittests of MyPackage_test.py . Specifically, I would like to import the functions both before as well as after

How to make PyPi description Markdown work?

我是研究僧i 提交于 2020-06-22 04:48:25
问题 I uploaded a package to PyPi using: python setup.py register -r pypi python setup.py sdist upload -r pypi I'm trying to modify the description, I wrote ( please don't edit the formatting of the following piece of code, I made it on purpose to demonstrate my problem ): **my plugin** This plugin enables you to ... For example: ```python @attr(section='MySection', id=1) def test_function(self): """ Bla bla bla """ pass ``` However, the text appears as it is, without the markdown formatting. What

setup.py dependency_links Pypi name conflict

不羁的心 提交于 2020-05-15 07:42:47
问题 I have a non-Pypi package that I want to install using setup.py file, so I include it in the dependency_links : dependency_link=['package_url.tar.gz'] The problem there's another package with the same name on Pypi, so the setup.py just ignores my dependency_links line and installs that. Is there a way around this? 来源: https://stackoverflow.com/questions/41602869/setup-py-dependency-links-pypi-name-conflict

apt dependies for pypi package

眉间皱痕 提交于 2020-05-09 06:23:56
问题 Question about the policy of installing third-party binary dependencies missing from pypi. There is a package distributed via pypi, depending on the set of libraries from the debian repository of debian packages (apt install). Without these libraries, the package will not work / install. How to install / ask the user to install these libraries. What is community policy on this issue? 回答1: The most correct way is to distribute your packages in the proper system package format — rpm, deb,

apt dependies for pypi package

喜你入骨 提交于 2020-05-09 06:23:27
问题 Question about the policy of installing third-party binary dependencies missing from pypi. There is a package distributed via pypi, depending on the set of libraries from the debian repository of debian packages (apt install). Without these libraries, the package will not work / install. How to install / ask the user to install these libraries. What is community policy on this issue? 回答1: The most correct way is to distribute your packages in the proper system package format — rpm, deb,

Will I still able to install dependency package via Pip after Python 2 End of Life in 2020?

前提是你 提交于 2020-04-11 04:36:26
问题 I'm using Python 2.7 and python pip to download all dependency packages from requirements.txt file for running my project. As we know the end of life of Python 2 in 2020, I have concern I could not install my dependency package from pip as pip install -r requirements.txt anymore. One way I could think of is download all dependencies from requirements.txt and install them locally. Is it possible? I have read a similar question Will PIP work for python 2.7 after its End of Life on 1st Jan 2020,

Will I still able to install dependency package via Pip after Python 2 End of Life in 2020?

元气小坏坏 提交于 2020-04-11 04:36:03
问题 I'm using Python 2.7 and python pip to download all dependency packages from requirements.txt file for running my project. As we know the end of life of Python 2 in 2020, I have concern I could not install my dependency package from pip as pip install -r requirements.txt anymore. One way I could think of is download all dependencies from requirements.txt and install them locally. Is it possible? I have read a similar question Will PIP work for python 2.7 after its End of Life on 1st Jan 2020,

pip.conf not paying attention to trusted-host

混江龙づ霸主 提交于 2020-04-08 01:33:18
问题 I have my pip.conf file as follows: [global] trusted-host = <private IP> extra-index-url = http://<private IP>/pypi However, whenever I try to install a package (just a test package) from the private pypi repo, I receive an error that instructs me to add --trusted-host <private IP> . If I do, I can successfully install the package, so I know that pip is reading the pip.conf file. Why isn't it respecting the trusted-host config? I've triple checked that the IPs match in the config file.

安装第三方库超时时,可更换的资源网

我的梦境 提交于 2020-02-28 15:28:31
阿里云 http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 豆瓣(douban) http://pypi.douban.com/simple/ 清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/ 中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/ 命令: pip install 库名 -i 网站 来源: CSDN 作者: 辰之粥 链接: https://blog.csdn.net/chenzhoujian_/article/details/104554347

setuptools, easy_install, and a custom pypi server

落花浮王杯 提交于 2020-02-27 05:27:05
问题 I've got a custom pypi server running and am wondering how to point all references to https://pypi.python.org/ from there to my custom server? I want to be able to cover cases of a user calling pip / easy_install of a package (so they don't have to remember to do -i or -f ) as well as someone doing python setup.py install using setuptools with install_requires in the setup.py . Is there some global config or setting I can do to get all these different methods to look at my local server? I