From e1204e68f14ae458596c7fcb8341ac42728f777c Mon Sep 17 00:00:00 2001 From: Sergey Motornyuk Date: Thu, 17 Oct 2024 17:42:14 +0300 Subject: [PATCH] chore: switch ot pyproject.toml --- pyproject.toml | 43 +++++++++++++++++++++++++++++++++++++++++++ setup.cfg | 48 ------------------------------------------------ 2 files changed, 43 insertions(+), 48 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e25e9ab..4a93108 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,46 @@ +[build-system] +requires = [ "setuptools",] +build-backend = "setuptools.build_meta" + +[project] +name = "ckanext-fdt-sqlalchemy" +version = "0.0.2.post1" +description = "Enable SQLAlchemy pane of Flask-DebugToolbar" +classifiers = [ "Development Status :: 4 - Beta", "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10",] +keywords = [ "CKAN SQL debug",] +dependencies = [] +authors = [ + {name = "DataShades", email = "datashades@linkdigital.com.au"}, + {name = "Sergey Motornyuk", email = "sergey.motornyuk@linkdigital.com.au"}, +] +maintainers = [ + {name = "DataShades", email = "datashades@linkdigital.com.au"}, +] + +[project.readme] +file = "README.md" +content-type = "text/markdown" + +[project.license] +text = "AGPL" + +[project.urls] +Homepage = "https://github.com/ckan/ckanext-fdt-sqlalchemy" + +[project.optional-dependencies] +deps = [ "flask-sqlalchemy~=2.5",] +test = [ "pytest-ckan",] +dev = [ "flask-sqlalchemy~=2.5", "pytest-ckan",] + +[project.entry-points."ckan.plugins"] +fdt_sqlalchemy = "ckanext.fdt_sqlalchemy.plugin:FdtSqlalchemyPlugin" + +[project.entry-points."babel.extractors"] +ckan = "ckan.lib.extract:extract_ckan" + +[tool.setuptools.packages] +find = {} + [tool.black] # line-length = 88 # preview = true diff --git a/setup.cfg b/setup.cfg index f16f62b..8597013 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,44 +1,3 @@ -[metadata] -name = ckanext-fdt-sqlalchemy -version = 0.0.2 -description = Enable SQLAlchemy pane of Flask-DebugToolbar -long_description = file: README.md -long_description_content_type = text/markdown -url = https://github.com/ckan/ckanext-fdt-sqlalchemy -author = Sergey Motornyuk -author_email = sergey.motornyuk@linkdigital.com.au -license = AGPL -classifiers = - Development Status :: 4 - Beta - License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+) - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Programming Language :: Python :: 3.10 -keywords = CKAN SQL debug - -[options] -packages = find: -namespace_packages = ckanext -install_requires = -include_package_data = True - -[options.entry_points] -ckan.plugins = - fdt_sqlalchemy = ckanext.fdt_sqlalchemy.plugin:FdtSqlalchemyPlugin - -babel.extractors = - ckan = ckan.lib.extract:extract_ckan - -[options.extras_require] -deps = - flask-sqlalchemy~=2.5 -test = - pytest-ckan - -dev = - %(deps)s - %(test)s - [extract_messages] keywords = translate isPlural add_comments = TRANSLATORS: @@ -60,10 +19,3 @@ previous = true domain = ckanext-fdt_sqlalchemy directory = ckanext/fdt_sqlalchemy/i18n statistics = true - -[tool:pytest] -filterwarnings = - ignore::sqlalchemy.exc.SADeprecationWarning - ignore::sqlalchemy.exc.SAWarning - ignore::DeprecationWarning -addopts = --ckan-ini test.ini