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 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"