You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-5
Original file line number
Diff line number
Diff line change
@@ -73,9 +73,11 @@ If you want to learn even more, you can also check the following [examples](exam
73
73
74
74
## Contributing
75
75
76
-
After cloning this repo, ensure dependencies are installed by running:
76
+
After cloning this repo, create a [virtualenv](https://virtualenv.pypa.io/en/stable/) and ensure dependencies are installed by running:
77
77
78
78
```sh
79
+
virtualenv venv
80
+
source venv/bin/activate
79
81
pip install -e ".[test]"
80
82
```
81
83
@@ -87,7 +89,7 @@ py.test PATH/TO/MY/DIR/ # All tests in directory
87
89
```
88
90
89
91
Add the `-s` flag if you have introduced breakpoints into the code for debugging.
90
-
Add the `-v` ("verbose") flag to get more detailed test output. For even more detailed output, use `-vv`.
92
+
Add the `-v` ("verbose") flag to get more detailed test output. For even more detailed output, use `-vv`.
91
93
Check out the [pytest documentation](https://docs.pytest.org/en/latest/) for more options and test running controls.
92
94
93
95
You can also run the benchmarks with:
@@ -96,15 +98,15 @@ You can also run the benchmarks with:
96
98
py.test graphene --benchmark-only
97
99
```
98
100
99
-
Graphene supports several versions of Python. To make sure that changes do not break compatibility with any of those versions, we use `tox` to create virtualenvs for each python version and run tests with that version. To run against all python versions defined in the `tox.ini` config file, just run:
101
+
Graphene supports several versions of Python. To make sure that changes do not break compatibility with any of those versions, we use `tox` to create virtualenvs for each python version and run tests with that version. To run against all python versions defined in the `tox.ini` config file, just run:
100
102
```sh
101
103
tox
102
104
```
103
-
If you wish to run against a specific version defined in the `tox.ini` file:
105
+
If you wish to run against a specific version defined in the `tox.ini` file:
104
106
```sh
105
107
tox -e py36
106
108
```
107
-
Tox can only use whatever versions of python are installed on your system. When you create a pull request, Travis will also be running the same tests and report the results, so there is no need for potential contributors to try to install every single version of python on their own system ahead of time. We appreciate opening issues and pull requests to make graphene even more stable & useful!
109
+
Tox can only use whatever versions of python are installed on your system. When you create a pull request, Travis will also be running the same tests and report the results, so there is no need for potential contributors to try to install every single version of python on their own system ahead of time. We appreciate opening issues and pull requests to make graphene even more stable & useful!
0 commit comments