diff --git a/ci.sh b/ci.sh index aae8b3c..1d13161 100755 --- a/ci.sh +++ b/ci.sh @@ -23,11 +23,11 @@ function curl-harder() { } -python -m pip install -U pip setuptools wheel +python -m pip install -U pip setuptools wheel pep517 python -m pip --version -python setup.py sdist --formats=zip -python -m pip install dist/*.zip +python -m pep517.build --source --out-dir dist/ . +python -m pip install dist/*.tar.gz if [ "$CHECK_FORMATTING" = "1" ]; then pip install black 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"