From 654006181663db4ac40c8f82dea58b80bd4b588c Mon Sep 17 00:00:00 2001 From: Sander Van Balen Date: Fri, 25 Mar 2022 16:37:08 +0100 Subject: [PATCH] Compatibility fix for setuptools 61.0 (Issue inmanta/irt#1074, PR #83) # Description setuptools-61.0.0 introduced auto discovery for packages if no `packages` or `py_modules` is explicitly specified. This is enabled by default (see pypa/setuptools#3197 and [CHANGES](https://github.com/pypa/setuptools/blob/v61.0.0/CHANGES.rst#v6100)). Since our product packages are just meta packages that don't have any source packages this results in random directories being marked as a package. This PR explicitly sets `packages=[]`. part of inmanta/irt#1074 # Self Check: - [ ] Attached issue to pull request - [ ] Changelog entry --- changelogs/unreleased/setuptools-compatibility-fix.yml | 6 ++++++ setup.py | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 changelogs/unreleased/setuptools-compatibility-fix.yml diff --git a/changelogs/unreleased/setuptools-compatibility-fix.yml b/changelogs/unreleased/setuptools-compatibility-fix.yml new file mode 100644 index 0000000..6969b40 --- /dev/null +++ b/changelogs/unreleased/setuptools-compatibility-fix.yml @@ -0,0 +1,6 @@ +description: "Compatibility fix for setuptools 61.0" +change-type: patch +issue-repo: irt +issue-nr: 1074 +destination-branches: + - master diff --git a/setup.py b/setup.py index dd37293..723b9d6 100644 --- a/setup.py +++ b/setup.py @@ -30,4 +30,6 @@ "inmanta-core>=5.0.0.dev", "inmanta-ui>=2.0.0.dev", ], + # explicitly declare packages so setuptools does not attempt auto discovery + packages=[], )