Skip to content

Commit 651d57e

Browse files
authored
Merge pull request #622 from graphql-python/makefile
Add Makefile and better CONTRIBUTING.md
2 parents 090ce6e + bba8377 commit 651d57e

File tree

4 files changed

+56
-59
lines changed

4 files changed

+56
-59
lines changed

CONTRIBUTING.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Contributing
2+
3+
Thanks for helping to make graphene-django great!
4+
5+
We welcome all kinds of contributions:
6+
7+
- Bug fixes
8+
- Documentation improvements
9+
- New features
10+
- Refactoring & tidying
11+
12+
13+
## Getting started
14+
15+
If you have a specific contribution in mind, be sure to check the [issues](https://github.com/graphql-python/graphene-django/issues) and [projects](https://github.com/graphql-python/graphene-django/projects) in progress - someone could already be working on something similar and you can help out.
16+
17+
18+
## Project setup
19+
20+
After cloning this repo, ensure dependencies are installed by running:
21+
22+
```sh
23+
make dev-setup
24+
```
25+
26+
## Running tests
27+
28+
After developing, the full test suite can be evaluated by running:
29+
30+
```sh
31+
make tests
32+
```
33+
34+
## Documentation
35+
36+
The [documentation](http://docs.graphene-python.org/projects/django/en/latest/) is generated using the excellent [Sphinx](http://www.sphinx-doc.org/) and a custom theme.
37+
38+
The documentation dependencies are installed by running:
39+
40+
```sh
41+
cd docs
42+
pip install -r requirements.txt
43+
```
44+
45+
Then to produce a HTML version of the documentation:
46+
47+
```sh
48+
make html
49+
```

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
dev-setup:
2+
pip install -e ".[test]"
3+
4+
tests:
5+
py.test graphene_django --cov=graphene_django -vv

README.md

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -96,32 +96,4 @@ To learn more check out the following [examples](examples/):
9696

9797
## Contributing
9898

99-
After cloning this repo, ensure dependencies are installed by running:
100-
101-
```sh
102-
pip install -e ".[test]"
103-
```
104-
105-
After developing, the full test suite can be evaluated by running:
106-
107-
```sh
108-
py.test graphene_django --cov=graphene_django # Use -v -s for verbose mode
109-
```
110-
111-
112-
### Documentation
113-
114-
The [documentation](http://docs.graphene-python.org/projects/django/en/latest/) is generated using the excellent [Sphinx](http://www.sphinx-doc.org/) and a custom theme.
115-
116-
The documentation dependencies are installed by running:
117-
118-
```sh
119-
cd docs
120-
pip install -r requirements.txt
121-
```
122-
123-
Then to produce a HTML version of the documentation:
124-
125-
```sh
126-
make html
127-
```
99+
See [CONTRIBUTING.md](contributing.md)

README.rst

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -105,36 +105,7 @@ To learn more check out the following `examples <examples/>`__:
105105
Contributing
106106
------------
107107

108-
After cloning this repo, ensure dependencies are installed by running:
109-
110-
.. code:: sh
111-
112-
pip install -e ".[test]"
113-
114-
After developing, the full test suite can be evaluated by running:
115-
116-
.. code:: sh
117-
118-
py.test graphene_django --cov=graphene_django # Use -v -s for verbose mode
119-
120-
Documentation
121-
~~~~~~~~~~~~~
122-
123-
The `documentation <http://docs.graphene-python.org/projects/django/en/latest/>`__ is generated using the excellent
124-
`Sphinx <http://www.sphinx-doc.org/>`__ and a custom theme.
125-
126-
The documentation dependencies are installed by running:
127-
128-
.. code:: sh
129-
130-
cd docs
131-
pip install -r requirements.txt
132-
133-
Then to produce a HTML version of the documentation:
134-
135-
.. code:: sh
136-
137-
make html
108+
See `CONTRIBUTING.md <CONTRIBUTING.md>`__.
138109

139110
.. |Graphene Logo| image:: http://graphene-python.org/favicon.png
140111
.. |Build Status| image:: https://travis-ci.org/graphql-python/graphene-django.svg?branch=master

0 commit comments

Comments
 (0)