Skip to content

Commit 330b0a1

Browse files
talgalilimeta-codesync[bot]
authored andcommitted
Fix release workflow to use python -m build instead of setup.py
Summary: The release workflow (release.yml) was failing because it referenced `python setup.py bdist_wheel` and `python setup.py sdist bdist_wheel`, but the project has migrated to pyproject.toml and no longer has a setup.py file. Replaced both occurrences with `python -m build`, matching the pattern already used in build-and-test.yml. Reviewed By: omriharosh Differential Revision: D92706478 fbshipit-source-id: b32dfd95bb274edaf78ba4c731b11499442a81d5
1 parent 7ea804e commit 330b0a1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ jobs:
2929
python -m pytest -ra
3030
- name: Build wheels pkg
3131
run: |
32-
python setup.py bdist_wheel
32+
python -m pip install --upgrade pip build
33+
python -m build --wheel --outdir dist
3334
3435
deploy:
3536
needs: tests # only run if previous step succeeds
@@ -48,7 +49,8 @@ jobs:
4849
run: git fetch --prune --unshallow
4950
- name: Build wheels pkg
5051
run: |
51-
python setup.py sdist bdist_wheel
52+
python -m pip install --upgrade pip build
53+
python -m build --sdist --wheel --outdir dist
5254
- name: Publish a Python distribution to PyPI
5355
uses: pypa/gh-action-pypi-publish@release/v1
5456
with:

0 commit comments

Comments
 (0)