Skip to content
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
6 changes: 3 additions & 3 deletions importlib_metadata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
from ._itertools import always_iterable, bucket, unique_everseen
from ._meta import PackageMetadata, SimplePath
from ._typing import md_none
from .compat import py39, py311
from .compat import py311

__all__ = [
'Distribution',
Expand Down Expand Up @@ -340,7 +340,7 @@ def select(self, **params) -> EntryPoints:
Select entry points from self that match the
given parameters (typically group and/or name).
"""
return EntryPoints(ep for ep in self if py39.ep_matches(ep, **params))
return EntryPoints(ep for ep in self if ep.matches(**params))

@property
def names(self) -> set[str]:
Expand Down Expand Up @@ -1088,7 +1088,7 @@ def version(distribution_name: str) -> str:

_unique = functools.partial(
unique_everseen,
key=py39.normalized_name,
key=operator.attrgetter('_normalized_name'),
)
"""
Wrapper for ``distributions`` to return unique distributions by name.
Expand Down
42 changes: 0 additions & 42 deletions importlib_metadata/compat/py39.py

This file was deleted.

3 changes: 1 addition & 2 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,5 @@ ignore_missing_imports = True
[mypy-zipp.*]
ignore_missing_imports = True

# jaraco/jaraco.test#7
[mypy-jaraco.test.*]
[mypy-test.support.*]
ignore_missing_imports = True
1 change: 1 addition & 0 deletions newsfragments/+530.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Removed Python 3.9 compatibility.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ test = [
"packaging",
"pyfakefs",
"pytest-perf >= 0.9.2",
"jaraco.test >= 5.4",
]

doc = [
Expand Down
2 changes: 1 addition & 1 deletion tests/compat/py312.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import contextlib

from .py39 import import_helper
from test.support import import_helper


@contextlib.contextmanager
Expand Down
8 changes: 0 additions & 8 deletions tests/compat/py39.py

This file was deleted.

74 changes: 0 additions & 74 deletions tests/compat/test_py39_compat.py

This file was deleted.

3 changes: 2 additions & 1 deletion tests/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
import textwrap
from importlib import resources

from test.support import os_helper

from . import _path
from ._path import FilesSpec
from .compat.py39 import os_helper
from .compat.py312 import import_helper


Expand Down
2 changes: 1 addition & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import unittest

import pyfakefs.fake_filesystem_unittest as ffs
from test.support import os_helper

import importlib_metadata
from importlib_metadata import (
Expand All @@ -20,7 +21,6 @@

from . import fixtures
from ._path import Symlink
from .compat.py39 import os_helper


class BasicTests(fixtures.DistInfoPkg, unittest.TestCase):
Expand Down
Loading