Skip to content

Commit

Permalink
56 create ddlpy 030 release 1 (#82)
Browse files Browse the repository at this point in the history
* renamed pypi package back to rws-ddlpy

* added docs generation to contributing
  • Loading branch information
veenstrajelmer authored Mar 13, 2024
1 parent c423758 commit 353ef70
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 17 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/sphinx-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ jobs:
python -m pip install -e .[docs]
- name: Sphinx build
run: |
cp notebooks/measurements.ipynb docs
sphinx-build docs _build
sphinx-build docs docs/_build
- uses: actions/upload-pages-artifact@v1
with:
path: _build/
path: docs/_build/

# Deploy the artifact to GitHub pages.
# This is a separate job so that only actions/deploy-pages has the necessary permissions.
Expand Down
9 changes: 7 additions & 2 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ To run a subset of tests::
$ py.test tests.test_ddlpy


Deploying
---------
Deploying (old)
---------------

A reminder for the maintainers on how to deploy.
Make sure all your changes are committed (including an entry in HISTORY.rst).
Expand All @@ -128,6 +128,11 @@ $ git push --tags
Travis will then deploy to PyPI if tests pass.


Generate documentation
----------------------
- `sphinx-build docs docs/_build`


Releasing (non-travis)
----------------------

Expand Down
16 changes: 5 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,20 @@
[![pypi-image](https://img.shields.io/pypi/v/ddlpy.svg)](https://pypi.python.org/pypi/ddlpy)
[![pypi-image](https://img.shields.io/pypi/v/rws-ddlpy.svg)](https://pypi.python.org/pypi/rws-ddlpy)
[![pytest](https://github.com/Deltares/ddlpy/actions/workflows/pytest.yml/badge.svg?branch=main)](https://github.com/Deltares/ddlpy/actions/workflows/pytest.yml)
[![codecov](https://img.shields.io/codecov/c/github/deltares/ddlpy.svg?style=flat-square)](https://app.codecov.io/gh/deltares/ddlpy?displayType=list)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=Deltares_ddlpy&metric=alert_status)](https://sonarcloud.io/summary/overall?id=Deltares_ddlpy)
[![Supported versions](https://img.shields.io/pypi/pyversions/ddlpy.svg)](https://pypi.org/project/ddlpy)
[![Downloads](https://img.shields.io/pypi/dm/ddlpy.svg)](https://pypistats.org/packages/ddlpy)
[![Supported versions](https://img.shields.io/pypi/pyversions/rws-ddlpy.svg)](https://pypi.org/project/rws-ddlpy)
[![Downloads](https://img.shields.io/pypi/dm/rws-ddlpy.svg)](https://pypistats.org/packages/rws-ddlpy)

# ddlpy

(D)ata (D)istributie (L)aag is a service from Rijkswaterstaat for distributing water quantity data. This package provides an API for python.

See also https://github.com/wstolte/rwsapi for the R API.
(D)ata (D)istributie (L)aag is a service from Rijkswaterstaat for distributing water quantity data. This package provides an API for Python. See also https://github.com/wstolte/rwsapi for the R API.


# Install

If you had ddlpy installed before please uninstall it first, since the package was renamed from rws-ddlpy to ddlpy on PyPI:

pip uninstall rws-ddlpy -y

Install the latest ddlpy PyPI release with (extra dependencies between `[]` are optional):

pip install ddlpy[netcdf,examples]
pip install rws-ddlpy[netcdf,examples]

# Examples

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["setuptools>=64.0.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "ddlpy"
name = "rws-ddlpy"
version = "0.3.0"
maintainers = [
{ name = "Fedor Baart", email = "[email protected]"},
Expand Down

0 comments on commit 353ef70

Please sign in to comment.