Skip to content

Commit 7bfa186

Browse files
committed
chore: configure uv
1 parent 5171e63 commit 7bfa186

5 files changed

Lines changed: 613 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
runs-on: ubuntu-latest
2121
container:
2222
image: python:3.12-bookworm
23+
env:
24+
UV_LINK_MODE: copy
2325
permissions:
2426
contents: write
2527

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
runs-on: ubuntu-latest
1414
container:
1515
image: python:3.12-bookworm
16+
env:
17+
UV_LINK_MODE: copy
1618
permissions:
1719
contents: read
1820
checks: write
@@ -40,7 +42,7 @@ jobs:
4042

4143
- name: Install Python dependencies and build package
4244
run: |
43-
uv sync --frozen --verbose || uv sync --verbose
45+
uv sync --extra test --frozen --verbose || uv sync --extra test --verbose
4446
4547
- name: Run tests with coverage
4648
run: |

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ maintainers = [
2424

2525
requires-python = ">= 3.8"
2626

27+
[project.optional-dependencies]
28+
test = [
29+
"pytest >= 8.0",
30+
"pytest-cov >= 5.0",
31+
]
32+
2733
[project.urls]
2834
Homepage = "https://mapnik.org"
2935
Documentation = "https://github.com/mapnik/python-mapnik/wiki"

src/mapnik_map.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ void export_map(py::module const& m)
295295
"<mapnik._mapnik.Featureset object at 0x23b0b0>\n"
296296
">>> featureset.features\n"
297297
">>> [<mapnik.Feature object at 0x3995630>]\n",
298-
py::arg("layer idx"), py::arg("x"), py::arg("y")
298+
py::arg("layer_idx"), py::arg("x"), py::arg("y")
299299
)
300300

301301
.def("remove_all", &Map::remove_all,

0 commit comments

Comments
 (0)