Skip to content

Commit 208d121

Browse files
committed
guides: replace pep517 CLI usage with pypa/build
See pypa/pyproject-hooks#91 Signed-off-by: Filipe Laíns <lains@riseup.net>
1 parent 8cd15e6 commit 208d121

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

source/guides/github-actions-ci-cd-sample/publish-to-test-pypi.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ jobs:
1313
uses: actions/setup-python@v1
1414
with:
1515
python-version: 3.7
16-
- name: Install pep517
16+
- name: Install pypa/build
1717
run: >-
1818
python -m
1919
pip install
20-
pep517
20+
build
2121
--user
2222
- name: Build a binary wheel and a source tarball
2323
run: >-
2424
python -m
25-
pep517.build
26-
--source
27-
--binary
28-
--out-dir dist/
25+
build
26+
--sdist
27+
--wheel
28+
--outdir dist/
2929
.
3030
# Actually publish to PyPI/TestPyPI
3131
- name: Publish distribution 📦 to Test PyPI

source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ Then, add the following under the ``build-n-publish`` section:
8787
.. literalinclude:: github-actions-ci-cd-sample/publish-to-test-pypi.yml
8888
:language: yaml
8989
:start-after: runs-on:
90-
:end-before: Install pep517
90+
:end-before: Install build
9191

9292
This will download your repository into the CI runner and then
9393
install and activate Python 3.7.
9494

9595
And now we can build dists from source. In this example, we'll
96-
use ``pep517`` package, assuming that your project has a
96+
use ``build`` package, assuming that your project has a
9797
``pyproject.toml`` properly set up (see
9898
:pep:`517`/:pep:`518`).
9999

0 commit comments

Comments
 (0)