From 93849a31401ce56112b5be80f9802ad2868003df Mon Sep 17 00:00:00 2001 From: Kyle Altendorf Date: Wed, 2 Sep 2020 15:09:23 -0400 Subject: [PATCH 1/2] Add [build-system] to pyproject.toml --- pyproject.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 7443971..07b11e3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,3 +4,10 @@ filename = "docs/source/history.rst" directory = "newsfragments" underlines = ["-", "~", "^"] issue_format = "`#{issue} `__" + +[build-system] +requires = [ + "setuptools >= 50.0.3", + "wheel >= 0.35.1", +] +build-backend = "setuptools.build_meta" From 640bd381db25bf2033b61cac986e21997d39058f Mon Sep 17 00:00:00 2001 From: Kyle Altendorf Date: Wed, 2 Sep 2020 15:19:38 -0400 Subject: [PATCH 2/2] Use pep517.build in in CI --- ci/travis.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/travis.sh b/ci/travis.sh index ea3cb62..bbc7791 100755 --- a/ci/travis.sh +++ b/ci/travis.sh @@ -53,7 +53,7 @@ if [ "$USE_PYPY_RELEASE_VERSION" != "" ]; then source testenv/bin/activate fi -pip install -U pip setuptools wheel +pip install -U pip setuptools wheel pep517 if [ "$CHECK_FORMATTING" = "1" ]; then pip install yapf==${YAPF_VERSION} @@ -77,8 +77,8 @@ EOF exit 0 fi -python setup.py sdist --formats=zip -pip install dist/*.zip +python -m pep517.build --source --out-dir dist/ . +pip install dist/*.tar.gz if [ "$CHECK_DOCS" = "1" ]; then pip install -Ur ci/rtd-requirements.txt