Skip to content

Commit

Permalink
Tweak pyproject.toml and setuptools files
Browse files Browse the repository at this point in the history
Consolidate all setuptools config in setup.cfg as per
discussion in ckan/ckan#8456
  • Loading branch information
amercader committed Oct 23, 2024
1 parent 87a07c7 commit c9d9ab6
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 20 deletions.
47 changes: 30 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,46 @@ name = "ckanext-dcat"
version = "2.0.0"
description = "Plugins for exposing and consuming DCAT metadata on CKAN"
authors = [
{name = "CKAN Tech Team and contributors", email = "[email protected]"}
{name = "Adrià Mercader", email = "[email protected]"}
]
maintainers = [
{name = "CKAN Tech Team and contributors", email = "[email protected]"},
{name = "Seitenbau Govdata"},
{name = "Stefan Oderbolz"}
]
license = {text = "AGPL"}
classifiers = []
keywords = []
classifiers = [
"Intended Audience :: Developers",
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: GNU Affero General Public License v3",
"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"
]
keywords = [
"ckan",
"ckanext",
"DCAT",
"DCAT-AP",
"Schema.org",
"Linked data",
"RDF",
"Semantic data"
]
dependencies = []

[project.urls]
Homepage = "http://github.com/ckan/ckanext-dcat"
Documentation = "https://docs.ckan.org/projects/ckanext-dcat"
Repository = "https://github.com/ckan/ckanext-dcat"
Issues = "https://github.com/ckan/ckanext-dcat/issues"
Changelog = "https://docs.ckan.org/projects/ckanext-dcat/en/latest/changelog/"

[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

#[build-system]
#requires = ["setuptools", "wheel"]
#build-backend = "setuptools.build_meta"
#
[tool.setuptools]
#packages = ["ckanext"]
#namespace-packages = ["ckanext"]
include-package-data = true

[tool.setuptools.packages]
find = {}


[project.entry-points."ckan.plugins"]
dcat_xml_harvester = "ckanext.dcat.harvesters:DCATXMLHarvester"
dcat_json_harvester = "ckanext.dcat.harvesters:DCATJSONHarvester"
Expand Down
10 changes: 10 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
[options]
packages = find:
namespace_packages = ckanext
install_requires =
include_package_data = True

[options.entry_points]
babel.extractors =
ckan = ckan.lib.extract:extract_ckan

[extract_messages]
keywords = translate isPlural
add_comments = TRANSLATORS:
Expand Down
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
from setuptools import setup, find_packages

version = '2.0.0'
from setuptools import setup

setup(
message_extractors={
Expand Down

0 comments on commit c9d9ab6

Please sign in to comment.