diff --git a/.github/workflows/artifact.yaml b/.github/workflows/artifact.yaml index f3974525..e69ca9b8 100644 --- a/.github/workflows/artifact.yaml +++ b/.github/workflows/artifact.yaml @@ -7,6 +7,7 @@ env: UNSAFE_PYO3_BUILD_FREE_THREADED: "1" UNSAFE_PYO3_SKIP_VERSION_CHECK: "1" UV_LINK_MODE: "copy" + UV_PYTHON_DOWNLOADS: "never" jobs: sdist: @@ -642,6 +643,18 @@ jobs: permissions: id-token: write steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install uv + uses: astral-sh/setup-uv@v5 + with: + enable-cache: false + version: "0.5.x" + - uses: actions/download-artifact@v4 with: merge-multiple: true @@ -650,14 +663,5 @@ jobs: - run: ls -1 dist/ - - uses: actions/setup-python@v5 - with: - python-version: "3.12" - - - name: Publish distribution to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - attestations: true - packages-dir: dist - skip-existing: true - verbose: true + - name: Publish to PyPI + run: uv publish --trusted-publishing=always dist/* diff --git a/pyproject.toml b/pyproject.toml index 56e82030..d9c3a3f0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,6 @@ [project] name = "orjson" +version = "3.10.12" repository = "https://github.com/ijl/orjson" requires-python = ">=3.8" classifiers = [