Skip to content

Fix py.typed verification script #26626

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions eng/tox/verify_sdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,9 @@ def verify_sdist_pytyped(
if os.path.exists(manifest_location):
with open(manifest_location, "r") as f:
lines = f.readlines()
result = any([include for include in lines if "py.typed" in include])

if not result:
if not any([include for include in lines if "py.typed" in include]):
logging.info("Ensure that the MANIFEST.in includes at least one path that leads to a py.typed file.")
result = False

pytyped_file_path = os.path.join(pkg_dir, *namespace.split("."), "py.typed")
if not os.path.exists(pytyped_file_path):
Expand Down
1 change: 1 addition & 0 deletions sdk/maps/azure-maps-geolocation/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
'azure',
'azure.maps',
]),
include_package_data=True,
install_requires=[
'msrest>=0.6.21',
'azure-common~=1.1',
Expand Down
1 change: 1 addition & 0 deletions sdk/maps/azure-maps-search/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
'azure',
'azure.maps',
]),
include_package_data=True,
install_requires=[
'msrest>=0.6.21',
'azure-common~=1.1',
Expand Down
1 change: 1 addition & 0 deletions sdk/monitor/azure-monitor-ingestion/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
'azure',
'azure.monitor',
]),
include_package_data=True,
install_requires=[
'msrest>=0.6.19',
'azure-core<2.0.0,>=1.24.0',
Expand Down