Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename due to conflicting pypi package #2

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ _commit: v0.1.0-8-ga0c8676
_src_path: gh:alan-turing-institute/python-project-template
coc: our_coc
email: [email protected]
full_name: Cloudcast Maintainers
full_name: cloudcasting Maintainers
license: MIT
min_python_version: '3.10'
org: climetrend
project_name: cloudcast
project_name: cloudcasting
project_short_description: Tooling and infrastructure to enable cloud nowcasting.
python_name: cloudcast
python_name: cloudcasting
typing: strict
url: https://github.com/climetrend/cloudcast
url: https://github.com/climetrend/cloudcasting
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

We value the participation of every member of our community and want to ensure
that every contributor has an enjoyable and fulfilling experience. Accordingly,
everyone who participates in the cloudcast project is expected to show respect and courtesy to other community members at all time.
everyone who participates in the cloudcasting project is expected to show respect and courtesy to other community members at all time.

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers are dedicated to making participation in our project
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pytest
Use pytest-cov to generate coverage reports:

```bash
pytest --cov=cloudcast
pytest --cov=cloudcasting
```

# Pre-commit
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2024 Cloudcast Maintainers
Copyright 2024 cloudcasting Maintainers

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# cloudcast
# cloudcasting

[![Actions Status][actions-badge]][actions-link]
[![PyPI version][pypi-version]][pypi-link]
Expand All @@ -10,8 +10,8 @@ Tooling and infrastructure to enable cloud nowcasting.

From source (development mode):
```bash
git clone https://github.com/climetrend/cloudcast
cd cloudcast
git clone https://github.com/climetrend/cloudcasting
cd cloudcasting
python -m pip install ".[dev]"
```

Expand All @@ -25,9 +25,9 @@ For making changes, see the [guidance on development](https://github.com/alan-tu

## Usage
```bash
cloudcast download --help
cloudcasting download --help

Usage: cloudcast download [OPTIONS] START_DATE END_DATE OUTPUT_DIRECTORY
Usage: cloudcasting download [OPTIONS] START_DATE END_DATE OUTPUT_DIRECTORY

Download a selection of the available EUMETSAT data.
Each calendar year of data within the supplied date range will be saved to a
Expand Down Expand Up @@ -87,7 +87,7 @@ For making changes, see the [guidance on development](https://github.com/alan-tu
Example:

```bash
cloudcast download "2020-06-01 00:00" "2020-06-30 23:55" "path/to/my/dir/data.zarr"
cloudcasting download "2020-06-01 00:00" "2020-06-30 23:55" "path/to/my/dir/data.zarr"
```


Expand All @@ -101,9 +101,9 @@ Distributed under the terms of the [MIT license](LICENSE).


<!-- prettier-ignore-start -->
[actions-badge]: https://github.com/climetrend/cloudcast/workflows/CI/badge.svg
[actions-link]: https://github.com/climetrend/cloudcast/actions
[pypi-link]: https://pypi.org/project/cloudcast/
[pypi-platforms]: https://img.shields.io/pypi/pyversions/cloudcast
[pypi-version]: https://img.shields.io/pypi/v/cloudcast
[actions-badge]: https://github.com/climetrend/cloudcasting/workflows/CI/badge.svg
[actions-link]: https://github.com/climetrend/cloudcasting/actions
[pypi-link]: https://pypi.org/project/cloudcasting/
[pypi-platforms]: https://img.shields.io/pypi/pyversions/cloudcasting
[pypi-version]: https://img.shields.io/pypi/v/cloudcasting
<!-- prettier-ignore-end -->
22 changes: 11 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ build-backend = "setuptools.build_meta"


[project]
name = "cloudcast"
name = "cloudcasting"
version = "0.1.0"
authors = [
{ name = "Cloudcast Maintainers", email = "[email protected]" },
{ name = "cloudcasting Maintainers", email = "[email protected]" },
]
description = "Tooling and infrastructure to enable cloud nowcasting."
readme = "README.md"
Expand Down Expand Up @@ -46,13 +46,13 @@ dev = [
]

[project.scripts]
cloudcast = "cloudcast.cli:app"
cloudcasting = "cloudcasting.cli:app"

[project.urls]
Homepage = "https://github.com/climetrend/cloudcast"
"Bug Tracker" = "https://github.com/climetrend/cloudcast/issues"
Discussions = "https://github.com/climetrend/cloudcast/discussions"
Changelog = "https://github.com/climetrend/cloudcast/releases"
Homepage = "https://github.com/climetrend/cloudcasting"
"Bug Tracker" = "https://github.com/climetrend/cloudcasting/issues"
Discussions = "https://github.com/climetrend/cloudcasting/discussions"
Changelog = "https://github.com/climetrend/cloudcasting/releases"

[tool.pytest.ini_options]
minversion = "6.0"
Expand All @@ -67,7 +67,7 @@ testpaths = [
]

[tool.coverage]
run.source = ["cloudcast"]
run.source = ["cloudcasting"]
port.exclude_lines = [
'pragma: no cover',
'\.\.\.',
Expand All @@ -86,7 +86,7 @@ strict = true
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]

[[tool.mypy.overrides]]
module = "cloudcast.*"
module = "cloudcasting.*"
disallow_untyped_defs = true
disallow_incomplete_defs = true

Expand All @@ -98,8 +98,8 @@ ignore_missing_imports = true

[[tool.mypy.overrides]]
module = [
"cloudcast.download",
"cloudcast.cli",
"cloudcasting.download",
"cloudcasting.cli",
]
disallow_untyped_calls = false

Expand Down
3 changes: 0 additions & 3 deletions src/cloudcast/__main__.py

This file was deleted.

4 changes: 2 additions & 2 deletions src/cloudcast/__init__.py → src/cloudcasting/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""
cloudcast: Tooling and infrastructure to enable cloud nowcasting.
cloudcasting: Tooling and infrastructure to enable cloud nowcasting.
"""

from __future__ import annotations

from importlib.metadata import version

from cloudcast import cli, download
from cloudcasting import cli, download

__all__ = ("__version__", "download", "cli")
__version__ = version(__name__)
3 changes: 3 additions & 0 deletions src/cloudcasting/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from cloudcasting.cli import app

app()
2 changes: 1 addition & 1 deletion src/cloudcast/cli.py → src/cloudcasting/cli.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import typer

from cloudcast.download import download_satellite_data
from cloudcasting.download import download_satellite_data

# typer app code
app = typer.Typer()
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pytest
from typer.testing import CliRunner

from cloudcast.cli import app
from cloudcasting.cli import app


@pytest.fixture()
Expand Down
Loading