From 00ee4766969ae8e0aea69abe61d5c3cc656acb61 Mon Sep 17 00:00:00 2001 From: Sergey Motornyuk Date: Thu, 17 Oct 2024 17:27:30 +0300 Subject: [PATCH] chore: switch ot pyproject.toml --- pyproject.toml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ setup.cfg | 42 ------------------------------------------ 2 files changed, 46 insertions(+), 42 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8d64c69..9963a06 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,49 @@ +[build-system] +requires = [ "setuptools",] +build-backend = "setuptools.build_meta" + +[project] +name = "ckanext-search-tweaks" +version = "0.6.1.post1" +description = "" +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",] +dependencies = [ "freezegun", "typing_extensions>=4.0.0", "ckanext-toolbelt>=0.4.11",] +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/DataShades/ckanext-search-tweaks" + +[project.optional-dependencies] +advanced-search = [] + +[project.entry-points."ckan.plugins"] +search_tweaks = "ckanext.search_tweaks.plugin:SearchTweaksPlugin" +search_tweaks_query_relevance = "ckanext.search_tweaks.query_relevance.plugin:QueryRelevancePlugin" +search_tweaks_field_relevance = "ckanext.search_tweaks.field_relevance.plugin:FieldRelevancePlugin" +search_tweaks_spellcheck = "ckanext.search_tweaks.spellcheck.plugin:SpellcheckPlugin" +search_tweaks_advanced_search = "ckanext.search_tweaks.advanced_search.plugin:AdvancedSearchPlugin" +search_tweaks_query_popularity = "ckanext.search_tweaks.query_popularity.plugin:QueryPopularityPlugin" + +[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 579f2fe..1bf988c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,45 +1,3 @@ -[metadata] -name = ckanext-search-tweaks -version = 0.6.1 -description = -long_description = file: README.md -long_description_content_type = text/markdown -url = https://github.com/DataShades/ckanext-search-tweaks -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 - -[options] -packages = find: -namespace_packages = ckanext -install_requires = - freezegun - typing_extensions>=4.0.0 - ckanext-toolbelt>=0.4.11 -include_package_data = True - -[options.entry_points] -ckan.plugins = - search_tweaks = ckanext.search_tweaks.plugin:SearchTweaksPlugin - search_tweaks_query_relevance = ckanext.search_tweaks.query_relevance.plugin:QueryRelevancePlugin - search_tweaks_field_relevance = ckanext.search_tweaks.field_relevance.plugin:FieldRelevancePlugin - search_tweaks_spellcheck = ckanext.search_tweaks.spellcheck.plugin:SpellcheckPlugin - search_tweaks_advanced_search = ckanext.search_tweaks.advanced_search.plugin:AdvancedSearchPlugin - search_tweaks_query_popularity = ckanext.search_tweaks.query_popularity.plugin:QueryPopularityPlugin - -babel.extractors = - ckan = ckan.lib.extract:extract_ckan - -[options.extras_require] -advanced-search = - [extract_messages] keywords = translate isPlural add_comments = TRANSLATORS: