Skip to content

Commit

Permalink
chore: move metadata to pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
smotornyuk committed Oct 17, 2024
1 parent 619522b commit 2e8b869
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 88 deletions.
2 changes: 1 addition & 1 deletion ckanext/toolbelt/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.4.25"
__version__ = "0.4.25.post1"
70 changes: 67 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,68 @@
[build-system]
requires = [ "setuptools",]
build-backend = "setuptools.build_meta"

[project]
name = "ckanext-toolbelt"
description = ""
classifiers = [ "Development Status :: 4 - Beta", "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)", "Programming Language :: Python :: 3.7", "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",]
requires-python = ">= 3.7"
dependencies = [ "click", "aiosmtpd", "typing_extensions", "gitpython",]
dynamic = [ "version",]
authors = [
{name = "DataShades", email = "[email protected]"},
{name = "Sergey Motornyuk", email = "[email protected]"},
]
maintainers = [
{name = "DataShades", email = "[email protected]"},
]

[project.readme]
file = "README.md"
content-type = "text/markdown"

[project.license]
text = "AGPL"

[project.urls]
Homepage = "https://github.com/DataShades/ckanext-toolbelt"

[project.optional-dependencies]
flask-sqlalchemy = [ "flask-sqlalchemy~=2.5",]
ckanext = [ "copier", "copier-templates-extensions",]
test = [ "pytest-ckan", "pytest-mock",]

[project.scripts]
ctb = "ckanext.toolbelt.cli:toolbelt"

[project.entry-points."ckan.plugins"]
toolbelt = "ckanext.toolbelt.plugins:ToolbeltPlugin"
toolbelt_safe_upload = "ckanext.toolbelt.plugins.safe_upload:SafeUploadPlugin"
toolbelt_group_changes = "ckanext.toolbelt.plugins.group_changes:GroupChangesPlugin"
toolbelt_composite_groups = "ckanext.toolbelt.plugins.group_composite:CompositeGroupsPlugin"
toolbelt_composite_organizations = "ckanext.toolbelt.plugins.group_composite:CompositeOrganizationsPlugin"
toolbelt_cascade_organization_updates = "ckanext.toolbelt.plugins.cascade_organization_updates:CascadeOrganizationUpdatesPlugin"
toolbelt_fdt_sqlalchemy = "ckanext.toolbelt.plugins.fdt_sqlalchemy:FdtSqlalchemyPlugin"

[project.entry-points."ckan.system_plugins"]
toolbelt_fdt_scroll = "ckanext.toolbelt.plugins.fdt_scroll.plugin:FdtScrollPlugin"

[project.entry-points."ckan.click_command"]
toolbelt = "ckanext.toolbelt.cli.ckan:toolbelt"

[project.entry-points.pytest11]
toolbelt = "pytest_toolbelt.plugin"

[project.entry-points."babel.extractors"]
ckan = "ckan.lib.extract:extract_ckan"

[tool.setuptools.packages]
find = {}

[tool.setuptools.dynamic.version]
attr = "ckanext.toolbelt.__version__"

[tool.black]
# line-length = 88
# preview = true
Expand Down Expand Up @@ -56,10 +121,9 @@ profile = "black"
[tool.pytest.ini_options]
addopts = "--ckan-ini test.ini"
filterwarnings = [
"ignore::sqlalchemy.exc.SADeprecationWarning",
"ignore::sqlalchemy.exc.SAWarning",
"ignore::DeprecationWarning",
# "ignore::DeprecationWarning",
]
testpaths = "ckanext/toolbelt/tests"

[tool.pyright]
pythonVersion = "3.8"
Expand Down
84 changes: 0 additions & 84 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,78 +1,3 @@
[metadata]
name = ckanext-toolbelt
version = attr: ckanext.toolbelt.__version__
description =
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/DataShades/ckanext-toolbelt
author = Sergey Motornyuk
author_email = [email protected]
license = AGPL
classifiers =
Development Status :: 4 - Beta
License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
Programming Language :: Python :: 3.7
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

[options]
python_requires = >= 3.7
install_requires =
click
aiosmtpd
typing_extensions
gitpython
packages = find:
namespace_packages = ckanext
include_package_data = True

[options.extras_require]
flask-sqlalchemy =
flask-sqlalchemy~=2.5

ckanext =
copier
copier-templates-extensions

[options.entry_points]
ckan.plugins =
toolbelt = ckanext.toolbelt.plugins:ToolbeltPlugin

toolbelt_safe_upload = ckanext.toolbelt.plugins.safe_upload:SafeUploadPlugin

toolbelt_group_changes = ckanext.toolbelt.plugins.group_changes:GroupChangesPlugin

toolbelt_composite_groups = ckanext.toolbelt.plugins.group_composite:CompositeGroupsPlugin
toolbelt_composite_organizations = ckanext.toolbelt.plugins.group_composite:CompositeOrganizationsPlugin

toolbelt_cascade_organization_updates = ckanext.toolbelt.plugins.cascade_organization_updates:CascadeOrganizationUpdatesPlugin

toolbelt_fdt_sqlalchemy = ckanext.toolbelt.plugins.fdt_sqlalchemy:FdtSqlalchemyPlugin

ckan.system_plugins =
toolbelt_fdt_scroll = ckanext.toolbelt.plugins.fdt_scroll.plugin:FdtScrollPlugin

ckan.click_command =
toolbelt = ckanext.toolbelt.cli.ckan:toolbelt

pytest11 =
toolbelt = pytest_toolbelt.plugin

console_scripts =
ctb = ckanext.toolbelt.cli:toolbelt

babel.extractors =
ckan = ckan.lib.extract:extract_ckan



[extract_messages]
keywords = translate isPlural
add_comments = TRANSLATORS:
Expand All @@ -94,12 +19,3 @@ previous = true
domain = ckanext-toolbelt
directory = ckanext/toolbelt/i18n
statistics = true

[tool:pytest]
filterwarnings =
ignore::sqlalchemy.exc.SADeprecationWarning
ignore::sqlalchemy.exc.SAWarning
ignore::DeprecationWarning

addopts = --ckan-ini test.ini
testpaths = ckanext/toolbelt/tests

0 comments on commit 2e8b869

Please sign in to comment.