-
-
Notifications
You must be signed in to change notification settings - Fork 308
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
DOC: Proposed updates to contributor guide. #2513
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,12 +92,11 @@ the following:: | |
$ mkdir -p ~/pyenv/zarr-dev | ||
$ python -m venv ~/pyenv/zarr-dev | ||
$ source ~/pyenv/zarr-dev/bin/activate | ||
$ pip install -r requirements_dev_minimal.txt -r requirements_dev_numpy.txt | ||
$ pip install -e .[docs] | ||
$ pip install -e .[test,docs] | ||
|
||
To verify that your development environment is working, you can run the unit tests:: | ||
|
||
$ python -m pytest -v zarr | ||
$ python -m pytest -v tests | ||
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. It looks like there's been a 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 standard invocation is |
||
|
||
Creating a branch | ||
~~~~~~~~~~~~~~~~~ | ||
|
@@ -149,7 +148,7 @@ and invoke:: | |
Some tests require optional dependencies to be installed, otherwise | ||
the tests will be skipped. To install all optional dependencies, run:: | ||
|
||
$ pip install -r requirements_dev_optional.txt | ||
$ pip install pytest-doctestplus | ||
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 didn't see 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'd be pro putting this in the test dependencies section, and then not having any optional dependencies for testing? That way it's a bit simpler. |
||
|
||
To also run the doctests within docstrings (requires optional | ||
dependencies to be installed), run:: | ||
|
@@ -234,7 +233,7 @@ should run and pass as doctests under Python 3.8. To run doctests, | |
activate your development environment, install optional requirements, | ||
and run:: | ||
|
||
$ python -m pytest -v --doctest-plus zarr | ||
$ python -m pytest -v --doctest-plus tests | ||
|
||
Zarr uses Sphinx for documentation, hosted on readthedocs.org. Documentation is | ||
written in the RestructuredText markup language (.rst files) in the ``docs`` folder. | ||
|
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.
There don't appear to be requirements files anymore, so I assume that the
optional-dependencies
is the intended replacement - not sure how these intersectrequirements_dev_minimal
andrequirements_dev_numpy
but these appear to be the minimal ones to run the tests and build the docs!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.
We are using
hatch
now to manage our development environments. I think we should replace the virtual env directions with instructions on how to usehatch
.