Skip to content

Commit

Permalink
Ensure that _vendor/jaraco is available as a module. Fixes #3084.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Feb 6, 2022
1 parent e5530cb commit 8afd3a3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/3084.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
When vendoring jaraco packages, ensure the namespace package is converted to a simple package to support zip importer.
Empty file.
Empty file.
2 changes: 2 additions & 0 deletions tools/vendored.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ def rewrite_jaraco(pkg_files, new_root):
text = file.read_text()
text = re.sub(r' (more_itertools)', rf' {new_root}.\1', text)
file.write_text(text)
# required for zip-packaged setuptools #3084
pkg_files.joinpath('__init__.py').write_text('')


def rewrite_importlib_resources(pkg_files, new_root):
Expand Down

0 comments on commit 8afd3a3

Please sign in to comment.