Skip to content

Switch from pep517 lib to build CLI #199

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
Apr 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions .github/workflows/build-test-n-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ jobs:
env:
ANSIBLE_PYLIBSSH_TRACING: >-
${{ fromJSON(needs.pre-setup.outputs.profiling_enabled) && 1 || 0 }}
PEP517_ARGS: --binary
PEP517_BUILD_ARGS: --wheel
PY_COLORS: 1
TOXENV: build-wheels-pip,delocate-macos-wheels,metadata-validation
TOX_PARALLEL_NO_SPINNER: 1
Expand Down Expand Up @@ -580,7 +580,7 @@ jobs:
env:
ANSIBLE_PYLIBSSH_TRACING: >-
${{ fromJSON(needs.pre-setup.outputs.profiling_enabled) && 1 || 0 }}
PEP517_ARGS: --source
PEP517_BUILD_ARGS: --sdist
PY_COLORS: 1
TOXENV: build-dists,metadata-validation
TOX_PARALLEL_NO_SPINNER: 1
Expand Down
2 changes: 2 additions & 0 deletions docs/changelog-fragments/199.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Switched using `pep517 <https://pep517.rtfd.io>`__ lib to
`build <https://pypa-build.rtfd.io>`__ CLI -- :user:`webknjaz`
18 changes: 8 additions & 10 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist = python
minversion = 3.19.0
minversion = 3.21.0
requires =
setuptools >= 40.9.0
pip >= 19.0.3
Expand Down Expand Up @@ -91,7 +91,7 @@ setenv =
[dists]
setenv =
{[testenv]setenv}
PEP517_OUT_DIR = {env:PEP517_OUT_DIR:{toxinidir}/dist}
PEP517_OUT_DIR = {env:PEP517_OUT_DIR:{toxinidir}{/}dist}


[testenv:cleanup-dists]
Expand All @@ -118,18 +118,16 @@ isolated_build = true
usedevelop = false
skip_install = true
deps =
# NOTE: v0.7.0 added support for backend-path in pyproject.toml but
# NOTE: why not use something newer if we can?
pep517 >= 0.8.2
build >= 0.3.1, < 0.4.0
passenv =
PEP517_ARGS
PEP517_BUILD_ARGS
setenv =
{[dists]setenv}
commands =
{envpython} -m pep517.build \
{env:PEP517_ARGS:--source --binary} \
--out-dir {env:PEP517_OUT_DIR} \
{toxinidir}
{envpython} -m build \
--outdir '{env:PEP517_OUT_DIR}{/}' \
{posargs:{env:PEP517_BUILD_ARGS:--sdist --wheel}} \
'{toxinidir}'


[testenv:build-wheels-pip]
Expand Down