File tree Expand file tree Collapse file tree 2 files changed +4
-36
lines changed Expand file tree Collapse file tree 2 files changed +4
-36
lines changed Original file line number Diff line number Diff line change @@ -23,14 +23,15 @@ 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 : |
30+ python -m build --sdist --wheel --outdir dist/
3031
3132 - name : Check if package version already exists
3233 run : |
33- PACKAGE_NAME=$(python setup.py -- name)
34+ PACKAGE_NAME=$(python -c "import toml; print(toml.load('pyproject.toml')['project'][' name'])")
3435 PACKAGE_VERSION=${{ github.event.inputs.version }}
3536 if twine check dist/*; then
3637 if pip install $PACKAGE_NAME==$PACKAGE_VERSION; then
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments