Skip to content

guides: replace pep517 CLI usage with pypa/build #796

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 21, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`).

Expand Down