Skip to content

Commit

Permalink
Compatibility fix for setuptools 61.0 (Issue inmanta/irt#1074, PR #83)
Browse files Browse the repository at this point in the history
# 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
  • Loading branch information
sanderr authored and inmantaci committed Mar 25, 2022
1 parent bc92448 commit 6540061
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions 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
2 changes: 2 additions & 0 deletions setup.py
Expand Up @@ -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=[],
)

0 comments on commit 6540061

Please sign in to comment.