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 1000c1f commit 861a18d
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 50 deletions.
55 changes: 54 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,57 @@
[build-system]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"

[project]
name = "ckanext-transmute"
version = "2.0.0a0"
description = "Converts a dataset based on a specific schema"
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",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
keywords = [
"CKAN",
"scheming",
"schema",
]
requires-python = ">= 3.8"
dependencies = [
"ckanext-scheming",
"typing-extensions",
]

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

[project.urls]
Homepage = "https://github.com/mutantsan/ckanext-transmute"

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

[project.entry-points."ckan.plugins"]
transmute = "ckanext.transmute.plugin:TransmutePlugin"

[tool.setuptools.packages]
find = {}

[tool.black]
# line-length = 88
# preview = true
Expand Down Expand Up @@ -91,4 +145,3 @@ reportUnsupportedDunderAll = true
reportUnusedCoroutine = true
reportUnnecessaryTypeIgnoreComment = true
reportMatchNotExhaustive = true

49 changes: 0 additions & 49 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,44 +1,3 @@
[metadata]
name = ckanext-transmute
version = 2.0.0a0
description = Converts a dataset based on a specific schema
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/mutantsan/ckanext-transmute
author = Alexandr 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
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3.13
Programming Language :: Python :: 3.14
keywords =
CKAN
scheming
schema

[options]
python_requires = >= 3.8
packages = find:
namespace_packages = ckanext
install_requires =
ckanext-scheming
typing-extensions
include_package_data = True

[options.entry_points]
ckan.plugins =
transmute = ckanext.transmute.plugin:TransmutePlugin

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

[extract_messages]
keywords = translate isPlural
add_comments = TRANSLATORS:
Expand All @@ -60,11 +19,3 @@ previous = true
domain = ckanext-transmute
directory = ckanext/transmute/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 861a18d

Please sign in to comment.