From 8380b9424303c4dff762390334d026442cd8721f Mon Sep 17 00:00:00 2001 From: Steffen Albrecht Date: Thu, 30 May 2024 18:47:22 +0200 Subject: [PATCH] rename project in files --- README.md | 6 +++--- pyDWD/__init__.py | 2 +- pyDWD/cli.py | 4 ++-- pyproject.toml | 8 ++++---- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index d292dc9..7d45d4c 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -# pyDWD: a minimal python interface to load and read GRIB data from the german weather services (DWD) +# dwd4cast: a minimal python interface to load and read GRIB weather forecast data from the german weather services (DWD) ## Installation -Installing `pyDWD`from pypi (e.g. with `pip`): +Installing `dwd4cast`from pypi (e.g. with `pip`): ```bash -pip install pyDWD +pip install dwd4cast ``` ### Install binary dependencies diff --git a/pyDWD/__init__.py b/pyDWD/__init__.py index c10547c..5e20f01 100644 --- a/pyDWD/__init__.py +++ b/pyDWD/__init__.py @@ -1,2 +1,2 @@ import importlib.metadata -__version__ = importlib.metadata.version('pyDWD') +__version__ = importlib.metadata.version('dwd4cast') diff --git a/pyDWD/cli.py b/pyDWD/cli.py index df60adc..71d604d 100644 --- a/pyDWD/cli.py +++ b/pyDWD/cli.py @@ -2,13 +2,13 @@ def cli(): - parser = argparse.ArgumentParser(description='Download and read weather data from DWD') + parser = argparse.ArgumentParser(description='Download and read weather forecast data from DWD') parser.add_argument("--lat", type=float, nargs="+", help="Latitude of the location(s)") parser.add_argument("--lon", type=float, nargs="+", help="Longitude of the location(s)") args = parser.parse_args() print("=== ===\t=== ===\t=== ===") - print("=== ===\tpyDWD\t=== ===") + print("=== ===\tDWD4Cast\t=== ===") print("=== ===\t=== ===\t=== ===") print(f"Latitude: {args.lat}") print(f"Longitude: {args.lon}") diff --git a/pyproject.toml b/pyproject.toml index bcad1e8..6a79ef5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,12 +3,12 @@ requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" [tool.poetry] -name = "pyDWD" +name = "dwd4cast" version = "0.1.0" description = "python interface to collect and read GRIB files from the DWD" authors = ["Albrecht, Steffen "] license = "MIT" -repository = "https://github.com/stalbrec/pyDWD" +repository = "https://github.com/stalbrec/dwd4cast" readme = "README.md" classifiers = [ "Development Status :: 3 - Alpha", @@ -25,7 +25,7 @@ classifiers = [ "Topic :: Utilities", ] packages = [ - { include = "pyDWD"}, + { include = "dwd4cast"}, ] [tool.poetry.dependencies] @@ -38,7 +38,7 @@ fastapi = "^0.111.0" uvicorn = "^0.30.0" [tool.poetry.scripts] -pydwd = "pyDWD.cli:cli" +dwd4cast = "dwd4cast.cli:cli" [tool.ruff] target-version = "py311"