Skip to content

Commit

Permalink
Add uv wheel tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
augray committed Dec 13, 2024
1 parent a160ccc commit 5e5bcd8
Show file tree
Hide file tree
Showing 5 changed files with 101 additions and 51 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
- name: Wheel
run: |
make ui
make wheel
make uv-wheel
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include README.nohtml
exclude sematic/examples/lightning_resnet/*.jpg
exclude sematic/examples/summarization_finetune/images/*.jpg
exclude sematic/examples/hackernews_summarization/*.png
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ py-prep:
rm -rf ".venv" || echo "No virtualenv yet"
uv venv --python 3.12
uv sync --extra examples
uv tool install --force ruff==0.8.2

.PHONY: py-sync
py-sync:
Expand Down Expand Up @@ -100,7 +99,7 @@ uv-wheel:
grep -v "<a" | \
grep -v "/a>" | \
grep -v "/img>" > README.nohtml
uvx m2r --overwrite README.nohtml
# source .venv/bin/activate && python3 -m pandoc read --format=markdown README.nohtml
cp BUILD tmp.BUILD
rm -rf dist build src/*.egg-info
uvx pip wheel -w dist . && rm -rf build && mv tmp.BUILD BUILD
Expand Down
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "sematic"
description = "Sematic ML orchestration tool"
version = "0.41.0"
version = "0.39.2"
requires-python = ">=3.9, <3.13"
dependencies = [
# System
Expand Down Expand Up @@ -48,6 +48,10 @@ dependencies = [
"types-google-cloud-ndb>=2.2.0.0",
]

[project.readme]
file = "README.nohtml"
content-type = "text/markdown"

[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
Expand Down
Loading

0 comments on commit 5e5bcd8

Please sign in to comment.