Skip to content

Commit

Permalink
migrate to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
mutantsan committed Oct 24, 2024
1 parent 15e5b00 commit 282293c
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 54 deletions.
60 changes: 60 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,63 @@
[build-system]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"

[project]
name = "ckanext-admin-panel"
version = "1.0.16"
description = "Custom admin panel for CKAN to expand default functionality"
authors = [
{ name = "DataShades", email = "[email protected]" },
{ name = "Oleksandr Cherniavskyi", email = "[email protected]" },
]
maintainers = [{ name = "DataShades", email = "[email protected]" }]
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"]
requires-python = ">= 3.8"
dependencies = [
"typing-extensions",
"ckanext-toolbelt",
"ckanext-collection>=0.1.21,<0.3.0",
"croniter>=2.0.1,<3.0.0",
"cron-descriptor>=1.4.0,<2.0.0",
"ckanext-wysiwyg>=0.1.0,<1.0.0",
"ckanext-doi>=3.1.12,<4.0.0",
"ckanext-editable-config==0.0.6",
]

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

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

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

[project.entry-points."ckan.plugins"]
admin_panel = "ckanext.ap_main.plugin:AdminPanelPlugin"
admin_panel_log = "ckanext.ap_log.plugin:AdminPanelLogPlugin"
admin_panel_cron = "ckanext.ap_cron.plugin:AdminPanelCronPlugin"
admin_panel_support = "ckanext.ap_support.plugin:AdminPanelSupportPlugin"
admin_panel_example = "ckanext.ap_example.plugin:AdminPanelExamplePlugin"
admin_panel_doi = "ckanext.ap_doi.plugin:AdminPanelDoiPlugin"
ap_doi = "ckanext.ap_doi.plugin:ApDOIPlugin"
ap_cron_test = "ckanext.ap_cron.tests.factories:ApCronTestPlugin"

[project.optional-dependencies]
test = ["pytest-ckan", "git-changelog"]

[tool.setuptools.packages]
find = {}

[tool.black]
# line-length = 88
# preview = true
Expand Down
54 changes: 0 additions & 54 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,57 +1,3 @@
[metadata]
name = ckanext-admin-panel
version = 1.0.14
description = Custom admin panel for CKAN to expand default functionality
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/mutantsan/ckanext-admin-panel
author = Oleksandr Cherniavskyi
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.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
keywords = CKAN

[options]
python_requires = >= 3.8
packages = find:
namespace_packages = ckanext
install_requires =
typing-extensions
ckanext-toolbelt
ckanext-collection>=0.1.21,<0.3.0
croniter>=2.0.1,<3.0.0
cron-descriptor>=1.4.0,<2.0.0
ckanext-wysiwyg>=0.1.0,<1.0.0
ckanext-doi>=3.1.12,<4.0.0
ckanext-editable-config==0.0.6


include_package_data = True

[options.entry_points]
ckan.plugins =
admin_panel = ckanext.ap_main.plugin:AdminPanelPlugin
admin_panel_log = ckanext.ap_log.plugin:AdminPanelLogPlugin
admin_panel_cron = ckanext.ap_cron.plugin:AdminPanelCronPlugin
admin_panel_support = ckanext.ap_support.plugin:AdminPanelSupportPlugin
admin_panel_example = ckanext.ap_example.plugin:AdminPanelExamplePlugin
admin_panel_doi = ckanext.ap_doi.plugin:AdminPanelDoiPlugin
ap_doi = ckanext.ap_doi.plugin:ApDOIPlugin
ap_cron_test = ckanext.ap_cron.tests.factories:ApCronTestPlugin

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

[options.extras_require]
test=
pytest-ckan
git-changelog

[extract_messages]
keywords = translate isPlural
add_comments = TRANSLATORS:
Expand Down

0 comments on commit 282293c

Please sign in to comment.