Skip to content

Commit

Permalink
Switch to using PEP 508 / Environment markers (#382)
Browse files Browse the repository at this point in the history
Specify dependencies using [Environment markers](https://www.python.org/dev/peps/pep-0508/#environment-markers).
  • Loading branch information
jackton1 committed Jun 22, 2021
1 parent 618b9aa commit f67253a
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,13 @@
tests_require = [
'webob',
'blinker',
'unittest2'
'unittest2',
'mock<=3.0.5; python_version < "3.3"',
'enum34; python_version < "3.4"',
'httpx; python_version >= "3.6"',
'aiocontextvars; python_version == "3.6"'
]

if sys.version_info < (3, 3):
tests_require.append('mock<=3.0.5') # mock > 3.0.5 requires python >= 3.6
if sys.version_info < (3, 4):
tests_require.append('enum34')
if sys.version_info >= (3, 6):
tests_require.append('httpx')
if sys.version_info[:2] == (3, 6):
tests_require.append('aiocontextvars')

setup(
name='rollbar',
packages=find_packages(),
Expand Down

0 comments on commit f67253a

Please sign in to comment.