diff options
author | Gard Spreemann <gspr@nonempty.org> | 2019-05-23 13:45:38 +0200 |
---|---|---|
committer | Gard Spreemann <gspr@nonempty.org> | 2019-05-23 13:45:38 +0200 |
commit | f15a4382091aae707a95302ee5a3ad5bafc724bc (patch) | |
tree | 8a8f2461f51e498a6b9fc1b7d21a2fa12c3ee562 /CONTRIBUTING.rst | |
parent | a025b6c38c32e4a580c6f521cee277a64d04fc12 (diff) | |
parent | 11e00a4a0a3771097ddddcdb8fa3c417407adf3b (diff) |
Merge tag 'upstream/0.1.4' into debian/latest
Upstream 0.1.4 tarball as released on PyPI.
Diffstat (limited to 'CONTRIBUTING.rst')
-rw-r--r-- | CONTRIBUTING.rst | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst new file mode 100644 index 0000000..d750f33 --- /dev/null +++ b/CONTRIBUTING.rst @@ -0,0 +1,51 @@ + +.. highlight:: console + +How to develop +-------------- + +Install the package following README.rst and then install development dependencies:: + + $ pip install -U -r tests/requirements-dev.txt + +Unit tests can be run with `pytest <https://pytest.org>`_ with:: + + $ pytest -v --flakes --cov=cdsapi --cov-report=html --cache-clear + +Coverage can be checked opening in a browser the file ``htmlcov/index.html`` for example with:: + + $ open htmlcov/index.html + +Code quality control checks can be run with:: + + $ pytest -v --pep8 --mccabe + +The complete python versions tests are run via `tox <https://tox.readthedocs.io>`_ with:: + + $ tox + +Please ensure the coverage at least stays the same before you submit a pull request. + + +Dependency management +--------------------- + +Update the `requirements-tests.txt` file with versions with:: + + pip-compile -U -o tests/requirements-tests.txt setup.py tests/requirements-tests.in # -U is optional + + +Release procedure +----------------- + +Quality check release:: + + $ git status + $ check-manifest + $ tox + +Release with zest.releaser:: + + $ prerelease + $ release + $ postrelease |