Skip to content

Commit

Permalink
Add extras requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
vxgmichel committed Feb 5, 2020
1 parent e86743b commit 6e52b12
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
from setuptools import setup

TESTING = any(x in sys.argv for x in ['test', 'pytest'])
UPLOAD = 'upload_sphinx' in sys.argv

if not UPLOAD and sys.version_info < (3, 6):
if sys.version_info < (3, 6):
raise RuntimeError("aiostream requires Python 3.6")

with open("README.rst", encoding="utf-8") as f:
Expand All @@ -27,9 +26,13 @@
'pytest',
'pytest-asyncio',
'pytest-cov',
'trio',
'curio'],

'trio>=0.12,<1',
'curio>=0.9,<1'],
extras_require={
"asyncio": [],
"curio": ["curio>=0.9,<1"],
"trio": ["trio>=0.12,<1"],
},
description="Generator-based operators for asynchronous iteration",
long_description=long_description,
url="https://github.com/vxgmichel/aiostream",
Expand Down

0 comments on commit 6e52b12

Please sign in to comment.