Skip to content

Commit

Permalink
Remove 'lorem_ipsum' property from jaraco.text, bypassing the behavio…
Browse files Browse the repository at this point in the history
…r on import and other issues.
  • Loading branch information
jaraco committed Feb 3, 2022
1 parent 763cf01 commit 3960a72
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/3072.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove lorem_ipsum from jaraco.text when vendored.
1 change: 0 additions & 1 deletion pkg_resources/_vendor/jaraco/text/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ def unwrap(s):
return '\n'.join(cleaned)


lorem_ipsum: str = files(__name__).joinpath('Lorem ipsum.txt').read_text()


class Splitter(object):
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
package_data = dict(
setuptools=['script (dev).tmpl', 'script.tmpl', 'site-patch.py'],
)
package_data.update({'pkg_resources._vendor.jaraco.text': ['*.txt']})

force_windows_specific_files = (
os.environ.get("SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES", "1").lower()
Expand Down
2 changes: 2 additions & 0 deletions tools/vendored.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ def rewrite_jaraco_text(pkg_files, new_root):
text = file.read_text()
text = re.sub(r' (jaraco\.)', rf' {new_root}.\1', text)
text = re.sub(r' (importlib_resources)', rf' {new_root}.\1', text)
# suppress loading of lorem_ipsum
text = re.sub(r'^lorem_ipsum.*\n$', '', text, flags=re.M)
file.write_text(text)


Expand Down

0 comments on commit 3960a72

Please sign in to comment.