Skip to content

Commit

Permalink
importlib_metadata for any, remove from 3_6
Browse files Browse the repository at this point in the history
  • Loading branch information
madhur-ob committed May 15, 2024
1 parent 2d1966f commit d7b1d54
Show file tree
Hide file tree
Showing 19 changed files with 572 additions and 5 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import abc
import csv
import sys
from metaflow._vendor.v3_6 import zipp
from metaflow._vendor import zipp
import email
import pathlib
import operator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
try:
from typing import Protocol
except ImportError: # pragma: no cover
from metaflow._vendor.v3_6.typing_extensions import Protocol # type: ignore
from metaflow._vendor.typing_extensions import Protocol # type: ignore


def install(cls):
Expand Down
2 changes: 1 addition & 1 deletion metaflow/_vendor/typeguard/_checkers.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
from importlib.metadata import entry_points
from typing import ParamSpec
else:
from importlib_metadata import entry_points
from metaflow._vendor.importlib_metadata import entry_points
from metaflow._vendor.typing_extensions import ParamSpec

TypeCheckerCallable: TypeAlias = Callable[
Expand Down
2 changes: 1 addition & 1 deletion metaflow/_vendor/typeguard/_importhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
if sys.version_info >= (3, 10):
from importlib.metadata import PackageNotFoundError, version
else:
from importlib_metadata import PackageNotFoundError, version
from metaflow._vendor.importlib_metadata import PackageNotFoundError, version

try:
OPTIMIZATION = "typeguard" + "".join(version("typeguard").split(".")[:3])
Expand Down
1 change: 1 addition & 0 deletions metaflow/_vendor/vendor_any.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
click==7.1.2
packaging==23.0
importlib_metadata==4.8.3
typeguard==4.0.1
1 change: 0 additions & 1 deletion metaflow/_vendor/vendor_v3_6.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
importlib_metadata==4.8.3
typing_extensions==4.1.1
zipp==3.6.0
17 changes: 17 additions & 0 deletions metaflow/_vendor/zipp.LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
Loading

0 comments on commit d7b1d54

Please sign in to comment.