diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..9d1e098 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,5 @@ +changelog: + exclude: + authors: + - dependabot + - pre-commit-ci diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index db49997..a7a88d6 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -47,11 +47,14 @@ jobs: name: Packages path: dist + - name: Generate artifact attestation for sdist and wheel + uses: actions/attest-build-provenance@v1.4.1 + with: + subject-path: "dist/*" + - uses: pypa/gh-action-pypi-publish@release/v1 if: github.event_name == 'release' && github.event.action == 'published' with: - # Remember to tell (test-)pypi about this repo before publishing - # Remove this line to publish to PyPI repository-url: https://test.pypi.org/legacy/ publish: @@ -69,4 +72,9 @@ jobs: name: Packages path: dist + - name: Generate artifact attestation for sdist and wheel + uses: actions/attest-build-provenance@v1.4.1 + with: + subject-path: "dist/*" + - uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 014f4b5..7871ce1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,16 +24,20 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-python@v5 + + - name: Install uv + uses: astral-sh/setup-uv@v3 + + - name: "Set up Python" + uses: actions/setup-python@v5 with: - python-version: "3.x" + python-version-file: ".python-version" + # - uses: pre-commit/action@v3.0.1 # with: # extra_args: --hook-stage manual --all-files - name: Run PyLint - run: | - echo "::add-matcher::$GITHUB_WORKSPACE/.github/matchers/pylint.json" - pipx run nox -s pylint + run: pipx run nox -s pylint -- --output-format=github checks: name: Check Python ${{ matrix.python-version }} on ${{ matrix.runs-on }} diff --git a/README.md b/README.md index 30222da..9eab434 100644 --- a/README.md +++ b/README.md @@ -11,10 +11,8 @@ vectorization (`vmap`, etc). ## Installation -[![PyPI platforms][pypi-platforms]][pypi-link] [![PyPI version][pypi-version]][pypi-link] - - +[![PyPI platforms][pypi-platforms]][pypi-link] ```bash pip install unxt diff --git a/noxfile.py b/noxfile.py index b432751..325053f 100644 --- a/noxfile.py +++ b/noxfile.py @@ -1,6 +1,5 @@ -# pylint: disable=import-error - """Nox sessions.""" +# pylint: disable=import-error import argparse import shutil @@ -12,7 +11,7 @@ nox.needs_version = ">=2024.3.2" nox.options.sessions = ["lint", "pylint", "tests"] -nox.options.default_venv_backend = "uv|virtualenv" +nox.options.default_venv_backend = "uv" @nox.session