Skip to content

Commit

Permalink
python docs ci fix (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron authored Jan 2, 2024
1 parent 2fba3fb commit 383a16f
Show file tree
Hide file tree
Showing 14 changed files with 242 additions and 200 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/python-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ jobs:
with:
fetch-depth: 0

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- uses: Swatinem/rust-cache@v2

- name: Set up Python 3.11
id: setup-python
uses: actions/setup-python@v4
Expand All @@ -45,6 +50,10 @@ jobs:
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root

- name: Build python package
run: |
poetry run maturin build
- name: Install root project
run: poetry install --no-interaction

Expand All @@ -63,6 +72,6 @@ jobs:
# Only push docs if no letters in git tag after the first character
# (usually the git tag will have v as the first character)
if ! echo $VERSION | cut -c 1- | grep -q "[A-Za-z]"; then
if echo $VERSION | cut -c 1- | grep -q "[A-Za-z]"; then
poetry run mike deploy $VERSION latest --update-aliases --push
fi
4 changes: 3 additions & 1 deletion python/core/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# `geoarrow.rust.core`: Python bindings to `geoarrow-rs`
# `geoarrow.rust.core`

Python bindings to `geoarrow-rs`

## Overview

Expand Down
11 changes: 11 additions & 0 deletions python/core/docs/api/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,15 @@
- signed_area
- center
- centroid
- chaikin_smoothing
- chamberlain_duquette_unsigned_area
- chamberlain_duquette_signed_area
- convex_hull
- densify
- envelope
- is_empty
- geodesic_area_signed
- geodesic_area_unsigned
- geodesic_perimeter
- simplify
- simplify_vw
3 changes: 0 additions & 3 deletions python/core/docs/api/index.md

This file was deleted.

20 changes: 4 additions & 16 deletions python/core/docs/api/primitive/array.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ Arrays of non-geospatial types. These exist to be used as _return_ types from
geospatial operations to maintain strong typing.

- [`BooleanArray`](#geoarrow.rust.core.BooleanArray)
- [`Float16Array`](#geoarrow.rust.core.Float16Array)
- [`Float32Array`](#geoarrow.rust.core.Float32Array)
<!-- - [`Float16Array`](#geoarrow.rust.core.Float16Array)
- [`Float32Array`](#geoarrow.rust.core.Float32Array) -->
- [`Float64Array`](#geoarrow.rust.core.Float64Array)
- [`UInt8Array`](#geoarrow.rust.core.UInt8Array)
<!-- - [`UInt8Array`](#geoarrow.rust.core.UInt8Array)
- [`UInt16Array`](#geoarrow.rust.core.UInt16Array)
- [`UInt32Array`](#geoarrow.rust.core.UInt32Array)
- [`UInt64Array`](#geoarrow.rust.core.UInt64Array)
Expand All @@ -16,7 +16,7 @@ geospatial operations to maintain strong typing.
- [`Int32Array`](#geoarrow.rust.core.Int32Array)
- [`Int64Array`](#geoarrow.rust.core.Int64Array)
- [`StringArray`](#geoarrow.rust.core.StringArray)
- [`LargeStringArray`](#geoarrow.rust.core.LargeStringArray)
- [`LargeStringArray`](#geoarrow.rust.core.LargeStringArray) -->

::: geoarrow.rust.core
options:
Expand All @@ -25,16 +25,4 @@ geospatial operations to maintain strong typing.
- "^__arrow"
members:
- BooleanArray
- Float16Array
- Float32Array
- Float64Array
- UInt8Array
- UInt16Array
- UInt32Array
- UInt64Array
- Int8Array
- Int16Array
- Int32Array
- Int64Array
- StringArray
- LargeStringArray
20 changes: 4 additions & 16 deletions python/core/docs/api/primitive/chunked.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ Chunked arrays of non-geospatial types. These exist to be used as _return_ types
from geospatial operations to maintain strong typing.

- [`ChunkedBooleanArray`](#geoarrow.rust.core.ChunkedBooleanArray)
- [`ChunkedFloat16Array`](#geoarrow.rust.core.ChunkedFloat16Array)
- [`ChunkedFloat32Array`](#geoarrow.rust.core.ChunkedFloat32Array)
<!-- - [`ChunkedFloat16Array`](#geoarrow.rust.core.ChunkedFloat16Array)
- [`ChunkedFloat32Array`](#geoarrow.rust.core.ChunkedFloat32Array) -->
- [`ChunkedFloat64Array`](#geoarrow.rust.core.ChunkedFloat64Array)
- [`ChunkedUInt8Array`](#geoarrow.rust.core.ChunkedUInt8Array)
<!-- - [`ChunkedUInt8Array`](#geoarrow.rust.core.ChunkedUInt8Array)
- [`ChunkedUInt16Array`](#geoarrow.rust.core.ChunkedUInt16Array)
- [`ChunkedUInt32Array`](#geoarrow.rust.core.ChunkedUInt32Array)
- [`ChunkedUInt64Array`](#geoarrow.rust.core.ChunkedUInt64Array)
Expand All @@ -16,7 +16,7 @@ from geospatial operations to maintain strong typing.
- [`ChunkedInt32Array`](#geoarrow.rust.core.ChunkedInt32Array)
- [`ChunkedInt64Array`](#geoarrow.rust.core.ChunkedInt64Array)
- [`ChunkedStringArray`](#geoarrow.rust.core.ChunkedStringArray)
- [`ChunkedLargeStringArray`](#geoarrow.rust.core.ChunkedLargeStringArray)
- [`ChunkedLargeStringArray`](#geoarrow.rust.core.ChunkedLargeStringArray) -->

::: geoarrow.rust.core
options:
Expand All @@ -25,16 +25,4 @@ from geospatial operations to maintain strong typing.
- "^__arrow"
members:
- ChunkedBooleanArray
- ChunkedFloat16Array
- ChunkedFloat32Array
- ChunkedFloat64Array
- ChunkedUInt8Array
- ChunkedUInt16Array
- ChunkedUInt32Array
- ChunkedUInt64Array
- ChunkedInt8Array
- ChunkedInt16Array
- ChunkedInt32Array
- ChunkedInt64Array
- ChunkedStringArray
- ChunkedLargeStringArray
2 changes: 1 addition & 1 deletion python/core/docs/api/table.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# GeoTable

::: geoarrow.rust.core.rust
::: geoarrow.rust.core
options:
filters:
- "!^_"
Expand Down
3 changes: 3 additions & 0 deletions python/core/docs/api/types.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Types

::: geoarrow.rust.core.types
10 changes: 5 additions & 5 deletions python/core/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ extra:
nav:
- "index.md"
- API Reference:
- api/index.md
- Geometry Arrays:
- api/geometry/array.md
- api/geometry/chunked.md
Expand All @@ -32,12 +31,13 @@ nav:
- api/table.md
- Operations: api/functions.md
- IO: api/io.md
- Types: api/types.md

# - Caveats: caveats.md
- Performance: performance.md
- Changelog: CHANGELOG.md
- Alternatives: alternatives.md
- "How it works?": how-it-works.md
# - Performance: performance.md
# - Changelog: CHANGELOG.md
# - Alternatives: alternatives.md
# - "How it works?": how-it-works.md

watch:
- python
Expand Down
44 changes: 42 additions & 2 deletions python/core/poetry.lock

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

4 changes: 4 additions & 0 deletions python/core/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,7 @@ mkdocstrings = {version = "^0.23.0", extras = ["python"]}
mkdocs-jupyter = {version = "^0.24.5", python = "^3.9"}
mike = "^2"


[tool.poetry.group.dev.dependencies]
maturin = "^1.4.0"

Loading

0 comments on commit 383a16f

Please sign in to comment.