Skip to content

Commit

Permalink
Update vendored packages using the new method
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed May 9, 2024
1 parent 8581a08 commit 5d44045
Show file tree
Hide file tree
Showing 73 changed files with 2,171 additions and 915 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ backports.tarfile-1.0.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJ
backports.tarfile-1.0.0.dist-info/LICENSE,sha256=htoPAa6uRjSKPD1GUZXcHOzN55956HdppkuNoEsqR0E,1023
backports.tarfile-1.0.0.dist-info/METADATA,sha256=XlT7JAFR04zDMIjs-EFhqc0CkkVyeh-SiVUoKXONXJ0,1876
backports.tarfile-1.0.0.dist-info/RECORD,,
backports.tarfile-1.0.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
backports.tarfile-1.0.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
backports.tarfile-1.0.0.dist-info/top_level.txt,sha256=cGjaLMOoBR1FK0ApojtzWVmViTtJ7JGIK_HwXiEsvtU,10
backports/__pycache__/tarfile.cpython-312.pyc,,
backports/__pycache__/tarfile.cpython-38.pyc,,
backports/tarfile.py,sha256=IO3YX_ZYqn13VOi-3QLM0lnktn102U4d9wUrHc230LY,106920
59 changes: 29 additions & 30 deletions pkg_resources/_vendor/importlib_resources-5.10.2.dist-info/RECORD
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,18 @@ importlib_resources-5.10.2.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VC
importlib_resources-5.10.2.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
importlib_resources-5.10.2.dist-info/METADATA,sha256=Xo5ntATvDYUxdmW8tr8kxtfdiOC9889mOk-LE1LtZfI,4111
importlib_resources-5.10.2.dist-info/RECORD,,
importlib_resources-5.10.2.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
importlib_resources-5.10.2.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
importlib_resources-5.10.2.dist-info/top_level.txt,sha256=fHIjHU1GZwAjvcydpmUnUrTnbvdiWjG4OEVZK8by0TQ,20
importlib_resources/__init__.py,sha256=evPm12kLgYqTm-pbzm60bOuumumT8IpBNWFp0uMyrzE,506
importlib_resources/__pycache__/__init__.cpython-312.pyc,,
importlib_resources/__pycache__/_adapters.cpython-312.pyc,,
importlib_resources/__pycache__/_common.cpython-312.pyc,,
importlib_resources/__pycache__/_compat.cpython-312.pyc,,
importlib_resources/__pycache__/_itertools.cpython-312.pyc,,
importlib_resources/__pycache__/_legacy.cpython-312.pyc,,
importlib_resources/__pycache__/abc.cpython-312.pyc,,
importlib_resources/__pycache__/readers.cpython-312.pyc,,
importlib_resources/__pycache__/simple.cpython-312.pyc,,
importlib_resources/__pycache__/__init__.cpython-38.pyc,,
importlib_resources/__pycache__/_adapters.cpython-38.pyc,,
importlib_resources/__pycache__/_common.cpython-38.pyc,,
importlib_resources/__pycache__/_compat.cpython-38.pyc,,
importlib_resources/__pycache__/_itertools.cpython-38.pyc,,
importlib_resources/__pycache__/_legacy.cpython-38.pyc,,
importlib_resources/__pycache__/abc.cpython-38.pyc,,
importlib_resources/__pycache__/readers.cpython-38.pyc,,
importlib_resources/__pycache__/simple.cpython-38.pyc,,
importlib_resources/_adapters.py,sha256=o51tP2hpVtohP33gSYyAkGNpLfYDBqxxYsadyiRZi1E,4504
importlib_resources/_common.py,sha256=jSC4xfLdcMNbtbWHtpzbFkNa0W7kvf__nsYn14C_AEU,5457
importlib_resources/_compat.py,sha256=dSadF6WPt8MwOqSm_NIOQPhw4x0iaMYTWxi-XS93p7M,2923
Expand All @@ -25,36 +24,36 @@ importlib_resources/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
importlib_resources/readers.py,sha256=PZsi5qacr2Qn3KHw4qw3Gm1MzrBblPHoTdjqjH7EKWw,3581
importlib_resources/simple.py,sha256=0__2TQBTQoqkajYmNPt1HxERcReAT6boVKJA328pr04,2576
importlib_resources/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
importlib_resources/tests/__pycache__/__init__.cpython-312.pyc,,
importlib_resources/tests/__pycache__/_compat.cpython-312.pyc,,
importlib_resources/tests/__pycache__/_path.cpython-312.pyc,,
importlib_resources/tests/__pycache__/test_compatibilty_files.cpython-312.pyc,,
importlib_resources/tests/__pycache__/test_contents.cpython-312.pyc,,
importlib_resources/tests/__pycache__/test_files.cpython-312.pyc,,
importlib_resources/tests/__pycache__/test_open.cpython-312.pyc,,
importlib_resources/tests/__pycache__/test_path.cpython-312.pyc,,
importlib_resources/tests/__pycache__/test_read.cpython-312.pyc,,
importlib_resources/tests/__pycache__/test_reader.cpython-312.pyc,,
importlib_resources/tests/__pycache__/test_resource.cpython-312.pyc,,
importlib_resources/tests/__pycache__/update-zips.cpython-312.pyc,,
importlib_resources/tests/__pycache__/util.cpython-312.pyc,,
importlib_resources/tests/__pycache__/__init__.cpython-38.pyc,,
importlib_resources/tests/__pycache__/_compat.cpython-38.pyc,,
importlib_resources/tests/__pycache__/_path.cpython-38.pyc,,
importlib_resources/tests/__pycache__/test_compatibilty_files.cpython-38.pyc,,
importlib_resources/tests/__pycache__/test_contents.cpython-38.pyc,,
importlib_resources/tests/__pycache__/test_files.cpython-38.pyc,,
importlib_resources/tests/__pycache__/test_open.cpython-38.pyc,,
importlib_resources/tests/__pycache__/test_path.cpython-38.pyc,,
importlib_resources/tests/__pycache__/test_read.cpython-38.pyc,,
importlib_resources/tests/__pycache__/test_reader.cpython-38.pyc,,
importlib_resources/tests/__pycache__/test_resource.cpython-38.pyc,,
importlib_resources/tests/__pycache__/update-zips.cpython-38.pyc,,
importlib_resources/tests/__pycache__/util.cpython-38.pyc,,
importlib_resources/tests/_compat.py,sha256=YTSB0U1R9oADnh6GrQcOCgojxcF_N6H1LklymEWf9SQ,708
importlib_resources/tests/_path.py,sha256=yZyWsQzJZQ1Z8ARAxWkjAdaVVsjlzyqxO0qjBUofJ8M,1039
importlib_resources/tests/data01/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
importlib_resources/tests/data01/__pycache__/__init__.cpython-312.pyc,,
importlib_resources/tests/data01/__pycache__/__init__.cpython-38.pyc,,
importlib_resources/tests/data01/binary.file,sha256=BU7ewdAhH2JP7Qy8qdT5QAsOSRxDdCryxbCr6_DJkNg,4
importlib_resources/tests/data01/subdirectory/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
importlib_resources/tests/data01/subdirectory/__pycache__/__init__.cpython-312.pyc,,
importlib_resources/tests/data01/subdirectory/__pycache__/__init__.cpython-38.pyc,,
importlib_resources/tests/data01/subdirectory/binary.file,sha256=BU7ewdAhH2JP7Qy8qdT5QAsOSRxDdCryxbCr6_DJkNg,4
importlib_resources/tests/data01/utf-16.file,sha256=t5q9qhxX0rYqItBOM8D3ylwG-RHrnOYteTLtQr6sF7g,44
importlib_resources/tests/data01/utf-8.file,sha256=kwWgYG4yQ-ZF2X_WA66EjYPmxJRn-w8aSOiS9e8tKYY,20
importlib_resources/tests/data02/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
importlib_resources/tests/data02/__pycache__/__init__.cpython-312.pyc,,
importlib_resources/tests/data02/__pycache__/__init__.cpython-38.pyc,,
importlib_resources/tests/data02/one/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
importlib_resources/tests/data02/one/__pycache__/__init__.cpython-312.pyc,,
importlib_resources/tests/data02/one/__pycache__/__init__.cpython-38.pyc,,
importlib_resources/tests/data02/one/resource1.txt,sha256=10flKac7c-XXFzJ3t-AB5MJjlBy__dSZvPE_dOm2q6U,13
importlib_resources/tests/data02/two/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
importlib_resources/tests/data02/two/__pycache__/__init__.cpython-312.pyc,,
importlib_resources/tests/data02/two/__pycache__/__init__.cpython-38.pyc,,
importlib_resources/tests/data02/two/resource2.txt,sha256=lt2jbN3TMn9QiFKM832X39bU_62UptDdUkoYzkvEbl0,13
importlib_resources/tests/namespacedata01/binary.file,sha256=BU7ewdAhH2JP7Qy8qdT5QAsOSRxDdCryxbCr6_DJkNg,4
importlib_resources/tests/namespacedata01/utf-16.file,sha256=t5q9qhxX0rYqItBOM8D3ylwG-RHrnOYteTLtQr6sF7g,44
Expand All @@ -70,8 +69,8 @@ importlib_resources/tests/test_resource.py,sha256=EMoarxTEHcrq8R41LQDsndIG8Idtm4
importlib_resources/tests/update-zips.py,sha256=x-SrO5v87iLLUMXyefxDwAd3imAs_slI94sLWvJ6N40,1417
importlib_resources/tests/util.py,sha256=ARAlxZ47wC-lgR7PGlmgBoi4HnhzcykD5Is2-TAwY0I,4873
importlib_resources/tests/zipdata01/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
importlib_resources/tests/zipdata01/__pycache__/__init__.cpython-312.pyc,,
importlib_resources/tests/zipdata01/__pycache__/__init__.cpython-38.pyc,,
importlib_resources/tests/zipdata01/ziptestdata.zip,sha256=z5Of4dsv3T0t-46B0MsVhxlhsPGMz28aUhJDWpj3_oY,876
importlib_resources/tests/zipdata02/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
importlib_resources/tests/zipdata02/__pycache__/__init__.cpython-312.pyc,,
importlib_resources/tests/zipdata02/__pycache__/__init__.cpython-38.pyc,,
importlib_resources/tests/zipdata02/ziptestdata.zip,sha256=ydI-_j-xgQ7tDxqBp9cjOqXBGxUp6ZBbwVJu6Xj-nrY,698
Empty file.
2 changes: 1 addition & 1 deletion pkg_resources/_vendor/importlib_resources/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
if sys.version_info >= (3, 10):
from zipfile import Path as ZipPath # type: ignore
else:
from ..zipp import Path as ZipPath # type: ignore
from pkg_resources._vendor.zipp import Path as ZipPath # type: ignore


try:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import io
import unittest

import importlib_resources as resources
from pkg_resources._vendor import importlib_resources as resources

from importlib_resources._adapters import (
from pkg_resources._vendor.importlib_resources._adapters import (
CompatibilityFiles,
wrap_spec,
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import unittest
import importlib_resources as resources
from pkg_resources._vendor import importlib_resources as resources

from . import data01
from . import util
Expand Down
4 changes: 2 additions & 2 deletions pkg_resources/_vendor/importlib_resources/tests/test_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import importlib
import contextlib

import importlib_resources as resources
from pkg_resources._vendor import importlib_resources as resources
from ..abc import Traversable
from . import data01
from . import util
Expand Down Expand Up @@ -97,7 +97,7 @@ def test_implicit_files(self):
'somepkg': {
'__init__.py': textwrap.dedent(
"""
import importlib_resources as res
from pkg_resources._vendor import importlib_resources as res
val = res.files().joinpath('res.txt').read_text()
"""
),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest

import importlib_resources as resources
from pkg_resources._vendor import importlib_resources as resources
from . import data01
from . import util

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import io
import unittest

import importlib_resources as resources
from pkg_resources._vendor import importlib_resources as resources
from . import data01
from . import util

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import unittest
import importlib_resources as resources
from pkg_resources._vendor import importlib_resources as resources

from . import data01
from . import util
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import unittest

from importlib import import_module
from importlib_resources.readers import MultiplexedPath, NamespaceReader
from pkg_resources._vendor.importlib_resources.readers import MultiplexedPath, NamespaceReader


class MultiplexedPathTest(unittest.TestCase):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sys
import unittest
import importlib_resources as resources
from pkg_resources._vendor import importlib_resources as resources
import uuid
import pathlib

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ jaraco.context-5.3.0.dist-info/METADATA,sha256=xDtguJej0tN9iEXCUvxEJh2a7xceIRVBE
jaraco.context-5.3.0.dist-info/RECORD,,
jaraco.context-5.3.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
jaraco.context-5.3.0.dist-info/top_level.txt,sha256=0JnN3LfXH4LIRfXL-QFOGCJzQWZO3ELx4R1d_louoQM,7
jaraco/__pycache__/context.cpython-312.pyc,,
jaraco/__pycache__/context.cpython-38.pyc,,
jaraco/context.py,sha256=REoLIxDkO5MfEYowt_WoupNCRoxBS5v7YX2PbW8lIcs,9552
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ jaraco.functools-4.0.0.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPE
jaraco.functools-4.0.0.dist-info/top_level.txt,sha256=0JnN3LfXH4LIRfXL-QFOGCJzQWZO3ELx4R1d_louoQM,7
jaraco/functools/__init__.py,sha256=hEAJaS2uSZRuF_JY4CxCHIYh79ZpxaPp9OiHyr9EJ1w,16642
jaraco/functools/__init__.pyi,sha256=N4lLbdhMtrmwiK3UuMGhYsiOLLZx69CUNOdmFPSVh6Q,3982
jaraco/functools/__pycache__/__init__.cpython-312.pyc,,
jaraco/functools/__pycache__/__init__.cpython-38.pyc,,
jaraco/functools/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2 changes: 1 addition & 1 deletion pkg_resources/_vendor/jaraco.text-3.7.0.dist-info/RECORD
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ jaraco.text-3.7.0.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FG
jaraco.text-3.7.0.dist-info/top_level.txt,sha256=0JnN3LfXH4LIRfXL-QFOGCJzQWZO3ELx4R1d_louoQM,7
jaraco/text/Lorem ipsum.txt,sha256=N_7c_79zxOufBY9HZ3yzMgOkNv-TkOTTio4BydrSjgs,1335
jaraco/text/__init__.py,sha256=I56MW2ZFwPrYXIxzqxMBe2A1t-T4uZBgEgAKe9-JoqM,15538
jaraco/text/__pycache__/__init__.cpython-312.pyc,,
jaraco/text/__pycache__/__init__.cpython-38.pyc,,
2 changes: 1 addition & 1 deletion pkg_resources/_vendor/jaraco/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


if sys.version_info < (3, 12):
from pkg_resources.extern.backports import tarfile
from pkg_resources._vendor.backports import tarfile
else:
import tarfile

Expand Down
6 changes: 3 additions & 3 deletions pkg_resources/_vendor/jaraco/functools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import types
import warnings

import pkg_resources.extern.more_itertools
from pkg_resources._vendor import more_itertools


def compose(*funcs):
Expand Down Expand Up @@ -603,10 +603,10 @@ def splat(func):
simple ``map``.
>>> pairs = [(-1, 1), (0, 2)]
>>> pkg_resources.extern.more_itertools.consume(itertools.starmap(print, pairs))
>>> more_itertools.consume(itertools.starmap(print, pairs))
-1 1
0 2
>>> pkg_resources.extern.more_itertools.consume(map(splat(print), pairs))
>>> more_itertools.consume(map(splat(print), pairs))
-1 1
0 2
Expand Down
6 changes: 3 additions & 3 deletions pkg_resources/_vendor/jaraco/text/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
try:
from importlib.resources import files # type: ignore
except ImportError: # pragma: nocover
from pkg_resources.extern.importlib_resources import files # type: ignore
from pkg_resources._vendor.importlib_resources import files # type: ignore

from pkg_resources.extern.jaraco.functools import compose, method_cache
from pkg_resources.extern.jaraco.context import ExceptionTrap
from pkg_resources._vendor.jaraco.functools import compose, method_cache
from pkg_resources._vendor.jaraco.context import ExceptionTrap


def substitution(old, new):
Expand Down
6 changes: 3 additions & 3 deletions pkg_resources/_vendor/more_itertools-10.2.0.dist-info/RECORD
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ more_itertools-10.2.0.dist-info/RECORD,,
more_itertools-10.2.0.dist-info/WHEEL,sha256=rSgq_JpHF9fHR1lx53qwg_1-2LypZE_qmcuXbVUq948,81
more_itertools/__init__.py,sha256=VodgFyRJvpnHbAMgseYRiP7r928FFOAakmQrl6J88os,149
more_itertools/__init__.pyi,sha256=5B3eTzON1BBuOLob1vCflyEb2lSd6usXQQ-Cv-hXkeA,43
more_itertools/__pycache__/__init__.cpython-312.pyc,,
more_itertools/__pycache__/more.cpython-312.pyc,,
more_itertools/__pycache__/recipes.cpython-312.pyc,,
more_itertools/__pycache__/__init__.cpython-38.pyc,,
more_itertools/__pycache__/more.cpython-38.pyc,,
more_itertools/__pycache__/recipes.cpython-38.pyc,,
more_itertools/more.py,sha256=jYdpbgXHf8yZDByPrhluxpe0D_IXRk2tfQnyfOFMi74,143045
more_itertools/more.pyi,sha256=KTHYeqr0rFbn1GWRnv0jY64JRNnKKT0kA3kmsah8DYQ,21044
more_itertools/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
Expand Down
28 changes: 14 additions & 14 deletions pkg_resources/_vendor/packaging-24.0.dist-info/RECORD
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ packaging-24.0.dist-info/RECORD,,
packaging-24.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
packaging-24.0.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
packaging/__init__.py,sha256=UzotcV07p8vcJzd80S-W0srhgY8NMVD_XvJcZ7JN-tA,496
packaging/__pycache__/__init__.cpython-312.pyc,,
packaging/__pycache__/_elffile.cpython-312.pyc,,
packaging/__pycache__/_manylinux.cpython-312.pyc,,
packaging/__pycache__/_musllinux.cpython-312.pyc,,
packaging/__pycache__/_parser.cpython-312.pyc,,
packaging/__pycache__/_structures.cpython-312.pyc,,
packaging/__pycache__/_tokenizer.cpython-312.pyc,,
packaging/__pycache__/markers.cpython-312.pyc,,
packaging/__pycache__/metadata.cpython-312.pyc,,
packaging/__pycache__/requirements.cpython-312.pyc,,
packaging/__pycache__/specifiers.cpython-312.pyc,,
packaging/__pycache__/tags.cpython-312.pyc,,
packaging/__pycache__/utils.cpython-312.pyc,,
packaging/__pycache__/version.cpython-312.pyc,,
packaging/__pycache__/__init__.cpython-38.pyc,,
packaging/__pycache__/_elffile.cpython-38.pyc,,
packaging/__pycache__/_manylinux.cpython-38.pyc,,
packaging/__pycache__/_musllinux.cpython-38.pyc,,
packaging/__pycache__/_parser.cpython-38.pyc,,
packaging/__pycache__/_structures.cpython-38.pyc,,
packaging/__pycache__/_tokenizer.cpython-38.pyc,,
packaging/__pycache__/markers.cpython-38.pyc,,
packaging/__pycache__/metadata.cpython-38.pyc,,
packaging/__pycache__/requirements.cpython-38.pyc,,
packaging/__pycache__/specifiers.cpython-38.pyc,,
packaging/__pycache__/tags.cpython-38.pyc,,
packaging/__pycache__/utils.cpython-38.pyc,,
packaging/__pycache__/version.cpython-38.pyc,,
packaging/_elffile.py,sha256=hbmK8OD6Z7fY6hwinHEUcD1by7czkGiNYu7ShnFEk2k,3266
packaging/_manylinux.py,sha256=1ng_TqyH49hY6s3W_zVHyoJIaogbJqbIF1jJ0fAehc4,9590
packaging/_musllinux.py,sha256=kgmBGLFybpy8609-KTvzmt2zChCPWYvhp5BWP4JX7dE,2676
Expand Down
4 changes: 2 additions & 2 deletions pkg_resources/_vendor/packaging/specifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"""
.. testsetup::
from packaging.specifiers import Specifier, SpecifierSet, InvalidSpecifier
from packaging.version import Version
from pkg_resources._vendor.packaging.specifiers import Specifier, SpecifierSet, InvalidSpecifier
from pkg_resources._vendor.packaging.version import Version
"""

import abc
Expand Down
2 changes: 1 addition & 1 deletion pkg_resources/_vendor/packaging/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
.. testsetup::
from packaging.version import parse, Version
from pkg_resources._vendor.packaging.version import parse, Version
"""

import itertools
Expand Down
16 changes: 8 additions & 8 deletions pkg_resources/_vendor/platformdirs-2.6.2.dist-info/RECORD
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ platformdirs-2.6.2.dist-info/WHEEL,sha256=NaLmgHHW_f9jTvv_wRh9vcK7c7EK9o5fwsIXMO
platformdirs-2.6.2.dist-info/licenses/LICENSE,sha256=KeD9YukphQ6G6yjD_czwzv30-pSHkBHP-z0NS-1tTbY,1089
platformdirs/__init__.py,sha256=td0a-fHENmnG8ess2WRoysKv9ud5j6TQ-p_iUM_uE18,12864
platformdirs/__main__.py,sha256=VsC0t5m-6f0YVr96PVks93G3EDF8MSNY4KpUMvPahDA,1164
platformdirs/__pycache__/__init__.cpython-312.pyc,,
platformdirs/__pycache__/__main__.cpython-312.pyc,,
platformdirs/__pycache__/android.cpython-312.pyc,,
platformdirs/__pycache__/api.cpython-312.pyc,,
platformdirs/__pycache__/macos.cpython-312.pyc,,
platformdirs/__pycache__/unix.cpython-312.pyc,,
platformdirs/__pycache__/version.cpython-312.pyc,,
platformdirs/__pycache__/windows.cpython-312.pyc,,
platformdirs/__pycache__/__init__.cpython-38.pyc,,
platformdirs/__pycache__/__main__.cpython-38.pyc,,
platformdirs/__pycache__/android.cpython-38.pyc,,
platformdirs/__pycache__/api.cpython-38.pyc,,
platformdirs/__pycache__/macos.cpython-38.pyc,,
platformdirs/__pycache__/unix.cpython-38.pyc,,
platformdirs/__pycache__/version.cpython-38.pyc,,
platformdirs/__pycache__/windows.cpython-38.pyc,,
platformdirs/android.py,sha256=GKizhyS7ESRiU67u8UnBJLm46goau9937EchXWbPBlk,4068
platformdirs/api.py,sha256=MXKHXOL3eh_-trSok-JUTjAR_zjmmKF3rjREVABjP8s,4910
platformdirs/macos.py,sha256=-3UXQewbT0yMhMdkzRXfXGAntmLIH7Qt4a9Hlf8I5_Y,2655
Expand Down
12 changes: 6 additions & 6 deletions pkg_resources/_vendor/platformdirs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
if sys.version_info >= (3, 8): # pragma: no cover (py38+)
from typing import Literal
else: # pragma: no cover (py38+)
from ..typing_extensions import Literal
from typing_extensions import Literal

from .api import PlatformDirsABC
from .version import __version__
Expand All @@ -20,21 +20,21 @@

def _set_platform_dir_class() -> type[PlatformDirsABC]:
if sys.platform == "win32":
from .windows import Windows as Result
from pkg_resources._vendor.platformdirs.windows import Windows as Result
elif sys.platform == "darwin":
from .macos import MacOS as Result
from pkg_resources._vendor.platformdirs.macos import MacOS as Result
else:
from .unix import Unix as Result
from pkg_resources._vendor.platformdirs.unix import Unix as Result

if os.getenv("ANDROID_DATA") == "/data" and os.getenv("ANDROID_ROOT") == "/system":

if os.getenv("SHELL") or os.getenv("PREFIX"):
return Result

from .android import _android_folder
from pkg_resources._vendor.platformdirs.android import _android_folder

if _android_folder() is not None:
from .android import Android
from pkg_resources._vendor.platformdirs.android import Android

return Android # return to avoid redefinition of result

Expand Down
2 changes: 1 addition & 1 deletion pkg_resources/_vendor/platformdirs/__main__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

from platformdirs import PlatformDirs, __version__
from pkg_resources._vendor.platformdirs import PlatformDirs, __version__

PROPS = (
"user_data_dir",
Expand Down
Loading

0 comments on commit 5d44045

Please sign in to comment.