Skip to content

Instantly share code, notes, and snippets.

[[fruit]]
name = "apple"
[fruit.physical]
color = "red"
shape = "round"
[[fruit.variety]]
name = "red delicious"
  • ~= - Compatible release operator, Allows everything in the same series (e.g. ~=1.1 allows >=1.1 but stil within the 1.x series)
  • == - Equality operator, The public API version must be the same but zero padded, (==1.0 allows 1.0, or 1, or 1.0.0). This also allows anything with a "downstream patch" version such as 1.0+debian3. This does support specifying exactly a downstream patch too, such as ==1.0+debian3
  • === - Identity operator, Primarily a escape hatch for versions which cannot be parsed for semantic information, but can also be used to say you do not except downstream patches at all such as ===1.0 would not match 1.0+debian3. This also does not allow zero padding. This is essentially saying to use string equality instead of version equality.
@dstufft
dstufft / wat.py
Last active August 29, 2015 14:02
proc = subprocess.Popen(["pip", "install", "initools==0.2", "-vvv"],
cwd=cwd,
# see http://bugs.python.org/issue8557
shell=(sys.platform == 'win32'),
env=clean_environ(self.environ))
stdout, stderr = proc.communicate() # hangs forever
<html>
<body>
<a href="git+https://github.com/dstufft/packaging.git#egg=packaging-1.0">Thing</a>
</body>
</html>
@dstufft
dstufft / ips.rst
Last active August 29, 2015 14:01

PIL 6133 mysql-connector-python 209 pyodbc 174 elementtree 141 Pygame 139 cx_Oracle 123 python-graph-core 118

The number of hits the /simple/ page got for each project on 2014-05-14. The list of projects represents all of the projects which host completely off of PyPI.

PIL 72616 mysql-connector-python 926 pyodbc 599 elementtree 580 cx_Oracle 514

[
"BOTEC",
"CAGE",
"CSBuddy",
"FauxIdent",
"LSystem",
"PyX",
"ZOE",
"bitbucket-distutils",
"dutest-trac",

One Year Ago

language: python
python:
2.6
2.7
2.7_with_system_site_packages
import sys
install_requires = []
if sys.platform == "win32":
install_requires.append("cryptography-win32")
elif sys.platform == "darwin":
install_requires.append("cryptography-commoncrypto")
else:
intall_requires.append("cryptography-openssl")