Skip to content

Commit a14e36a

Browse files
committed
Add cog annotations to extern/__init__.py for future checks
1 parent 1ed7591 commit a14e36a

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

pkg_resources/extern/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ def install(self):
7070
sys.meta_path.append(self)
7171

7272

73+
# [[[cog
74+
# import cog
75+
# from tools.vendored import yield_root_package
76+
# names = "\n".join(f" {x!r}," for x in yield_root_package('pkg_resources'))
77+
# cog.outl(f"names = (\n{names}\n)")
78+
# ]]]
7379
names = (
7480
'packaging',
7581
'platformdirs',
@@ -78,4 +84,5 @@ def install(self):
7884
'more_itertools',
7985
'backports',
8086
)
87+
# [[[end]]]
8188
VendorImporter(__name__, names).install()

setuptools/extern/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ def install(self):
7070
sys.meta_path.append(self)
7171

7272

73+
# [[[cog
74+
# import cog
75+
# from tools.vendored import yield_root_package
76+
# names = "\n".join(f" {x!r}," for x in yield_root_package('setuptools'))
77+
# cog.outl(f"names = (\n{names}\n)")
78+
# ]]]
7379
names = (
7480
'packaging',
7581
'ordered_set',
@@ -82,4 +88,5 @@ def install(self):
8288
'tomli',
8389
'backports',
8490
)
91+
# [[[end]]]
8592
VendorImporter(__name__, names, 'setuptools._vendor').install()

0 commit comments

Comments
 (0)