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

Bump version in pyproject.toml to 0.1.3 #8

Merged
merged 2 commits into from
Aug 29, 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
2 changes: 1 addition & 1 deletion geo_extensions/transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def to_polygons(obj: Geometry) -> TransformationResult:
yield obj
return

raise Exception(f"WKT: '{obj}' is not a Polygon or MultiPolygon")
raise Exception(f"'{obj}' is not a Polygon or MultiPolygon")


def _apply_transformations(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "geo-extensions"
version = "0.1.2"
version = "0.1.3"
description = ""
authors = ["Rohan Weeden <reweeden@alaska.edu>"]
license = "APACHE-2"
Expand Down
6 changes: 3 additions & 3 deletions tests/test_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def test_from_geo_json_multipolygon(simplify_transformer):
def test_from_wkt_bad_points(simplify_transformer):
with pytest.raises(
Exception,
match=r"WKT: 'POINT \(30 10\)' is not a Polygon or MultiPolygon",
match=r"'POINT \(30 10\)' is not a Polygon or MultiPolygon",
):
simplify_transformer.from_wkt("POINT (30 10)")

Expand All @@ -195,8 +195,8 @@ def test_from_wkt_bad_points(simplify_transformer):

def test_from_geo_json_bad_points(simplify_transformer):
with pytest.raises(
Exception,
match=r"WKT: 'POINT \(30 10\)' is not a Polygon or MultiPolygon",
Exception,
match=r"'POINT \(30 10\)' is not a Polygon or MultiPolygon",
):
simplify_transformer.from_geo_json({
"type": "Point",
Expand Down
Loading