1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -31,7 +31,6 @@
"python-gitlab >= 4.0.0, < 7.0.0",
"tomlkit ~= 0.11",
"dotty-dict ~= 1.3",
- "importlib-resources ~= 6.0",
"pydantic ~= 2.0",
"rich ~= 14.0",
"shellingham ~= 1.5",
--- a/src/semantic_release/cli/changelog_writer.py
+++ b/src/semantic_release/cli/changelog_writer.py
@@ -5,8 +5,7 @@
from pathlib import Path
from typing import TYPE_CHECKING
-# NOTE: use backport with newer API than stdlib
-from importlib_resources import files
+from importlib.resources import files
import semantic_release
from semantic_release.changelog.context import (
--- a/tests/fixtures/example_project.py
+++ b/tests/fixtures/example_project.py
@@ -8,8 +8,7 @@
import pytest
import tomlkit
-# NOTE: use backport with newer API
-from importlib_resources import files
+from importlib.resources import files
import semantic_release
from semantic_release.commit_parser import (
--- a/tests/unit/semantic_release/changelog/test_default_changelog.py
+++ b/tests/unit/semantic_release/changelog/test_default_changelog.py
@@ -5,8 +5,7 @@
import pytest
-# NOTE: use backport with newer API
-from importlib_resources import files
+from importlib.resources import files
import semantic_release
from semantic_release.changelog.context import ChangelogMode, make_changelog_context
--- a/tests/unit/semantic_release/changelog/test_release_notes.py
+++ b/tests/unit/semantic_release/changelog/test_release_notes.py
@@ -8,8 +8,7 @@
import pytest
-# NOTE: use backport with newer API to support 3.7
-from importlib_resources import files
+from importlib.resources import files
import semantic_release
from semantic_release.cli.changelog_writer import generate_release_notes
|