Skip to content

Commit

Permalink
Merge pull request #37 from zopefoundation/env-markers
Browse files Browse the repository at this point in the history
Use PEP-426 environment markers
  • Loading branch information
mgedmin committed Jun 2, 2015
2 parents a1df3d0 + add078b commit 0f7d2a8
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions setup.py
Expand Up @@ -23,7 +23,6 @@
VERSION = "4.2.0.dev0"

import os
import platform
import sys
from setuptools import setup, find_packages

Expand All @@ -35,11 +34,6 @@
print("This version of ZODB requires Python 3.2 or higher")
sys.exit(0)

PY3 = sys.version_info >= (3,)
PY27 = sys.version_info >= (2,7)
py_impl = getattr(platform, 'python_implementation', lambda: None)
PYPY = py_impl() == 'PyPy'


# The (non-obvious!) choices for the Trove Development Status line:
# Development Status :: 5 - Production/Stable
Expand Down Expand Up @@ -157,7 +151,10 @@ def read_file(*path):
long_description = long_description,
test_suite="__main__.alltests", # to support "setup.py test"
tests_require = tests_require,
extras_require = dict(test=tests_require),
extras_require = {
'test': tests_require,
':python_version != "2.6"': 'zodbpickle >= 0.6.0',
},
install_requires = [
'persistent >= 4.1.0',
'BTrees >= 4.1.3',
Expand All @@ -167,7 +164,7 @@ def read_file(*path):
'zc.lockfile',
'zdaemon >= 4.0.0a1',
'zope.interface',
] + (['zodbpickle >= 0.6.0'] if (PY3 or PY27 or PYPY) else []),
],
zip_safe = False,
entry_points = """
[console_scripts]
Expand Down

0 comments on commit 0f7d2a8

Please sign in to comment.