Commit 4bf7cb1b authored by Jason R. Coombs's avatar Jason R. Coombs

Merge pull request #556 from gsnedders/packaging_167

Update packaging to 16.7
parents 5cc432e3 fc2afb51
...@@ -12,7 +12,7 @@ __title__ = "packaging" ...@@ -12,7 +12,7 @@ __title__ = "packaging"
__summary__ = "Core utilities for Python packages" __summary__ = "Core utilities for Python packages"
__uri__ = "https://github.com/pypa/packaging" __uri__ = "https://github.com/pypa/packaging"
__version__ = "16.6" __version__ = "16.7"
__author__ = "Donald Stufft and individual contributors" __author__ = "Donald Stufft and individual contributors"
__email__ = "donald@stufft.io" __email__ = "donald@stufft.io"
......
...@@ -78,9 +78,18 @@ VARIABLE = ( ...@@ -78,9 +78,18 @@ VARIABLE = (
L("platform.version") | # PEP-345 L("platform.version") | # PEP-345
L("platform.machine") | # PEP-345 L("platform.machine") | # PEP-345
L("platform.python_implementation") | # PEP-345 L("platform.python_implementation") | # PEP-345
L("python_implementation") | # undocumented setuptools legacy
L("extra") L("extra")
) )
VARIABLE.setParseAction(lambda s, l, t: Variable(t[0].replace('.', '_'))) ALIASES = {
'os.name': 'os_name',
'sys.platform': 'sys_platform',
'platform.version': 'platform_version',
'platform.machine': 'platform_machine',
'platform.python_implementation': 'platform_python_implementation',
'python_implementation': 'platform_python_implementation'
}
VARIABLE.setParseAction(lambda s, l, t: Variable(ALIASES.get(t[0], t[0])))
VERSION_CMP = ( VERSION_CMP = (
L("===") | L("===") |
......
packaging==16.6 packaging==16.7
pyparsing==2.0.6 pyparsing==2.0.6
six==1.10.0 six==1.10.0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment