Skip to content

migrate to hatch + uv - #139

Merged
jkanche merged 13 commits into
masterfrom
update-hatchit
Aug 31, 2026
Merged

migrate to hatch + uv#139
jkanche merged 13 commits into
masterfrom
update-hatchit

Conversation

@jkanche

@jkanche jkanche commented Aug 25, 2026

Copy link
Copy Markdown
Member

No description provided.

@jkanche jkanche self-assigned this Aug 25, 2026
Comment thread .github/workflows/pre-commit.yml Fixed
Comment on lines +10 to +16
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- uses: pre-commit/action@v3.0.1
Comment on lines +9 to +39
name: Build and Test
runs-on: ubuntu-latest
permissions:
id-token: write
repository-projects: write
contents: write
pages: write

steps:
- uses: actions/checkout@v4

- name: Set up uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true

- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Install tox
run: uv tool install tox --with tox-uv

- name: Test with tox
run: |
tox
- name: Test
run: tox -e default

- name: Build Project and Publish
run: |
python -m tox -e clean,build
- name: Build Project
run: tox -e build

# This uses the trusted publisher workflow so no token is required.
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- name: Store the distribution packages
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/

build-docs:
Comment on lines +40 to +69
name: Build Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true

- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12

- name: Install tox
run: uv tool install tox --with tox-uv

- name: Build docs
run: |
tox -e docs
run: tox -e docs

- name: Add .nojekyll
run: touch ./docs/_build/html/.nojekyll

- run: touch ./docs/_build/html/.nojekyll
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/_build/html

- name: GH Pages Deployment
uses: JamesIves/github-pages-deploy-action@v4
publish-pypi:
@jkanche
jkanche merged commit c259b61 into master Aug 31, 2026
14 checks passed
@jkanche
jkanche deleted the update-hatchit branch August 31, 2026 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants