Skip to content

Commit 3d16ae0

Browse files
authored
Merge pull request #18 from dimaglushkov/main
Update setup.py to load requirements from file and fix example in example.py
2 parents 5e8bbee + a4f29e6 commit 3d16ae0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
}
9797
}
9898
""",
99-
variables=leetcode.GraphqlQueryVariables(title_slug="two-sum"),
99+
variables=leetcode.GraphqlQueryGetQuestionDetailVariables(title_slug="two-sum"),
100100
operation_name="getQuestionDetail",
101101
)
102102

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
# prerequisite: setuptools
2727
# http://pypi.python.org/pypi/setuptools
2828

29-
REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil", "requests"]
29+
with open("requirements.txt") as requirements:
30+
REQUIRES = [req.replace("\n", "") for req in requirements.readlines()]
3031

3132
setup(
3233
name=NAME,

0 commit comments

Comments
 (0)