pypi

Updating Bootstrap to version 3 - what do I have to do?

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm new to Bootstrap and have the older version 2.3.2. Version 3 has been released. Do I just simply replace the CSS and Javascript files if I want to use the latest version? 回答1: Download the latest version from http://getbootstrap.com/ OR Replace the css and js files with the newest versions or use CDN ( http://www.bootstrapcdn.com/ ) Migrate your html, yes indeed read http://bootply.com/bootstrap-3-migration-guide . You could try http://twitterbootstrapmigrator.w3masters.nl/ or http://code.divshot.com/bootstrap3_upgrader/ (provide

Force setuptools to use dependency_links to install mysqlclient

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using Windows, and I need to install the WHL file from here . Here's what I have in setup.py: install_requires=['mysqlclient==1.3.7', ... dependency_links=['https://pypi.python.org/packages/cp27/m/mysqlclient/mysqlclient-1.3.7-cp27-none-win32.whl#md5=e9e726fd6f1912af78e2bf6ab56c02f3',] However, setuptools is downloading the tar.gz file instead and attempting to build, which won't work on my system. I followed this solution and changed my install_requires to use mysqlclient<=1.3.7 , but I still get the same problem. Here is the output:

Creating PyPi package - Could not find a version that satisfies the requirement iso8601

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm creating a PyPi package with pip and trying to test that it works on the test environment ( https://testpypi.python.org/pypi ). Right now I have a package that appears to exist on the prod PyPi install but not on test. If I install the dependency with prod PyPi (ie. pip install iso8601==0.1.4) it works properly but if I install from the test PyPi (ie. pip install iso8601==0.1.4 -i https://testpypi.python.org/pypi ) I get Could not find a version that satisfies the requirement iso8601==0.1.4 (from versions: ) No matching distribution

pypiԴ

匿名 (未验证) 提交于 2019-12-03 00:03:02
清华大学 pip install requests -i https://pypi.tuna.tsinghua.edu.cn/simple 豆瓣 pip install requests -i https://pypi.doubanio.com/simple 来源:博客园 作者: spotfg 链接:https://www.cnblogs.com/7134g/p/11510439.html

Credentials in pip.conf for private PyPI

五迷三道 提交于 2019-12-02 22:41:31
I have a private PyPI repository. Is there any way to store credentials in pip.conf similar to .pypirc ? What I mean. Currently in .pypirc you can have such configuration: [distutils] index-servers = custom [custom] repository: https://pypi.example.com username: johndoe password: changeme From what I've found that you can put in pip.conf : [global] index = https://username:password@pypi.example.com/pypi index-url = https://username:password@pypi.example.com/simple cert = /etc/ssl/certs/ca-certificates.crt But here I see two problems: For each url you'll need each time to specify the same

A simple Hello World setuptools package and installing it with pip

家住魔仙堡 提交于 2019-12-02 20:53:46
I'm having trouble figuring out how to install my package using setuptools, and I've tried reading the documentation on it and SO posts, but I can't get it to work properly. I'm trying to get a simple helloworld application to work. This is how far I got: helloworld.py: print("Hello, World!") README.txt: Hello, World! readme MANIFEST.in: recursive-include images *.gif setup.py: from setuptools import setup, find_packages setup( name='helloworld', version='0.1', license='BSD', author='gyeh', author_email='hello@world.com', url='http://www.hello.com', long_description="README.txt", packages=find

PyPi download counts seem unrealistic

左心房为你撑大大i 提交于 2019-12-02 19:54:28
I put a package on PyPi for the first time ~2 months ago, and have made some version updates since then. I noticed this week the download count recording, and was surprised to see it had been downloaded hundreds of times. Over the next few days, I was more surprised to see the download count increasing by sometimes hundreds per day , even though this is a niche statistical test toolbox. In particular, older versions of package are continuing to be downloaded, sometimes at higher rates than the newest version. What is going on here? Is there a bug in PyPi's downloaded counting, or is there an

How to specify multiple author(s) / email(s) in setup.py

倾然丶 夕夏残阳落幕 提交于 2019-12-02 17:50:01
We wrote a small wrapper to a twitter app and published this information to http://pypi.python.org . But setup.py just contained a single field for specifying email / name of the author. How do I specify multiple contributors / email list, to the following fields since we would like this package to be listed under our names, much similar to how it shows up in http://rubygems.org . author='foo', author_email='foo.bar@gmail.com', As far as I know, setuptools doesn't support using a list of strings in order to specify multiple authors. Your best bet is to list the authors in a single string:

How can you bundle all your python code into a single zip file?

喜欢而已 提交于 2019-12-02 17:34:49
It would be convenient when distributing applications to combine all of the eggs into a single zip file so that all you need to distribute is a single zip file and an executable (some custom binary that simply starts, loads the zip file's main function and kicks python off or similar). I've seen some talk of doing this online, but no examples of how to actually do it. I'm aware that you can (if its zip safe) convert eggs into zip files. What I'm not sure about is: Can you somehow combine all your eggs into a single zip file? If so, how? How would you load and run code from a specific egg? How