diff --git a/docs/components_overview.rst b/docs/components_overview.rst index 84468aa..2774803 100644 --- a/docs/components_overview.rst +++ b/docs/components_overview.rst @@ -23,3 +23,6 @@ This is the summary of the available ``earthkit`` components. * - :xref:`earthkit-meteo` - Meteorological computations. - + * - :xref:`earthkit-plots` + - Graph chart visualisation + - diff --git a/docs/conf.py b/docs/conf.py index 661beee..ef76b7c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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", diff --git a/docs/index.rst b/docs/index.rst index c0f1577..ea21e9f 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -11,7 +11,7 @@ Welcome to earthkit's documentation The interface of :ref:`earthkit 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 @@ -29,6 +29,7 @@ The interface of :ref:`earthkit components ` is designed to be high- earthkit-data earthkit-maps earthkit-meteo + earthkit-plots .. toctree:: :maxdepth: 1 diff --git a/environment.yml b/environment.yml index 7f1fabe..08c9b77 100644 --- a/environment.yml +++ b/environment.yml @@ -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 diff --git a/setup.cfg b/setup.cfg index f311334..eef8fb1 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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.* diff --git a/tests/environment-unit-tests.yml b/tests/environment-unit-tests.yml index 688aebc..77560fa 100644 --- a/tests/environment-unit-tests.yml +++ b/tests/environment-unit-tests.yml @@ -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 diff --git a/tests/test_version.py b/tests/test_version.py index 3ee75af..39baef6 100644 --- a/tests/test_version.py +++ b/tests/test_version.py @@ -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 @@ -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