Skip to content

Commit

Permalink
Use enum34 backport when Enum is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
Nabellaleen committed Mar 29, 2019
1 parent 8a2f020 commit b62d7f3
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,19 @@
ast.literal_eval(_version_re.search(f.read().decode("utf-8")).group(1))
)

requirements = [
# To keep things simple, we only support newer versions of Graphene
"graphene>=2.1.3,<3",
# Tests fail with 1.0.19
"SQLAlchemy>=1.1,<2",
"six>=1.10.0,<2",
"singledispatch>=3.4.0.3,<4",
]
try:
import Enum
except ImportError:
requirements.append("enum34 >= 1.1.6")

tests_require = [
"pytest==4.3.1",
"mock==2.0.0",
Expand Down Expand Up @@ -42,14 +55,7 @@
],
keywords="api graphql protocol rest relay graphene",
packages=find_packages(exclude=["tests"]),
install_requires=[
# To keep things simple, we only support newer versions of Graphene
"graphene>=2.1.3,<3",
# Tests fail with 1.0.19
"SQLAlchemy>=1.1,<2",
"six>=1.10.0,<2",
"singledispatch>=3.4.0.3,<4",
],
install_requires=requirements,
extras_require={
"dev": [
"tox==3.7.0", # Should be kept in sync with tox.ini
Expand Down

0 comments on commit b62d7f3

Please sign in to comment.