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

Version minor #6

Merged
merged 2 commits into from
Oct 27, 2023
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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# 0.1.0

- Drop python 3.7 (was good knowing you)
- Update pyo3 to 0.20.0
- Added rasterio/rio entry points ('utiles' and 'ut' alias bc why type `rio utiles` over `rio ut`)


# 0.0.2

- Added `__len__` to TilesGenerator for pbars
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pyutiles"
version = "0.0.2"
version = "0.1.0"
edition = "2021"
include = ["src/**/*", "Cargo.toml", "LICENSE", "README.md"]
license = "MIT OR Apache-2.0"
Expand Down
1 change: 1 addition & 0 deletions bench/test_eq.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def test_tile_equality_tuple2tile(benchmark: BenchmarkFixture) -> None:
tile_obj = utiles.from_tuple(t)
benchmark(_equal, t, tile_obj)


def test_tile_equality_tile2tuple(benchmark: BenchmarkFixture) -> None:
t = (1, 2, 3)
tile_obj = utiles.from_tuple(t)
Expand Down
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "maturin"

[project]
name = "utiles"
version = "0.0.2"
version = "0.1.0"
description = "utiles = (utils + tiles) * rust"
requires-python = ">=3.8"
classifiers = [
Expand All @@ -21,6 +21,10 @@ dependencies = [
[project.scripts]
utiles = "utiles.cli:cli"

[project.entry-points."rasterio.rio_plugins"]
utiles = "utiles.rio_plugin:rio_utiles"
ut = "utiles.rio_plugin:rio_ut"

[tool.maturin]
python-source = "python"
features = ["pyo3/extension-module"]
Expand Down
4 changes: 3 additions & 1 deletion python/utiles/__about__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
"""Package metadata/info"""

from utiles.libutiles import __version_lib__

__all__ = ("__title__", "__description__", "__pkgroot__", "__version__")
__title__ = "utiles"
__description__ = "utiles = utils + tiles + rust"
__pkgroot__ = __file__.replace("__about__.py", "").rstrip("/\\")
__version__ = "0.0.2"
__version__ = __version_lib__
2 changes: 1 addition & 1 deletion python/utiles/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def iter_lines(lines: List[str]) -> Iterable[str]:


# The CLI command group.
@click.group(help="Command line interface for the utiles Python package.")
@click.group(name="utiles", help="utiles cli (python)")
@click.option("--verbose", "-v", count=True, help="Increase verbosity.")
@click.option("--quiet", "-q", count=True, help="Decrease verbosity.")
@click.version_option(version=utiles.__version__, message="%(version)s")
Expand Down
8 changes: 8 additions & 0 deletions python/utiles/rio_plugin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import click
from utiles.cli import cli as rio_utiles

__all__ = ("rio_ut", "rio_utiles")

rio_ut = click.CommandCollection(
sources=[rio_utiles], name="ut", help="utiles cli (alias)"
)