From 861a18d27a0879aed0550fa19d3ab8daf7df501d Mon Sep 17 00:00:00 2001 From: mutantsan Date: Thu, 24 Oct 2024 15:21:49 +0300 Subject: [PATCH] migrate to pyproject.toml --- pyproject.toml | 55 +++++++++++++++++++++++++++++++++++++++++++++++++- setup.cfg | 49 -------------------------------------------- 2 files changed, 54 insertions(+), 50 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 30c5f20..cb5ee96 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,57 @@ +[build-system] +requires = ["setuptools>=61.2"] +build-backend = "setuptools.build_meta" + +[project] +name = "ckanext-transmute" +version = "2.0.0a0" +description = "Converts a dataset based on a specific schema" +authors = [ + {name = "DataShades", email = "datashades@linkdigital.com.au"}, + {name = "Oleksandr Cherniavskyi", email = "mutantsan@gmail.com"}, +] +maintainers = [ + {name = "DataShades", email = "datashades@linkdigital.com.au"}, +] +license = {text = "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", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", +] +keywords = [ + "CKAN", + "scheming", + "schema", +] +requires-python = ">= 3.8" +dependencies = [ + "ckanext-scheming", + "typing-extensions", +] + +[project.readme] +file = "README.md" +content-type = "text/markdown" + +[project.urls] +Homepage = "https://github.com/mutantsan/ckanext-transmute" + +[project.entry-points] +"babel.extractors" = {ckan = "ckan.lib.extract:extract_ckan"} + +[project.entry-points."ckan.plugins"] +transmute = "ckanext.transmute.plugin:TransmutePlugin" + +[tool.setuptools.packages] +find = {} + [tool.black] # line-length = 88 # preview = true @@ -91,4 +145,3 @@ reportUnsupportedDunderAll = true reportUnusedCoroutine = true reportUnnecessaryTypeIgnoreComment = true reportMatchNotExhaustive = true - diff --git a/setup.cfg b/setup.cfg index 923d924..2079475 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,44 +1,3 @@ -[metadata] -name = ckanext-transmute -version = 2.0.0a0 -description = Converts a dataset based on a specific schema -long_description = file: README.md -long_description_content_type = text/markdown -url = https://github.com/mutantsan/ckanext-transmute -author = Alexandr Cherniavskyi -author_email= mutantsan@gmail.com -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 - Programming Language :: Python :: 3.11 - Programming Language :: Python :: 3.12 - Programming Language :: Python :: 3.13 - Programming Language :: Python :: 3.14 -keywords = - CKAN - scheming - schema - -[options] -python_requires = >= 3.8 -packages = find: -namespace_packages = ckanext -install_requires = - ckanext-scheming - typing-extensions -include_package_data = True - -[options.entry_points] -ckan.plugins = - transmute = ckanext.transmute.plugin:TransmutePlugin - -babel.extractors = - ckan = ckan.lib.extract:extract_ckan - [extract_messages] keywords = translate isPlural add_comments = TRANSLATORS: @@ -60,11 +19,3 @@ previous = true domain = ckanext-transmute directory = ckanext/transmute/i18n statistics = true - -[tool:pytest] -filterwarnings = - ignore::sqlalchemy.exc.SADeprecationWarning - ignore::sqlalchemy.exc.SAWarning - ignore::DeprecationWarning - -addopts = --ckan-ini test.ini