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
33 changes: 0 additions & 33 deletions .github/workflows/docs.yml

This file was deleted.

22 changes: 21 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,38 @@ on:
types: [published]

permissions:
contents: read
contents: write
id-token: write

jobs:
test:
uses: ./.github/workflows/test.yml

publish-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install uv
uses: astral-sh/setup-uv@v3

- name: Sync dependencies (locked)
run: |
uv sync --locked --all-groups

- name: Deploy to Pages
run: uv run mkdocs gh-deploy --force

build-wheels:
name: Build wheels (${{ matrix.os }})
runs-on: ${{ matrix.os }}
needs:
- test
- publish-docs
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ make fix-linting
Build wheel and source distribution:

```bash
make build
make build-sdist
```

This uses `uv build` under the hood.
Expand Down
31 changes: 5 additions & 26 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,11 @@ fix-linting:
uv run black typeid/ tests/ --line-length 119


# Build sdist + wheel using the configured PEP517 backend
artifacts: test
uv build


clean:
rm -rf dist build *.egg-info .venv


# Ensure local dev env is ready (installs deps according to uv.lock / pyproject)
prepforbuild:
uv sync --all-groups


# Alias if you still want a 'build' target name
build:
uv build


test-release:
uv run twine upload --repository testpypi dist/* --verbose


release:
uv run twine upload --repository pypi dist/* --verbose
.PHONY: build-sdist
build-sdist:
@rm -rf dist build *.egg-info .venv
@uv build --sdist -o dist
@ls -la dist


test:
Expand All @@ -50,4 +30,3 @@ docs:

docs-build:
mkdocs build