Skip to content

Commit 6a8f904

Browse files
Updates release workflow
1 parent de613ef commit 6a8f904

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ jobs:
2323
- name: Install dependencies
2424
run: |
2525
python -m pip install --upgrade pip
26-
pip install build wheel twine
26+
pip install setuptools wheel twine build toml
2727
2828
- name: Build package
29-
run: python setup.py sdist bdist_wheel
29+
run: python -m build --sdist --wheel --outdir dist/
3030

3131
- name: Check if package version already exists
3232
run: |
33-
PACKAGE_NAME=$(python setup.py --name)
33+
PACKAGE_NAME=$(python -c "import toml; print(toml.load('pyproject.toml')['project']['name'])")
3434
PACKAGE_VERSION=${{ github.event.inputs.version }}
3535
if twine check dist/*; then
3636
if pip install $PACKAGE_NAME==$PACKAGE_VERSION; then

0 commit comments

Comments
 (0)