diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 0a72463..314a588 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -19,7 +19,7 @@ jobs: strategy: matrix: os: [Ubuntu, macOS, Windows] - python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] include: - os: Ubuntu image: ubuntu-latest diff --git a/poetry.lock b/poetry.lock index 3bba934..a47767d 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 2.2.0 and should not be changed by hand. +# This file is automatically @generated by Poetry 2.2.1 and should not be changed by hand. [[package]] name = "anyio" @@ -560,7 +560,7 @@ description = "Backport of PEP 654 (exception groups)" optional = false python-versions = ">=3.7" groups = ["main", "dev", "github-actions"] -markers = "python_version < \"3.11\"" +markers = "python_version == \"3.10\"" files = [ {file = "exceptiongroup-1.3.0-py3-none-any.whl", hash = "sha256:4d111e6e0c13d0644cad6ddaa7ed0261a0b36971f6d23e7ec9b4b9097da78a10"}, {file = "exceptiongroup-1.3.0.tar.gz", hash = "sha256:b241f5885f560bc56a59ee63ca4c6a8bfa46ae4ad651af316d4e81817bb9fd88"}, @@ -725,12 +725,12 @@ version = "8.7.0" description = "Read metadata from Python packages" optional = false python-versions = ">=3.9" -groups = ["main", "dev"] +groups = ["main"] +markers = "python_version < \"3.12\"" files = [ {file = "importlib_metadata-8.7.0-py3-none-any.whl", hash = "sha256:e5dd1551894c77868a30651cef00984d50e1002d06942a7101d34870c5f02afd"}, {file = "importlib_metadata-8.7.0.tar.gz", hash = "sha256:d13b81ad223b890aa16c5471f2ac3056cf76c5f10f82d6f9292f0b415f389000"}, ] -markers = {main = "python_version < \"3.12\"", dev = "python_version == \"3.9\""} [package.dependencies] zipp = ">=3.20" @@ -1154,7 +1154,6 @@ cleo = ">=2.1.0,<3.0.0" dulwich = ">=0.24.0,<0.25.0" fastjsonschema = ">=2.18.0,<3.0.0" findpython = ">=0.6.2,<0.8.0" -importlib-metadata = {version = ">=4.4", markers = "python_version < \"3.10\""} installer = ">=0.7.0,<0.8.0" keyring = ">=25.1.0,<26.0.0" packaging = ">=24.2" @@ -1357,7 +1356,6 @@ files = [ ] [package.dependencies] -importlib-metadata = {version = ">=3.6", markers = "python_version < \"3.10\""} pytest = "*" [[package]] @@ -1684,7 +1682,7 @@ files = [ {file = "tomli-2.2.1-py3-none-any.whl", hash = "sha256:cb55c73c5f4408779d0cf3eef9f762b9c9f147a77de7b258bef0a5628adc85cc"}, {file = "tomli-2.2.1.tar.gz", hash = "sha256:cd45e1dc79c835ce60f7404ec8119f2eb06d38b1deba146f07ced3bbc44505ff"}, ] -markers = {main = "python_version < \"3.11\"", dev = "python_full_version <= \"3.11.0a6\"", github-actions = "python_version < \"3.11\""} +markers = {main = "python_version == \"3.10\"", dev = "python_full_version <= \"3.11.0a6\"", github-actions = "python_version == \"3.10\""} [[package]] name = "tomlkit" @@ -1721,7 +1719,7 @@ files = [ {file = "typing_extensions-4.15.0-py3-none-any.whl", hash = "sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548"}, {file = "typing_extensions-4.15.0.tar.gz", hash = "sha256:0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466"}, ] -markers = {main = "python_version < \"3.13\"", github-actions = "python_version < \"3.11\""} +markers = {main = "python_version < \"3.13\"", github-actions = "python_version == \"3.10\""} [[package]] name = "urllib3" @@ -1856,12 +1854,12 @@ version = "3.23.0" description = "Backport of pathlib-compatible object wrapper for zip files" optional = false python-versions = ">=3.9" -groups = ["main", "dev"] +groups = ["main"] +markers = "python_version < \"3.12\"" files = [ {file = "zipp-3.23.0-py3-none-any.whl", hash = "sha256:071652d6115ed432f5ce1d34c336c0adfd6a884660d1e9712a256d3d3bd4b14e"}, {file = "zipp-3.23.0.tar.gz", hash = "sha256:a07157588a12518c9d4034df3fbbee09c814741a33ff63c05fa29d26a2404166"}, ] -markers = {main = "python_version < \"3.12\"", dev = "python_version == \"3.9\""} [package.extras] check = ["pytest-checkdocs (>=2.4)", "pytest-ruff (>=0.2.1) ; sys_platform != \"cygwin\""] @@ -1985,5 +1983,5 @@ cffi = ["cffi (>=1.17) ; python_version >= \"3.13\" and platform_python_implemen [metadata] lock-version = "2.1" -python-versions = ">=3.9,<4.0" -content-hash = "7ed0a61392c3551c14e46b38d2674844ff0ef55b50af2639d284f99285e3e156" +python-versions = ">=3.10,<4.0" +content-hash = "9d3737621fb95fb1048deaf04626cbf1b731d899a527e1b8fe650b376cd100e8" diff --git a/pyproject.toml b/pyproject.toml index fbf556f..113f4b9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ description = "Poetry plugin to export the dependencies to various formats" authors = [{ name = "Sébastien Eustace", email = "sebastien@eustace.io" }] license = "MIT" readme = "README.md" -requires-python = ">=3.9,<4.0" +requires-python = ">=3.10,<4.0" dependencies = [ "poetry>=2.1.0,<3.0.0", "poetry-core>=2.1.0,<3.0.0", @@ -45,7 +45,6 @@ pytest-github-actions-annotate-failures = "^0.1.7" [tool.ruff] fix = true -target-version = "py39" line-length = 88 extend-exclude = [ "docs/*", diff --git a/src/poetry_plugin_export/__init__.py b/src/poetry_plugin_export/__init__.py index 3616e40..6b66c2c 100644 --- a/src/poetry_plugin_export/__init__.py +++ b/src/poetry_plugin_export/__init__.py @@ -1,6 +1,6 @@ from __future__ import annotations -from poetry.utils._compat import metadata +from importlib import metadata __version__ = metadata.version("poetry-plugin-export") # type: ignore[no-untyped-call]