From a31dfc47c358a7a64b976ff8d5f8b2520419aada Mon Sep 17 00:00:00 2001 From: Ellis Valentiner Date: Wed, 28 Aug 2024 13:50:06 -0400 Subject: [PATCH] chore: pkg_resources is deprecated --- rdflib_sqlalchemy/__init__.py | 5 ++--- setup.py | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rdflib_sqlalchemy/__init__.py b/rdflib_sqlalchemy/__init__.py index c2aedd6..fdbaf75 100644 --- a/rdflib_sqlalchemy/__init__.py +++ b/rdflib_sqlalchemy/__init__.py @@ -1,10 +1,9 @@ # -*- coding: utf-8 -*- """SQLAlchemy Store plugin for RDFLib.""" import logging -from pkg_resources import get_distribution +from importlib_metadata import version - -__version__ = get_distribution("rdflib_sqlalchemy").version +__version__ = version("rdflib_sqlalchemy") class NullHandler(logging.Handler): diff --git a/setup.py b/setup.py index caea05b..5698224 100644 --- a/setup.py +++ b/setup.py @@ -47,6 +47,7 @@ "rdflib>=6,<8", "six>=1.10.0", "SQLAlchemy>=2.0.23", + "importlib-metadata~=8.4.0; python_version<'3.8'", ], entry_points={ 'rdf.plugins.store': [