From 208d12199147c7243da51cf672d69935e99473c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filipe=20La=C3=ADns?= Date: Fri, 20 Nov 2020 17:31:16 +0000 Subject: [PATCH 1/2] guides: replace pep517 CLI usage with pypa/build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/pypa/pep517/issues/91 Signed-off-by: Filipe Laíns --- .../publish-to-test-pypi.yml | 12 ++++++------ ...releases-using-github-actions-ci-cd-workflows.rst | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/source/guides/github-actions-ci-cd-sample/publish-to-test-pypi.yml b/source/guides/github-actions-ci-cd-sample/publish-to-test-pypi.yml index da073b470..7e8fbe4a1 100644 --- a/source/guides/github-actions-ci-cd-sample/publish-to-test-pypi.yml +++ b/source/guides/github-actions-ci-cd-sample/publish-to-test-pypi.yml @@ -13,19 +13,19 @@ jobs: uses: actions/setup-python@v1 with: python-version: 3.7 - - name: Install pep517 + - name: Install pypa/build run: >- python -m pip install - pep517 + build --user - name: Build a binary wheel and a source tarball run: >- python -m - pep517.build - --source - --binary - --out-dir dist/ + build + --sdist + --wheel + --outdir dist/ . # Actually publish to PyPI/TestPyPI - name: Publish distribution 📦 to Test PyPI diff --git a/source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst b/source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst index 9c1981afa..6ec4a97f9 100644 --- a/source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst +++ b/source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst @@ -87,13 +87,13 @@ Then, add the following under the ``build-n-publish`` section: .. literalinclude:: github-actions-ci-cd-sample/publish-to-test-pypi.yml :language: yaml :start-after: runs-on: - :end-before: Install pep517 + :end-before: Install build This will download your repository into the CI runner and then install and activate Python 3.7. And now we can build dists from source. In this example, we'll -use ``pep517`` package, assuming that your project has a +use ``build`` package, assuming that your project has a ``pyproject.toml`` properly set up (see :pep:`517`/:pep:`518`). From 6e186ddd872e40c348d7f9930b0cc25b6f6b3fa0 Mon Sep 17 00:00:00 2001 From: Pradyun Gedam <3275593+pradyunsg@users.noreply.github.com> Date: Sat, 21 Nov 2020 13:01:09 +0000 Subject: [PATCH 2/2] Update include directive's end-before Co-authored-by: Sviatoslav Sydorenko --- ...stribution-releases-using-github-actions-ci-cd-workflows.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst b/source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst index 6ec4a97f9..aeb1572a6 100644 --- a/source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst +++ b/source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst @@ -87,7 +87,7 @@ Then, add the following under the ``build-n-publish`` section: .. literalinclude:: github-actions-ci-cd-sample/publish-to-test-pypi.yml :language: yaml :start-after: runs-on: - :end-before: Install build + :end-before: Install pypa/build This will download your repository into the CI runner and then install and activate Python 3.7.