Skip to content

Commit 190a922

Browse files
authored
fix: publish wheels on PyPI (#49)
This fixes an issue where the library was only publishing the source code (`sdist`) in PyPI instead of also including the wheels as explained at #47 (comment).
1 parent 157aa5b commit 190a922

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/publish-pypi.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ env:
1717
POETRY_VIRTUALENVS_CREATE: "false"
1818

1919
jobs:
20-
build_sdist:
20+
build:
2121
runs-on: ubuntu-22.04
2222

2323
permissions:
@@ -30,14 +30,14 @@ jobs:
3030
- name: Setup Python
3131
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
3232
with:
33-
python-version-file: '.github/requirements/.python_version'
33+
python-version-file: ".github/requirements/.python_version"
3434

3535
- name: Install Dependencies
3636
run: |
3737
python -m pip install "poetry==$(cat .github/requirements/.poetry_version)"
3838
3939
- name: Build
40-
run: python3 -m poetry build -f sdist -o ./dist
40+
run: python3 -m poetry build -o ./dist
4141

4242
- name: Upload Build
4343
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
@@ -52,10 +52,10 @@ jobs:
5252
environment: publish-pypi
5353

5454
needs:
55-
- build_sdist
55+
- build
5656

5757
permissions:
58-
id-token: write # Required for PyPI trusted publishing
58+
id-token: write # Required for PyPI trusted publishing
5959

6060
steps:
6161
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ authors = [
1010
"Saleor Commerce <hello@saleor.io>"
1111
]
1212
license = "BSD-3-Clause"
13-
version = "1.1.0"
13+
version = "1.1.1"
1414
classifiers = [
1515
"Development Status :: 5 - Production/Stable",
1616
"Intended Audience :: Developers",

0 commit comments

Comments
 (0)