forked from python-attrs/attrs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use extras_require instead of dev-requirements.txt (python-attrs#318)
* Use extras_require instead of dev-requirements.txt * Better phrasing * Make names reflects dir names, add docs Keep docs-requirements.txt for now, but the plan is to get rid of it. * Explain docs building
- Loading branch information
Showing
6 changed files
with
36 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -151,34 +151,33 @@ We highly recommend to develop using the latest Python 3 release because ``attrs | |
First create a `virtual environment <https://virtualenv.pypa.io/>`_. | ||
It’s out of scope for this document to list all the ways to manage virtual environments in Python but if you don’t have already a pet way, take some time to look at tools like `pew <https://github.com/berdario/pew>`_, `virtualfish <http://virtualfish.readthedocs.io/>`_, and `virtualenvwrapper <http://virtualenvwrapper.readthedocs.io/>`_. | ||
|
||
Next get an up to date checkout of the ``attrs`` repository: | ||
Next, get an up to date checkout of the ``attrs`` repository: | ||
|
||
.. code-block:: bash | ||
git checkout [email protected]:python-attrs/attrs.git | ||
$ git checkout [email protected]:python-attrs/attrs.git | ||
Change into the newly created directory and **after activating your virtual environment** install an editable version of ``attrs``: | ||
Change into the newly created directory and **after activating your virtual environment** install an editable version of ``attrs`` along with its tests and docs requirements: | ||
|
||
.. code-block:: bash | ||
cd attrs | ||
pip install -e . | ||
$ cd attrs | ||
$ pip install -e .[dev] | ||
If you run the virtual environment’s Python and try to ``import attr`` it should work! | ||
|
||
To run the test suite, you'll need our development dependencies which can be installed using | ||
At this point | ||
|
||
.. code-block:: bash | ||
pip install -r dev-requirements.txt | ||
$ python -m pytest | ||
At this point | ||
should work and pass, as should: | ||
|
||
.. code-block:: bash | ||
python -m pytest | ||
$ cd docs | ||
$ make html | ||
should work and pass! | ||
The built documentation can then be found in ``docs/_build/html/``. | ||
|
||
|
||
Governance | ||
|
@@ -205,7 +204,7 @@ Thank you for considering contributing to ``attrs``! | |
.. _`PEP 8`: https://www.python.org/dev/peps/pep-0008/ | ||
.. _`PEP 257`: https://www.python.org/dev/peps/pep-0257/ | ||
.. _`good test docstrings`: https://jml.io/pages/test-docstrings.html | ||
.. _`Code of Conduct`: https://github.com/python-attrs/attrs/blob/master/CODE_OF_CONDUCT.rst | ||
.. _`Code of Conduct`: https://github.com/python-attrs/attrs/blob/master/.github/CODE_OF_CONDUCT.rst | ||
.. _changelog: https://github.com/python-attrs/attrs/blob/master/CHANGELOG.rst | ||
.. _`backward compatibility`: http://www.attrs.org/en/latest/backward-compatibility.html | ||
.. _tox: https://tox.readthedocs.io/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
-e . | ||
sphinx | ||
zope.interface | ||
-e .[docs] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters