Skip to content

Commit f0fdf10

Browse files
committed
minor: bump version
Checking the PR, seems like I didn't make any breaking changes, so 2.0 should be mostly compatable? New features in LazyIO make this a feature and not a fix
1 parent 1daf5e6 commit f0fdf10

7 files changed

Lines changed: 14 additions & 7 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Relic Tool - Core
22
[![PyPI](https://img.shields.io/pypi/v/relic-tool-core)](https://pypi.org/project/relic-tool-core/)
3-
[![PyPI - Python Version](https://img.shields.io/pypi/v/relic-tool-core)](https://www.python.org/downloads/)
3+
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/relic-tool-core)](https://www.python.org/downloads/)
44
[![PyPI - License](https://img.shields.io/pypi/l/relic-tool-core)](https://github.com/MAK-Relic-Tool/Relic-Tool-Core/blob/main/LICENSE.txt)
55
[![linting: pylint](https://img.shields.io/badge/linting-pylint-yellowgreen)](https://github.com/PyCQA/pylint)
66
[![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/)

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ classifiers = [
1010
"Programming Language :: Python :: 3.10",
1111
"Programming Language :: Python :: 3.11",
1212
"Programming Language :: Python :: 3.12",
13+
"Programming Language :: Python :: 3.13",
14+
"Typing :: Typed",
1315
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
1416
]
1517
dependencies = [
1618
"typing-extensions; python_version < '3.12'",
17-
"importlib_metadata >= 6.5"
19+
"importlib_metadata >= 6.5; python_version < '3.12'"
1820
]
1921
description = "The core library used by other Relic-Tool packages."
2022
dynamic = ["version"]

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
importlib-metadata>=6.5
1+
importlib-metadata>=6.5; python_version < '3.12'
22
typing-extensions; python_version < '3.12'

src/relic/core/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Core files shared between other Relic-Tool packages.
33
"""
44

5-
__version__ = "2.0.0"
5+
__version__ = "2.1.0"
66

77
from relic.core.cli import CLI
88

src/relic/core/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import sys
88
from argparse import ArgumentParser, Namespace, ArgumentError, Action
99
from gettext import gettext
10-
from importlib_metadata import entry_points
1110
from os.path import basename
1211
from typing import (
1312
Optional,
@@ -20,6 +19,7 @@
2019
)
2120

2221
from relic.core.errors import UnboundCommandError
22+
from relic.core.typeshed import entry_points
2323

2424

2525
class RelicArgParserError(Exception):

src/relic/core/entrytools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from __future__ import annotations
66

7-
from importlib_metadata import entry_points
87
from typing import (
98
TypeVar,
109
Protocol,
@@ -16,6 +15,7 @@
1615
)
1716

1817
from relic.core.errors import RelicToolError
18+
from relic.core.typeshed import entry_points
1919

2020
_TKey = TypeVar("_TKey") # pylint: disable=invalid-name
2121
_TKey_contra = TypeVar( # pylint: disable=invalid-name

src/relic/core/typeshed.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,9 @@
1616
except ImportError:
1717
from typing_extensions import Buffer
1818

19-
__all__ = ["TypeAlias", "Buffer"]
19+
try: # 3.12- (Use backport if found, otherwise assume stdlib meets minimum requirements)
20+
from importlib_metadata import entry_points
21+
except ImportError:
22+
from importlib.metadata import entry_points
23+
24+
__all__ = ["TypeAlias", "Buffer", "entry_points"]

0 commit comments

Comments
 (0)