From c12c4a4ca3228414de44c16d41104a13c72a5198 Mon Sep 17 00:00:00 2001 From: Michal Baumgartner Date: Wed, 29 Oct 2025 17:26:59 +0100 Subject: [PATCH] fix: release using PEP 517 --- .github/workflows/release.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bd8fe986..363c61a4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,7 @@ jobs: - uses: actions/cache@v4 with: path: ~/.cache/pip - key: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-${{ hashFiles('setup.py') }} + key: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-${{ hashFiles('pyproject.toml') }} restore-keys: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip- - uses: actions/checkout@v4 with: @@ -37,10 +37,9 @@ jobs: with: python-version: ${{ matrix.PYTHON_VERSION }} architecture: "x64" - - run: python -m pip install --upgrade pip setuptools wheel twine + - run: python -m pip install --upgrade pip build twine - name: Build and publish python-language-server run: | - python setup.py bdist_wheel --universal - python setup.py sdist + python -m build python -m twine check dist/* python -m twine upload dist/*