From 1c67122a4f353c287d6a0a9ca9e55dd16cb13a2f Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Fri, 5 Apr 2024 00:40:24 +0100 Subject: [PATCH] feat: migrate to python 3.12 --- .gitignore | 2 ++ antur/__init__.py | 4 ++-- poetry.lock | 4 ++-- pyproject.toml | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 68bc17f..55212b5 100644 --- a/.gitignore +++ b/.gitignore @@ -158,3 +158,5 @@ cython_debug/ # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ + +.python-version diff --git a/antur/__init__.py b/antur/__init__.py index 97c90df..d212af7 100644 --- a/antur/__init__.py +++ b/antur/__init__.py @@ -1,5 +1,5 @@ """Init file for antur package.""" -import pkg_resources +from importlib.metadata import version -__version__ = pkg_resources.get_distribution("antur").version +__version__ = version("antur") diff --git a/poetry.lock b/poetry.lock index 0873f99..683c973 100644 --- a/poetry.lock +++ b/poetry.lock @@ -901,5 +901,5 @@ multidict = ">=4.0" [metadata] lock-version = "2.0" -python-versions = "^3.11" -content-hash = "85e5639207930eebb4c2ff36e26ff4954c287e4cf90f1e960ee596b0c1f8c875" +python-versions = "^3.12" +content-hash = "0f4d2f357e2cc86d854a0e7f9adb640b6570047ba82525e40757b4984a59cade" diff --git a/pyproject.toml b/pyproject.toml index 5be56a3..552a600 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,7 +20,7 @@ classifiers = [ ] [tool.poetry.dependencies] -python = "^3.11" +python = "^3.12" textual = "^0.55.1" aiohttp = "^3.9.3" humanize = "^4.9.0"