From d929358766df52590df03b35fe515e6a369c1591 Mon Sep 17 00:00:00 2001 From: Louis Sautier Date: Sat, 10 Oct 2020 19:11:20 +0200 Subject: [PATCH 1/2] Prevent installation of the "tests" package Tests should not be listed under packages, otherwise setup.py attempts to install a "tests" package, causing potential clashes with other packages. --- pyproject.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 81d45cc27..5f8fdb0e7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,9 @@ classifiers = [ urls = { Changelog = "https://github.com/pycqa/isort/blob/master/CHANGELOG.md" } packages = [ { include = "isort" }, - { include = "tests", format = "sdist" }, +] +include = [ + { path = "tests", format = "sdist" }, ] [tool.poetry.dependencies] From 66d6345171b398c9e025904789d121e78dcad79a Mon Sep 17 00:00:00 2001 From: Timothy Crosley Date: Sat, 10 Oct 2020 23:53:16 -0700 Subject: [PATCH 2/2] Specify minimum build system --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 5f8fdb0e7..158c92fe6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -101,5 +101,5 @@ logo = "art/logo.png" palette = {scheme = "isort"} [build-system] -requires = ["poetry>=0.12"] -build-backend = "poetry.masonry.api" +requires = ["poetry-core>=1.0.0"] +build-backend = "poetry.core.masonry.api"