summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tox.ini1
-rw-r--r--wheel/metadata.py3
2 files changed, 2 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index 18fa2c8..f1e6a10 100644
--- a/tox.ini
+++ b/tox.ini
@@ -11,7 +11,6 @@ commands =
py.test
deps =
jsonschema
- coverage
pytest
pytest-cov
wheel[tool,signatures]
diff --git a/wheel/metadata.py b/wheel/metadata.py
index ca9643f..02c0663 100644
--- a/wheel/metadata.py
+++ b/wheel/metadata.py
@@ -238,7 +238,8 @@ def pkginfo_to_metadata(egg_info_path, pkginfo_path):
requires_path = os.path.join(egg_info_path, 'requires.txt')
if os.path.exists(requires_path):
requires = open(requires_path).read()
- for extra, reqs in sorted(pkg_resources.split_sections(requires)):
+ for extra, reqs in sorted(pkg_resources.split_sections(requires),
+ key=lambda x: x[0] or ''):
condition = ''
if extra and ':' in extra: # setuptools extra:condition syntax
extra, condition = extra.split(':', 1)