diff --git a/pyproject.toml b/pyproject.toml index 486c70f..b573b8e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,30 +17,29 @@ authors = [ { name = "holger krekel" }, ] requires-python = ">=3.7" +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Operating System :: MacOS :: MacOS X", + "Operating System :: Microsoft :: Windows", + "Operating System :: POSIX", + "Programming Language :: Python", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: Implementation :: CPython", + "Topic :: Software Development :: Libraries", +] dynamic = [ "version", ] -classifiers = [ - "Development Status :: 4 - Beta", - "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", - "Operating System :: MacOS :: MacOS X", - "Operating System :: Microsoft :: Windows", - "Operating System :: POSIX", - "Programming Language :: Python", - "Programming Language :: Python :: Implementation :: CPython", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Topic :: Software Development :: Libraries", -] [project.urls] Homepage = "https://github.com/pytest-dev/apipkg" - [tool.hatch.version] source = "vcs" @@ -63,5 +62,6 @@ python = ["3.7", "3.8", "3.9", "3.10", "3.11"] [tool.hatch.envs.test.scripts] run-coverage = "pytest --cov-config=pyproject.toml --cov=pkg --cov=tests {args}" run = "run-coverage --no-cov {args}" + [mypy] python_version = "3.7" diff --git a/src/apipkg/_alias_module.py b/src/apipkg/_alias_module.py index a6f219a..91efda2 100644 --- a/src/apipkg/_alias_module.py +++ b/src/apipkg/_alias_module.py @@ -6,7 +6,6 @@ def AliasModule(modname: str, modpath: str, attrname: str | None = None) -> ModuleType: - cached_obj: object | None = None def getmod() -> object: diff --git a/test_apipkg.py b/test_apipkg.py index 5100e8c..4080b90 100644 --- a/test_apipkg.py +++ b/test_apipkg.py @@ -869,7 +869,6 @@ def test_importlib_find_spec_aliasmodule(find_spec): def test_importlib_find_spec_initpkg(find_spec, tmpdir, monkeypatch): - modname = "apipkg_test_example_initpkg_findspec" pkgdir = tmpdir.mkdir("apipkg_test_example_initpkg_findspec")