Skip to content

Commit

Permalink
Merge pull request #18 from ecmwf/feature/add-earthkit-plots
Browse files Browse the repository at this point in the history
Add earthkit-plots
  • Loading branch information
sandorkertesz authored Jan 26, 2024
2 parents 98121a4 + 506107d commit 52f200e
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 8 deletions.
3 changes: 3 additions & 0 deletions docs/components_overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ This is the summary of the available ``earthkit`` components.
* - :xref:`earthkit-meteo`
- Meteorological computations.
-
* - :xref:`earthkit-plots`
- Graph chart visualisation
-
4 changes: 4 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@
"earthkit-meteo",
"https://earthkit-meteo.readthedocs.io",
),
"earthkit-plots": (
"earthkit-plots",
"https://pypi.org/project/earthkit-plots",
),
"eccodes": (
"ecCodes",
"https://confluence.ecmwf.int/display/ECC/ecCodes+Home",
Expand Down
3 changes: 2 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Welcome to earthkit's documentation

The interface of :ref:`earthkit components <components>` is designed to be high-level in order to provide common tools to support activities across ECMWF and beyond. The design of the components also takes **scalability** into account, so researchers can enjoy efficiency whilst providing easier transfer to operations.

**earthkit** is still under development, but three components, :xref:`earthkit-data`, :xref:`earthkit-maps` and :xref:`earthkit-meteo` are now available in beta through PyPI and their GitHub repositories.
**earthkit** is still under development, but 4 components, :xref:`earthkit-data`, :xref:`earthkit-maps` , :xref:`earthkit-meteo` and :xref:`earthkit-plots` and are now available in beta through PyPI and their GitHub repositories.

.. .. toctree::
.. :maxdepth: 1
Expand All @@ -29,6 +29,7 @@ The interface of :ref:`earthkit components <components>` is designed to be high-
earthkit-data <https://earthkit-data.readthedocs.io>
earthkit-maps <https://earthkit-maps.readthedocs.io>
earthkit-meteo <https://earthkit-meteo.readthedocs.io>
earthkit-plots <https://earthkit-plots.readthedocs.io>

.. toctree::
:maxdepth: 1
Expand Down
5 changes: 3 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ channels:
- conda-forge
- nodefaults
dependencies:
- earthkit-data
- earthkit-data>=0.5.1
- geos
- pip:
- earthkit-maps
- earthkit-maps>=0.0.13
- earthkit-meteo>=0.0.1
- earthkit-plots>=0.0.6
5 changes: 3 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ test_suite = tests
python-requires = >=3.8
packages = find_namespace:
install_requires =
earthkit-data
earthkit-maps
earthkit-data>=0.5.1
earthkit-maps>=0.0.13
earthkit-meteo>=0.0.1
earthkit-plots>=0.0.6

[options.packages.find]
include = earthkit, earthkit.*
Expand Down
5 changes: 3 additions & 2 deletions tests/environment-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ channels:
- conda-forge
- nodefaults
dependencies:
- earthkit-data
- pip
- pytest
- pytest-cov
- geos
- pip:
- earthkit-maps
- earthkit-data>=0.5.1
- earthkit-maps>=0.0.13
- earthkit-meteo>=0.0.1
- earthkit-plots>=0.0.6
20 changes: 19 additions & 1 deletion tests/test_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,18 @@ def test_earthkit_data_version_2():
assert VERSION_RX.match(data.__version__) is not None


def test_earthkit_maps_version():
def test_earthkit_maps_version_1():
import earthkit.maps # noqa

assert VERSION_RX.match(earthkit.maps.__version__) is not None


def test_earthkit_maps_version_2():
from earthkit import maps # noqa

assert VERSION_RX.match(maps.__version__) is not None


def test_earthkit_meteo_version_1():
import earthkit.meteo # noqa

Expand All @@ -49,3 +55,15 @@ def test_earthkit_meteo_version_2():
from earthkit import meteo # noqa

assert VERSION_RX.match(meteo.__version__) is not None


def test_earthkit_plots_version_1():
import earthkit.plots # noqa

assert VERSION_RX.match(earthkit.plots.__version__) is not None


def test_earthkit_plots_version_2():
from earthkit import plots # noqa

assert VERSION_RX.match(plots.__version__) is not None

0 comments on commit 52f200e

Please sign in to comment.