Skip to content

Commit 71177fe

Browse files
authored
Prevent requirement breaking changes
I have a project still in 1.2.0 thats has been broken in my last release since it used `'graphql-core>=1.0.1'` in the `install_requires`. Since `graphql-core` has released version 2.0 with breaking changes and there was no instruction to maintain version 1, it was included as a dependency. This prevents this situation for the future.
1 parent 34d03a7 commit 71177fe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ def run_tests(self):
8686
packages=find_packages(exclude=['tests', 'tests.*']),
8787

8888
install_requires=[
89-
'six>=1.10.0',
90-
'graphql-core>=2.0',
91-
'graphql-relay>=0.4.5',
92-
'promise>=2.1',
89+
'six>=1.10.0,<2',
90+
'graphql-core>=2.0,<3',
91+
'graphql-relay>=0.4.5,<1',
92+
'promise>=2.1,<3',
9393
],
9494
tests_require=tests_require,
9595
extras_require={

0 commit comments

Comments
 (0)