-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
ENH Improving the contribution guidelines #7236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
d00c927
419ce52
0b9974c
085844a
9799d66
9547bc7
5a9f988
c97d6ac
54e0c9c
76a5ab2
19603a5
388a4a0
4d8963f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -47,7 +47,11 @@ environment is set up properly:: | |
|
|
||
| python tests.py | ||
|
|
||
| You can read more about testing :ref:`testing` | ||
|
|
||
| You may want to consider setting up a `virtual environment | ||
| <http://docs.python-guide.org/en/latest/dev/virtualenvs/>`_ or a `conda | ||
| environment <http://conda.pydata.org/docs/using/envs.html>`_ | ||
|
||
|
|
||
|
|
||
| .. note:: | ||
|
|
||
|
|
@@ -58,22 +62,33 @@ You can read more about testing :ref:`testing` | |
| every time the source code of a compiled extension is changed (for | ||
| instance when switching branches or pulling changes from upstream). | ||
|
|
||
| .. _nose: http://nose.readthedocs.org/en/latest/ | ||
| .. _pep8: http://pep8.readthedocs.org/en/latest/ | ||
|
||
|
|
||
| .. note:: | ||
|
|
||
| To make sure the tests run locally: | ||
| **Additional dependencies for testing**: nose_ (version 1.0 or later), | ||
| `mock <http://www.voidspace.org.uk/python/mock/>`_ (if python < 3.3), | ||
| `Ghostscript <http://pages.cs.wisc.edu/~ghost/>`_, `Inkscape | ||
| <http://inkscape.org>`_ | ||
|
|
||
| .. note:: To make sure the tests run locally: | ||
|
|
||
| * Copy setup.cfg.template to setup.cfg | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the env approach here is better, it will survive There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not sure what you are referring too. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If that env is set to anything 'true-ish' during |
||
| * Edit setup.cfg to set `test` to True, and `local_freetype` to True | ||
|
||
| * If you have build matplotlib previously, remove the build folder. | ||
|
||
| * Execute the build command. | ||
|
|
||
| <<<<<<< 8301de2110774994b720461335e5923998d80c99 | ||
| When working on bleeding edge packages, setting up a | ||
| `virtual environment | ||
| <http://docs.python-guide.org/en/latest/dev/virtualenvs/>`_ or a `conda | ||
| environment <http://conda.pydata.org/docs/using/envs.html>`_ is recommended. | ||
|
|
||
| .. seealso:: | ||
|
|
||
| * :ref:`testing` | ||
| * :ref:`using-git` | ||
|
|
||
| For more information on using git and Github, see :ref:`using-git`. | ||
|
|
||
| Contributing code | ||
| ================= | ||
|
|
@@ -118,9 +133,10 @@ and click 'Pull request' to send your changes to the maintainers for review. | |
| You may want to consider sending an email to the mailing list for more | ||
| visibility. | ||
|
|
||
| If any of the above seems like magic to you, then look up the | ||
| `Git documentation <https://git-scm.com/documentation>`_ and our | ||
| :ref:`development-workflow`. | ||
| .. seealso:: | ||
|
|
||
| * `Git documentation <https://git-scm.com/documentation>`_ | ||
| * :ref:`development-workflow`. | ||
|
|
||
| Contributing pull requests | ||
| -------------------------- | ||
|
|
@@ -136,7 +152,7 @@ rules before submitting a pull request: | |
| usage presented as doctests when appropriate. Use the | ||
|
||
| `numpy docstring standard <https://github.com/numpy/numpy/blob/master/doc/HOWTO_DOCUMENT.rst.txt>`_ | ||
|
|
||
| * Formatting should follow `PEP8 | ||
| * Formatting should follow `PEP8 recommandation | ||
|
||
| <http://www.python.org/dev/peps/pep-0008/>`_. You should consider | ||
|
||
| installing/enabling automatic PEP8 checking in your editor. Part of the | ||
| test suite is checking PEP8 compliance, things go smoother if the code is | ||
|
|
@@ -199,7 +215,11 @@ tools: | |
| direction. | ||
|
|
||
|
|
||
| More on :ref:`coding_guidelines` | ||
| .. seealso:: | ||
|
|
||
| * :ref:`coding_guidelines` | ||
| * :ref:`testing` | ||
| * :ref:`documenting-matplotlib` | ||
|
|
||
| .. _other_ways_to_contribute: | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is run at this stage it will spew image comparison failures, won't it? Maybe better to delay all mention of running the test until the place below where you tell how to set things up for testing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On my computer, it works fine at this stage. I am lucky?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not strictly problematic, but if you don't tell it to use the fixed version of freetype, you might run into a lot of image failures if all the text has shifted a bit (like say, the next versions of Debian and Fedora, which include a newer FreeType.)