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 ce97a4c commit 34f7a73
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 42 deletions.
43 changes: 43 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,46 @@
[build-system]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"

[project]
name = "ckanext-mailcraft"
version = "0.2.1"
description = "Custom extandable mailer for CKAN"
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"]
dependencies = []
optional-dependencies = {}

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

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

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

[project.entry-points."ckan.plugins"]
mailcraft = "ckanext.mailcraft.plugin:MailcraftPlugin"

[tool.setuptools.packages]
find = {}

[tool.black]
line-length = 88
preview = true
Expand Down
42 changes: 0 additions & 42 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,38 +1,3 @@
[metadata]
name = ckanext-mailcraft
version = 0.2.0
description = Custom extandable mailer for CKAN
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/mutantsan/ckanext-mailcraft
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 =
ckanext-collection>=0.1.21,<1.0.0
include_package_data = True

[options.entry_points]
ckan.plugins =
mailcraft = ckanext.mailcraft.plugin:MailcraftPlugin
mailcraft_dashboard = ckanext.mailcraft_dashboard.plugin:MailcraftDashboardPlugin

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

[options.extras_require]

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

[tool:pytest]
filterwarnings =
ignore::sqlalchemy.exc.SADeprecationWarning
ignore::sqlalchemy.exc.SAWarning
ignore::DeprecationWarning
addopts = --ckan-ini test.ini

0 comments on commit 34f7a73

Please sign in to comment.