diff --git a/pyproject.toml b/pyproject.toml index a9a0a11..a31dcfe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,47 @@ +[build-system] +requires = ["setuptools>=61.2"] +build-backend = "setuptools.build_meta" + +[project] +name = "ckanext-unfold" +version = "1.0.3" +description = "Provides previews for multiple archive formats" +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", +] +keywords = ["CKAN"] +urls = {Homepage = "https://github.com/DataShades/ckanext-unfold"} +dependencies = [ + "rarfile==4.0", + "py7zr==0.20.6", + "rpmfile==1.1.1", + "pydantic==2.3.0", +] +optional-dependencies = {} + +[project.readme] +file = "README.md" +content-type = "text/markdown" + +[project.entry-points] +"ckan.plugins" = {unfold = "ckanext.unfold.plugin:UnfoldPlugin"} +"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 fb06d89..8b59fc5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,40 +1,3 @@ -[metadata] -name = ckanext-unfold -version = 1.0.2 -description = Provides previews for multiple archive formats -long_description = file: README.md -long_description_content_type = text/markdown -url = https://github.com//ckanext-unfold -author = Oleksandr 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 -keywords = CKAN - -[options] -packages = find: -namespace_packages = ckanext -install_requires = - rarfile==4.0 - py7zr==0.20.6 - rpmfile==1.1.1 - pydantic==2.3.0 -include_package_data = True - -[options.entry_points] -ckan.plugins = - unfold = ckanext.unfold.plugin:UnfoldPlugin - -babel.extractors = - ckan = ckan.lib.extract:extract_ckan - -[options.extras_require] - [extract_messages] keywords = translate isPlural add_comments = TRANSLATORS: @@ -56,10 +19,3 @@ previous = true domain = ckanext-unfold directory = ckanext/unfold/i18n statistics = true - -[tool:pytest] -filterwarnings = - ignore::sqlalchemy.exc.SADeprecationWarning - ignore::sqlalchemy.exc.SAWarning - ignore::DeprecationWarning -addopts = --ckan-ini test.ini