Skip to content
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
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,21 @@ jobs:
run: |
pip install maturin==1.9.6
maturin build --locked --profile dev --manifest-path crates/weft-python/Cargo.toml --out dist
- name: Sdist metadata and compile inputs
# Cheap guard (the full sdist -> wheel build runs in the nightly features job,
# about 8 minutes cold): pip's metadata step failed on nested license-files,
# and the sdist once lacked the schemas weft-core includes at compile time.
run: |
maturin sdist --out "$RUNNER_TEMP/sdist"
mkdir "$RUNNER_TEMP/sdist-src"
tar -xzf "$RUNNER_TEMP"/sdist/*.tar.gz -C "$RUNNER_TEMP/sdist-src" --strip-components=1
(cd "$RUNNER_TEMP/sdist-src" && maturin pep517 write-dist-info \
--metadata-directory "$RUNNER_TEMP/sdist-meta" --interpreter "$(command -v python)")
for f in LICENSE.md LICENSE-MIT LICENSE-APACHE THIRD-PARTY-LICENSES.txt; do
test -s "$RUNNER_TEMP"/sdist-meta/*.dist-info/licenses/"$f"
done
(cd "$RUNNER_TEMP/sdist-src" && grep -rhoE '\.\./(\.\./)+docs/[A-Za-z0-9._/-]*\.schema\.json' crates/*/src \
| sed 's#^\(\.\./\)*##' | sort -u | while read -r f; do test -f "$f" || { echo "missing from sdist: $f"; exit 1; }; done)
- name: Install the wheel in a fresh venv and run the installed-wheel checks
run: |
python -m venv "$RUNNER_TEMP/venv"
Expand Down
1 change: 1 addition & 0 deletions THIRD-PARTY-LICENSES.txt
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires=["maturin==1.9.6"]
build-backend="maturin"
[project]
license = "MIT OR Apache-2.0"
license-files = ["crates/weft-python/LICENSE.md", "crates/weft-python/LICENSE-MIT", "crates/weft-python/LICENSE-APACHE", "crates/weft-python/THIRD-PARTY-LICENSES.txt"]
license-files = ["LICENSE.md", "LICENSE-MIT", "LICENSE-APACHE", "THIRD-PARTY-LICENSES.txt"]
name="umf-weft"
version = "0.4.58"
description="Native UMF-powered SQL compiler with explicit backend profiles"
Expand All @@ -14,6 +14,6 @@ Repository="https://github.com/DocumentDrivenDX/weft"
Issues="https://github.com/DocumentDrivenDX/weft/issues"
[tool.maturin]
manifest-path="crates/weft-python/Cargo.toml"
include=[{path="tests/**/*",format="sdist"},{path="spec/**/*",format="sdist"},{path=".cargo/**/*",format="sdist"},{path="vendor/ahash/**/*",format="sdist"}]
include=[{path="tests/**/*",format="sdist"},{path="spec/**/*",format="sdist"},{path=".cargo/**/*",format="sdist"},{path="vendor/ahash/**/*",format="sdist"},{path="docs/helix/02-design/contracts/**/*",format="sdist"},{path="docs/helix/03-test/fixtures/**/*",format="sdist"}]
bindings="pyo3"
features=["ashlar-sdk-ordered-page-candidate","raw-postgresql-reads","ashlar-databricks-paths-keys","ashlar-databricks-qualified","truss-postgresql-pg18","current-postgresql-scalar-candidate","current-databricks-scalar-candidate","current-query-refinement-candidate","current-presence-graph-requirements-candidate"]
Loading