Skip to content

Commit 468fd27

Browse files
committed
Rename package to cratedb-toolkit
1 parent 47ad039 commit 468fd27

File tree

8 files changed

+36
-22
lines changed

8 files changed

+36
-22
lines changed

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Changes for cratedb-retention
1+
# Changes for cratedb-toolkit
22

33
## Unreleased
44

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# CrateDB data processing toolkit
22

3-
[![Tests](https://github.com/crate-workbench/cratedb-retention/actions/workflows/main.yml/badge.svg)](https://github.com/crate-workbench/cratedb-retention/actions/workflows/main.yml)
4-
[![Test coverage](https://img.shields.io/codecov/c/gh/crate-workbench/cratedb-retention.svg)](https://codecov.io/gh/crate-workbench/cratedb-retention/)
3+
[![Tests](https://github.com/crate-workbench/cratedb-toolkit/actions/workflows/main.yml/badge.svg)](https://github.com/crate-workbench/cratedb-toolkit/actions/workflows/main.yml)
4+
[![Test coverage](https://img.shields.io/codecov/c/gh/crate-workbench/cratedb-toolkit.svg)](https://codecov.io/gh/crate-workbench/cratedb-toolkit/)
55

66
» [Documentation]
77
| [Changelog]
@@ -33,17 +33,17 @@ strongly recommended, especially when you use it as a library.
3333

3434
Install package.
3535
```shell
36-
pip install --upgrade git+https://github.com/crate-workbench/cratedb-retention
36+
pip install --upgrade git+https://github.com/crate-workbench/cratedb-toolkit
3737
```
3838

3939
Verify installation.
4040
```shell
41-
cratedb-retention --version
41+
cratedb-toolkit --version
4242
```
4343

4444
Run with Docker.
4545
```shell
46-
docker run --rm "ghcr.io/crate-workbench/cratedb-retention" cratedb-retention --version
46+
docker run --rm "ghcr.io/crate-workbench/cratedb-toolkit" cratedb-toolkit --version
4747
```
4848

4949

@@ -53,12 +53,12 @@ For installing a development sandbox, please refer to the [development sandbox
5353
documentation](./doc/sandbox.md).
5454

5555

56-
[Changelog]: https://github.com/crate-workbench/cratedb-retention/blob/main/CHANGES.md
56+
[Changelog]: https://github.com/crate-workbench/cratedb-toolkit/blob/main/CHANGES.md
5757
[Community Forum]: https://community.crate.io/
5858
[CrateDB]: https://crate.io/products/cratedb
5959
[CrateDB Cloud]: https://console.cratedb.cloud/
60-
[Documentation]: https://cratedb-retention.readthedocs.io/
61-
[Issues]: https://github.com/crate-workbench/cratedb-retention/issues
62-
[License]: https://github.com/crate-workbench/cratedb-retention/blob/main/LICENSE
63-
[PyPI]: https://pypi.org/project/cratedb-retention/
64-
[Source code]: https://github.com/crate-workbench/cratedb-retention
60+
[Documentation]: https://cratedb-toolkit.readthedocs.io/
61+
[Issues]: https://github.com/crate-workbench/cratedb-toolkit/issues
62+
[License]: https://github.com/crate-workbench/cratedb-toolkit/blob/main/LICENSE
63+
[PyPI]: https://pypi.org/project/cratedb-toolkit/
64+
[Source code]: https://github.com/crate-workbench/cratedb-toolkit

cratedb_toolkit/cli.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import click
2+
from click_aliases import ClickAliasedGroup
3+
4+
from cratedb_toolkit.util.cli import boot_click
5+
6+
7+
@click.group(cls=ClickAliasedGroup) # type: ignore[arg-type]
8+
@click.option("--verbose", is_flag=True, required=False, help="Turn on logging")
9+
@click.option("--debug", is_flag=True, required=False, help="Turn on logging with debug level")
10+
@click.version_option()
11+
@click.pass_context
12+
def cli(ctx: click.Context, verbose: bool, debug: bool):
13+
return boot_click(ctx, verbose, debug)

doc/sandbox.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ source .venv/bin/activate
1212

1313
Acquire sources.
1414
```shell
15-
git clone https://github.com/crate-workbench/cratedb-retention
16-
cd cratedb-retention
15+
git clone https://github.com/crate-workbench/cratedb-toolkit
16+
cd cratedb-toolkit
1717
```
1818

1919
Install project in sandbox mode.

examples/retention_edit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
::
1919
2020
# Install package
21-
pip install cratedb-retention
21+
pip install cratedb-toolkit
2222
2323
# General.
2424
python examples/retention_edit.py crate://<USERNAME>:<PASSWORD>@<HOSTNAME>:4200?ssl=true

examples/retention_retire_cutoff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
::
2525
2626
# Install package
27-
pip install cratedb-retention
27+
pip install cratedb-toolkit
2828
2929
# General.
3030
python examples/retention_retire_cutoff.py crate://<USERNAME>:<PASSWORD>@<HOSTNAME>:4200?ssl=true

pyproject.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,12 @@ test = [
114114
"testcontainers-minio==0.0.1rc1",
115115
]
116116
[project.urls]
117-
changelog = "https://github.com/crate-workbench/cratedb-retention/blob/main/CHANGES.rst"
118-
documentation = "https://github.com/crate-workbench/cratedb-retention"
119-
homepage = "https://github.com/crate-workbench/cratedb-retention"
120-
repository = "https://github.com/crate-workbench/cratedb-retention"
117+
changelog = "https://github.com/crate-workbench/cratedb-toolkit/blob/main/CHANGES.rst"
118+
documentation = "https://github.com/crate-workbench/cratedb-toolkit"
119+
homepage = "https://github.com/crate-workbench/cratedb-toolkit"
120+
repository = "https://github.com/crate-workbench/cratedb-toolkit"
121121
[project.scripts]
122+
cratedb-toolkit = "cratedb_toolkit.cli:cli"
122123
cratedb-retention = "cratedb_toolkit.retention.cli:cli"
123124

124125
[tool.black]

release/oci/selftest.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ set -e
88

99
flavor=$1
1010

11-
echo "Invoking cratedb-retention"
12-
cratedb-retention --version
11+
echo "Invoking cratedb-toolkit"
12+
cratedb-toolkit --version

0 commit comments

Comments
 (0)