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:
23
23
- name : Install dependencies
24
24
run : |
25
25
python -m pip install --upgrade pip
26
- pip install build wheel twine
26
+ pip install setuptools wheel twine build toml
27
27
28
28
- name : Build package
29
- run : python setup.py sdist bdist_wheel
29
+ run : |
30
+ python -m build --sdist --wheel --outdir dist/
30
31
31
32
- name : Check if package version already exists
32
33
run : |
33
- PACKAGE_NAME=$(python setup.py -- name)
34
+ PACKAGE_NAME=$(python -c "import toml; print(toml.load('pyproject.toml')['project'][' name'])")
34
35
PACKAGE_VERSION=${{ github.event.inputs.version }}
35
36
if twine check dist/*; then
36
37
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