Skip to content

Commit 88e4ee1

Browse files
authored
fix: release using PEP 517 (#6)
1 parent 08554e6 commit 88e4ee1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- uses: actions/cache@v4
2727
with:
2828
path: ~/.cache/pip
29-
key: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-${{ hashFiles('setup.py') }}
29+
key: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-${{ hashFiles('pyproject.toml') }}
3030
restore-keys: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-
3131
- uses: actions/checkout@v4
3232
with:
@@ -37,10 +37,9 @@ jobs:
3737
with:
3838
python-version: ${{ matrix.PYTHON_VERSION }}
3939
architecture: "x64"
40-
- run: python -m pip install --upgrade pip setuptools wheel twine
40+
- run: python -m pip install --upgrade pip build twine
4141
- name: Build and publish python-language-server
4242
run: |
43-
python setup.py bdist_wheel --universal
44-
python setup.py sdist
43+
python -m build
4544
python -m twine check dist/*
4645
python -m twine upload dist/*

0 commit comments

Comments
 (0)