We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de613ef commit 6a8f904Copy full SHA for 6a8f904
.github/workflows/release.yml
@@ -23,14 +23,14 @@ jobs:
23
- name: Install dependencies
24
run: |
25
python -m pip install --upgrade pip
26
- pip install build wheel twine
+ pip install setuptools wheel twine build toml
27
28
- name: Build package
29
- run: python setup.py sdist bdist_wheel
+ run: python -m build --sdist --wheel --outdir dist/
30
31
- name: Check if package version already exists
32
33
- PACKAGE_NAME=$(python setup.py --name)
+ PACKAGE_NAME=$(python -c "import toml; print(toml.load('pyproject.toml')['project']['name'])")
34
PACKAGE_VERSION=${{ github.event.inputs.version }}
35
if twine check dist/*; then
36
if pip install $PACKAGE_NAME==$PACKAGE_VERSION; then
0 commit comments