From 613b787c38fcb08e55620db6073410867c298179 Mon Sep 17 00:00:00 2001 From: Claudio Jolowicz Date: Wed, 28 Aug 2019 09:48:06 +0200 Subject: [PATCH] Add test for pyproject.toml-style project using setuptools --- test/fixtures/pyproject-toml/pyproject.toml | 3 +++ test/fixtures/pyproject-toml/setup.py | 4 ++++ test/run-features | 5 +++++ 3 files changed, 12 insertions(+) create mode 100644 test/fixtures/pyproject-toml/pyproject.toml create mode 100644 test/fixtures/pyproject-toml/setup.py diff --git a/test/fixtures/pyproject-toml/pyproject.toml b/test/fixtures/pyproject-toml/pyproject.toml new file mode 100644 index 000000000..864b334a8 --- /dev/null +++ b/test/fixtures/pyproject-toml/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools", "wheel"] +build-backend = "setuptools.build_meta:__legacy__" diff --git a/test/fixtures/pyproject-toml/setup.py b/test/fixtures/pyproject-toml/setup.py new file mode 100644 index 000000000..4d986d25d --- /dev/null +++ b/test/fixtures/pyproject-toml/setup.py @@ -0,0 +1,4 @@ +from setuptools import setup + + +setup(name="foobar", version="1.0.0") diff --git a/test/run-features b/test/run-features index 5c4b1b16d..3c7b168ff 100755 --- a/test/run-features +++ b/test/run-features @@ -70,6 +70,11 @@ testPipenvFullVersion() { assertCapturedSuccess } +testPyProjectToml() { + compile "pyproject-toml" + assertCapturedSuccess +} + testPoetry() { compile "poetry" assertCapturedSuccess