From 1a45cc4d83595c6e9134b358ecd1b73ce860219e Mon Sep 17 00:00:00 2001 From: Kyle Altendorf Date: Thu, 3 Sep 2020 10:56:11 -0400 Subject: [PATCH] Support and use pep517.build --- ci/travis.sh | 6 +++--- pyproject.toml | 7 +++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ci/travis.sh b/ci/travis.sh index cc4b0cd..e942577 100755 --- a/ci/travis.sh +++ b/ci/travis.sh @@ -15,7 +15,7 @@ if [ "$TRAVIS_OS_NAME" = "osx" ]; 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} @@ -39,8 +39,8 @@ EOF exit 0 fi -python setup.py sdist --formats=zip -pip install dist/*.zip +python -m pep517.build --source --out-dir dist/ . +python -m pip install dist/*.tar.gz if [ "$CHECK_DOCS" = "1" ]; then pip install -Ur ci/rtd-requirements.txt diff --git a/pyproject.toml b/pyproject.toml index 407fb8b..86cce2e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,3 +5,10 @@ directory = "newsfragments" title_format = "pytest-trio {version} ({project_date})" underlines = ["-", "~", "^"] issue_format = "`#{issue} `__" + +[build-system] +requires = [ + "setuptools >= 50.0.3", + "wheel >= 0.35.1", +] +build-backend = "setuptools.build_meta"