diff --git a/pyproject.toml b/pyproject.toml index ed4d7c1..1dff273 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,50 @@ +[build-system] +requires = [ "setuptools",] +build-backend = "setuptools.build_meta" + +[project] +name = "ckanext-composite-search" +version = "0.3.2.post1" +description = "" +classifiers = [ "Development Status :: 4 - Beta", "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)", "Programming Language :: Python :: 3",] +keywords = [ "CKAN",] +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/DataShades/ckanext-composite-search" + +[project.optional-dependencies] +test = [ "pytest-ckan",] + +[project.entry-points."ckan.plugins"] +composite_search = "ckanext.composite_search.plugin.base:CompositeSearchPlugin" +default_composite_search = "ckanext.composite_search.plugin.default:DefaultSearchPlugin" + +[project.entry-points."babel.extractors"] +ckan = "ckan.lib.extract:extract_ckan" + +[tool.setuptools.packages] +find = {} + [tool.black] line-length = 79 preview = true + + +[tool.pytest.ini_options] +filterwarnings = [ "ignore::sqlalchemy.exc.SADeprecationWarning", "ignore::sqlalchemy.exc.SAWarning", "ignore::DeprecationWarning",] +addopts = "--ckan-ini test.ini" diff --git a/setup.cfg b/setup.cfg index 829d4d1..24e9de0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,36 +1,3 @@ -[metadata] -name = ckanext-composite-search -version = 0.3.2 -description = -long_description = file: README.md -long_description_content_type = text/markdown -url = https://github.com/DataShades/ckanext-composite-search -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 -keywords = CKAN - -[options] -packages = find: -namespace_packages = ckanext -install_requires = -include_package_data = True - -[options.entry_points] -ckan.plugins = - composite_search = ckanext.composite_search.plugin.base:CompositeSearchPlugin - default_composite_search = ckanext.composite_search.plugin.default:DefaultSearchPlugin -babel.extractors = - ckan = ckan.lib.extract:extract_ckan - -[options.extras_require] -test = - pytest-ckan - [extract_messages] keywords = translate isPlural add_comments = TRANSLATORS: @@ -52,11 +19,3 @@ previous = true domain = ckanext-composite_search directory = ckanext/composite_search/i18n statistics = true - -[tool:pytest] -filterwarnings = - ignore::sqlalchemy.exc.SADeprecationWarning - ignore::sqlalchemy.exc.SAWarning - ignore::DeprecationWarning - -addopts = --ckan-ini test.ini