diff --git a/example.py b/example.py index 8d38d7d..bb61f76 100644 --- a/example.py +++ b/example.py @@ -96,7 +96,7 @@ } } """, - variables=leetcode.GraphqlQueryVariables(title_slug="two-sum"), + variables=leetcode.GraphqlQueryGetQuestionDetailVariables(title_slug="two-sum"), operation_name="getQuestionDetail", ) diff --git a/setup.py b/setup.py index 1323596..ae727f1 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,8 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil", "requests"] +with open("requirements.txt") as requirements: + REQUIRES = [req.replace("\n", "") for req in requirements.readlines()] setup( name=NAME,