Skip to content

Commit 2b10f86

Browse files
kraina-cicdRaczeQ
andauthored
chore(CI/CD): bump version 0.13.0 -> 0.14.0 (#208)
* chore(CI/CD): bump version 0.13.0 -> 0.14.0 * docs: update CHANGELOG.md * ci: change tests to use pooch instead of urllib * chore: change changelog entry * fix: change zip file removal * fix: change file id --------- Co-authored-by: Kamil Raczycki <raczyckikamil@gmail.com>
1 parent 7383cc3 commit 2b10f86

File tree

6 files changed

+34
-20
lines changed

6 files changed

+34
-20
lines changed

.github/workflows/_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
uses: playeveryware/action-google-drive-download@v1
3232
with:
3333
token: ${{ steps.google-access-token.outputs.token }}
34-
file-id: 15GXgjaJUINYDTRsCrDZi9XiE3d9Zck7w
34+
file-id: 1Z6SuEcrWMqwiQLmBGMucFtRmu0zS2rxn
3535
path: test_files.zip
3636
- name: Extract zip files
3737
uses: ihiroky/extract-action@v1
@@ -45,7 +45,7 @@ jobs:
4545
from pathlib import Path
4646
src_dir = "QuackOSM test files"
4747
trg_dir = Path.cwd()
48-
for directory in ("files", "tests"):
48+
for directory in ("files", "tests", "cache"):
4949
src_path = Path(src_dir).joinpath(directory)
5050
for each_file in src_path.rglob('*.*'):
5151
trg_path = Path.cwd().joinpath(each_file.relative_to(src_dir))

.github/workflows/manual_tests.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
uses: playeveryware/action-google-drive-download@v1
3838
with:
3939
token: ${{ steps.google-access-token.outputs.token }}
40-
file-id: 15GXgjaJUINYDTRsCrDZi9XiE3d9Zck7w
40+
file-id: 1Z6SuEcrWMqwiQLmBGMucFtRmu0zS2rxn
4141
path: test_files.zip
4242
- name: Extract zip files
4343
uses: ihiroky/extract-action@v1
@@ -51,7 +51,7 @@ jobs:
5151
from pathlib import Path
5252
src_dir = "QuackOSM test files"
5353
trg_dir = Path.cwd()
54-
for directory in ("files", "tests"):
54+
for directory in ("files", "tests", "cache"):
5555
src_path = Path(src_dir).joinpath(directory)
5656
for each_file in src_path.rglob('*.*'):
5757
trg_path = Path.cwd().joinpath(each_file.relative_to(src_dir))
@@ -103,29 +103,28 @@ jobs:
103103
uses: playeveryware/action-google-drive-download@v1
104104
with:
105105
token: ${{ steps.google-access-token.outputs.token }}
106-
file-id: 15GXgjaJUINYDTRsCrDZi9XiE3d9Zck7w
106+
file-id: 1Z6SuEcrWMqwiQLmBGMucFtRmu0zS2rxn
107107
path: test_files.zip
108108
- name: Extract zip files
109109
uses: ihiroky/extract-action@v1
110110
with:
111111
file_path: test_files.zip
112112
extract_dir: '.'
113113
- uses: jannekem/run-python-script-action@v1
114-
name: Move files
114+
name: Move files and remove zip
115115
with:
116116
script: |
117117
from pathlib import Path
118118
src_dir = "QuackOSM test files"
119119
trg_dir = Path.cwd()
120-
for directory in ("files", "tests"):
120+
for directory in ("files", "tests", "cache"):
121121
src_path = Path(src_dir).joinpath(directory)
122122
for each_file in src_path.rglob('*.*'):
123123
trg_path = Path.cwd().joinpath(each_file.relative_to(src_dir))
124124
print("Moving file", each_file, trg_path)
125125
trg_path.parent.mkdir(exist_ok=True, parents=True)
126126
each_file.rename(trg_path)
127-
- name: Remove zip file
128-
run: rm -rf test_files.zip
127+
Path('test_files.zip').unlink()
129128
- name: Setup Python ${{ matrix.python-version }}
130129
uses: actions/setup-python@v4
131130
with:

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.14.0] - 2025-05-17
11+
1012
### Added
1113

1214
- Option to sort result files by geometry to reduce file size
@@ -22,7 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2224
- Refactored internal logic by exporting it to external `rq_geo_toolkit` library
2325
- Changed multiple files merging logic
2426

25-
### Fix
27+
### Fixed
2628

2729
- Replace geo metadata in final geoparquet with proper bounding box size and geometry types
2830
- Changed polars LazyFrame execution for newer versions
@@ -460,7 +462,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
460462
- Created QuackOSM repository
461463
- Implemented PbfFileReader
462464

463-
[Unreleased]: https://github.com/kraina-ai/quackosm/compare/0.13.0...HEAD
465+
[Unreleased]: https://github.com/kraina-ai/quackosm/compare/0.14.0...HEAD
466+
467+
[0.14.0]: https://github.com/kraina-ai/quackosm/compare/0.13.0...0.14.0
464468

465469
[0.13.0]: https://github.com/kraina-ai/quackosm/compare/0.12.1...0.13.0
466470

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "QuackOSM"
3-
version = "0.13.0"
3+
version = "0.14.0"
44
description = "An open-source tool for reading OpenStreetMap PBF files using DuckDB"
55
authors = [{ name = "Kamil Raczycki", email = "kraczycki@kraina.ai" }]
66
dependencies = [
@@ -174,7 +174,7 @@ close-quotes-on-newline = true
174174
wrap-one-line = true
175175

176176
[tool.bumpver]
177-
current_version = "0.13.0"
177+
current_version = "0.14.0"
178178
version_pattern = "MAJOR.MINOR.PATCH[PYTAGNUM]"
179179
commit_message = "chore(CI/CD): bump version {old_version} -> {new_version}"
180180
commit = true

quackosm/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from quackosm.pbf_file_reader import PbfFileReader
2222

2323
__app_name__ = "QuackOSM"
24-
__version__ = "0.13.0"
24+
__version__ = "0.14.0"
2525

2626
__all__ = [
2727
"PbfFileReader",

tests/base/test_pbf_file_reader.py

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import json
44
import random
5-
import urllib.request
65
import warnings
76
from functools import partial
87
from itertools import permutations
@@ -18,6 +17,7 @@
1817
import pyarrow.parquet as pq
1918
import pytest
2019
from parametrization import Parametrization as P
20+
from pooch import retrieve
2121
from pytest_mock import MockerFixture
2222
from shapely import from_wkt, get_coordinates, hausdorff_distance
2323
from shapely.geometry import (
@@ -791,14 +791,25 @@ def test_gdal_parity(extract_name: str) -> None:
791791
Test downloads prepared pbf files and parsed geoparquet using GDAL from kraina-ai/srai-test-
792792
files repository.
793793
"""
794-
pbf_file_download_url = LFS_DIRECTORY_URL + f"{extract_name}-latest.osm.pbf"
795794
files_directory = Path(__file__).parent.parent / "files"
796795
files_directory.mkdir(exist_ok=True, parents=True)
797-
pbf_file_path = files_directory / f"{extract_name}.osm.pbf"
798-
urllib.request.urlretrieve(pbf_file_download_url, pbf_file_path)
796+
797+
pbf_file_download_url = LFS_DIRECTORY_URL + f"{extract_name}-latest.osm.pbf"
798+
pbf_file_path = retrieve(
799+
pbf_file_download_url,
800+
fname=f"{extract_name}.osm.pbf",
801+
path=files_directory,
802+
progressbar=False,
803+
known_hash=None,
804+
)
799805
gpq_file_download_url = LFS_DIRECTORY_URL + f"{extract_name}-latest.geoparquet"
800-
gpq_file_path = files_directory / f"{extract_name}.parquet"
801-
urllib.request.urlretrieve(gpq_file_download_url, gpq_file_path)
806+
gpq_file_path = retrieve(
807+
gpq_file_download_url,
808+
fname=f"{extract_name}.parquet",
809+
path=files_directory,
810+
progressbar=False,
811+
known_hash=None,
812+
)
802813

803814
reader = PbfFileReader()
804815
duckdb_gdf = reader.convert_pbf_to_geodataframe(

0 commit comments

Comments
 (0)