...
 
Commits (6)
    https://gitcode.net/awesome-mirrors/pypa/pip/-/commit/8295c9941b6516ccaaba9c91af025cb2e373dba0 Deprecate .egg in the imporlib-metadata backend 2023-04-24T12:44:05-06:00 Tzu-ping Chung uranusjr@gmail.com This provides us a path to remove all pkg_resources usages on Python 3.11 or later, and thus avoid the problem that pkg_resources uses Python API deprecated in 3.12. https://gitcode.net/awesome-mirrors/pypa/pip/-/commit/9fa64244522a237725e95e36eaedcef4ac25e87c Remove the no-response workflow (#12102) 2023-06-25T12:06:02+01:00 Pradyun Gedam pradyunsg@gmail.com https://gitcode.net/awesome-mirrors/pypa/pip/-/commit/9f72cd02690502bc82b70ad1a7a17ca72a5b7e73 Merge pull request #11996 from uranusjr/deprecate-egg-importlib-metadata 2023-06-26T15:01:43+08:00 Tzu-ping Chung uranusjr@gmail.com https://gitcode.net/awesome-mirrors/pypa/pip/-/commit/108c055f727e91b366b3f12854d1dccc39195d2d Revert "xfail test_pip_wheel_ext_module_with_tmpdir_inside" 2023-06-27T15:10:38+02:00 Stéphane Bidoul stephane.bidoul@gmail.com This reverts commit fab519dfd936def55ed019a0da18d0d77509fb95. https://gitcode.net/awesome-mirrors/pypa/pip/-/commit/fab8cf7479f573a9284ae4c9a85f776c951c6656 Remove Unused "type: ignore" comments 2023-06-27T15:49:40+02:00 Stéphane Bidoul stephane.bidoul@gmail.com https://gitcode.net/awesome-mirrors/pypa/pip/-/commit/98814e5050d21dccd8f2572ab0c2e5c6e79473d7 Merge pull request #12109 from sbidoul/macos-xpass-sbi 2023-06-27T16:41:45+02:00 Stéphane Bidoul stephane.bidoul@gmail.com Revert "xfail test_pip_wheel_ext_module_with_tmpdir_inside"
name: No Response
# Both `issue_comment` and `scheduled` event types are required for this Action
# to work properly.
on:
issue_comment:
types: [created]
schedule:
# Schedule for five minutes after the hour, every hour
- cron: '5 * * * *'
jobs:
noResponse:
runs-on: ubuntu-latest
steps:
- uses: lee-dohm/no-response@v0.5.0
with:
token: ${{ github.token }}
responseRequiredLabel: "S: awaiting response"
Deprecate support for eggs for Python 3.11 or later, when the new ``importlib.metadata`` backend is used to load distribution metadata. This only affects the egg *distribution format* (with the ``.egg`` extension); distributions using the ``.egg-info`` *metadata format* (but are not actually eggs) are not affected. For more information about eggs, see `relevant section in the setuptools documentation <https://setuptools.pypa.io/en/stable/deprecated/python_eggs.html>`__.
......@@ -151,7 +151,7 @@ def _emit_egg_deprecation(location: Optional[str]) -> None:
deprecated(
reason=f"Loading egg at {location} is deprecated.",
replacement="to use pip for package installation.",
gone_in=None,
gone_in="23.3",
)
......@@ -174,7 +174,7 @@ class Environment(BaseEnvironment):
for location in self._paths:
yield from finder.find(location)
for dist in finder.find_eggs(location):
# _emit_egg_deprecation(dist.location) # TODO: Enable this.
_emit_egg_deprecation(dist.location)
yield dist
# This must go last because that's how pkg_resources tie-breaks.
yield from finder.find_linked(location)
......
......@@ -343,15 +343,6 @@ def test_pip_wheel_with_user_set_in_config(
sys.platform.startswith("win"),
reason="The empty extension module does not work on Win",
)
@pytest.mark.xfail(
condition=sys.platform == "darwin" and sys.version_info < (3, 9),
reason=(
"Unexplained 'no module named platform' in "
"https://github.com/pypa/wheel/blob"
"/c87e6ed82b58b41b258a3e8c852af8bc1817bb00"
"/src/wheel/vendored/packaging/tags.py#L396-L411"
),
)
def test_pip_wheel_ext_module_with_tmpdir_inside(
script: PipTestEnvironment, data: TestData, common_wheels: Path
) -> None:
......
......@@ -193,7 +193,7 @@ def test_keyring_get_password(
expect: Tuple[Optional[str], Optional[str]],
) -> None:
keyring = KeyringModuleV1()
monkeypatch.setitem(sys.modules, "keyring", keyring) # type: ignore[misc]
monkeypatch.setitem(sys.modules, "keyring", keyring)
auth = MultiDomainBasicAuth(
index_urls=["http://example.com/path2", "http://example.com/path3"],
keyring_provider="import",
......@@ -205,7 +205,7 @@ def test_keyring_get_password(
def test_keyring_get_password_after_prompt(monkeypatch: pytest.MonkeyPatch) -> None:
keyring = KeyringModuleV1()
monkeypatch.setitem(sys.modules, "keyring", keyring) # type: ignore[misc]
monkeypatch.setitem(sys.modules, "keyring", keyring)
auth = MultiDomainBasicAuth(keyring_provider="import")
def ask_input(prompt: str) -> str:
......@@ -221,7 +221,7 @@ def test_keyring_get_password_after_prompt_when_none(
monkeypatch: pytest.MonkeyPatch,
) -> None:
keyring = KeyringModuleV1()
monkeypatch.setitem(sys.modules, "keyring", keyring) # type: ignore[misc]
monkeypatch.setitem(sys.modules, "keyring", keyring)
auth = MultiDomainBasicAuth(keyring_provider="import")
def ask_input(prompt: str) -> str:
......@@ -242,7 +242,7 @@ def test_keyring_get_password_username_in_index(
monkeypatch: pytest.MonkeyPatch,
) -> None:
keyring = KeyringModuleV1()
monkeypatch.setitem(sys.modules, "keyring", keyring) # type: ignore[misc]
monkeypatch.setitem(sys.modules, "keyring", keyring)
auth = MultiDomainBasicAuth(
index_urls=["http://user@example.com/path2", "http://example.com/path4"],
keyring_provider="import",
......@@ -278,7 +278,7 @@ def test_keyring_set_password(
expect_save: bool,
) -> None:
keyring = KeyringModuleV1()
monkeypatch.setitem(sys.modules, "keyring", keyring) # type: ignore[misc]
monkeypatch.setitem(sys.modules, "keyring", keyring)
auth = MultiDomainBasicAuth(prompting=True, keyring_provider="import")
monkeypatch.setattr(auth, "_get_url_and_credentials", lambda u: (u, None, None))
monkeypatch.setattr(auth, "_prompt_for_password", lambda *a: creds)
......@@ -354,7 +354,7 @@ class KeyringModuleV2:
def test_keyring_get_credential(
monkeypatch: pytest.MonkeyPatch, url: str, expect: str
) -> None:
monkeypatch.setitem(sys.modules, "keyring", KeyringModuleV2()) # type: ignore[misc]
monkeypatch.setitem(sys.modules, "keyring", KeyringModuleV2())
auth = MultiDomainBasicAuth(
index_urls=["http://example.com/path1", "http://example.com/path2"],
keyring_provider="import",
......@@ -378,7 +378,7 @@ class KeyringModuleBroken:
def test_broken_keyring_disables_keyring(monkeypatch: pytest.MonkeyPatch) -> None:
keyring_broken = KeyringModuleBroken()
monkeypatch.setitem(sys.modules, "keyring", keyring_broken) # type: ignore[misc]
monkeypatch.setitem(sys.modules, "keyring", keyring_broken)
auth = MultiDomainBasicAuth(
index_urls=["http://example.com/"], keyring_provider="import"
......