Skip to content

Commit b4af403

Browse files
committed
fix c&p error from poetry dev advice
1 parent 77ad3f7 commit b4af403

File tree

3 files changed

+10
-74
lines changed

3 files changed

+10
-74
lines changed

hough/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from importlib import metadata
22

3-
import toml
3+
import tomllib
44

55
from .utils import (
66
CommonArgs,
@@ -21,7 +21,8 @@
2121
try:
2222
__version__ = metadata.version(__package__)
2323
except metadata.PackageNotFoundError: # pragma: no cover
24-
__version__ = toml.load("pyproject.toml")["tool"]["poetry"]["version"] + "dev"
24+
with open("pyproject.toml", "rb") as f:
25+
__version__ = tomllib.load(f)["tool"]["poetry"]["version"] + "dev"
2526

2627
__all__ = [
2728
"CommonArgs",

poetry.lock

Lines changed: 5 additions & 70 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
[tool.poetry]
3030
name = "hough"
31-
version = "0.3.0"
31+
version = "0.3.1"
3232
description = "Skew detection and correction in scanned images."
3333
authors = ["Joan Touzet <wohali@apache.org>", "qu1j0t3 <support@telegraphics.com.au>"]
3434
maintainers = ["Joan Touzet <wohali@apache.org>"]
@@ -57,7 +57,7 @@ packages = [
5757

5858
[project]
5959
name = "hough"
60-
requires-python = ">=3.10,<4.0"
60+
requires-python = ">=3.11,<4.0"
6161
dependencies = [
6262
"docopt-ng>=0.9.0",
6363
"imageio>=2.37.0",

0 commit comments

Comments
 (0)