Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First iteration of pyproject.toml #554

Merged
merged 3 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
[project]
name = "ckanext-harvest"
version = "1.5.6"
description = "Harvesting interface plugin for CKAN, plus harvester for other CKAN sites"
authors = [
{name = "Adrià Mercader", email = "[email protected]"}
]
maintainers = [
{name = "CKAN Tech Team and contributors", email = "[email protected]"},
{name = "Seitenbau Govdata"},
]
license = {text = "AGPL"}
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",
"harvesting",
"federation",
]
dependencies = []

[project.urls]
Homepage = "http://github.com/ckan/ckanext-harvest"
Repository = "https://github.com/ckan/ckanext-harvest"
Issues = "https://github.com/ckan/ckanext-harvest/issues"
Changelog = "https://github.com/ckan/ckanext-harvest/blob/master/CHANGELOG.rst"

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

[project.entry-points."ckan.plugins"]
harvest = "ckanext.harvest.plugin:Harvest"
ckan_harvester = "ckanext.harvest.harvesters:CKANHarvester"

# Test plugins
test_harvester = "ckanext.harvest.tests.test_queue:MockHarvester"
test_harvester2 = "ckanext.harvest.tests.test_queue2:MockHarvester"
test_action_harvester = "ckanext.harvest.tests.test_action:MockHarvesterForActionTests"


[project.entry-points."babel.extractors"]
ckan = "ckan.lib.extract:extract_ckan"
10 changes: 5 additions & 5 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
[nosetests]
with-pylons = test.ini
[options]
packages = find:
namespace_packages = ckanext
install_requires =
include_package_data = True

[extract_messages]
keywords = translate isPlural
Expand All @@ -25,6 +28,3 @@ statistics = true

[flake8]
max-line-length = 127

[tool:pytest]
norecursedirs=ckanext/harvest/tests/nose
43 changes: 1 addition & 42 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,47 +1,6 @@
from setuptools import setup, find_packages

version = '1.5.6'
from setuptools import setup

setup(
name='ckanext-harvest',
version=version,
description="Harvesting interface plugin for CKAN",
long_description="""\
""",
classifiers=[],
keywords='',
author='CKAN',
author_email='[email protected]',
url='https://github.com/ckan/ckanext-harvest',
license='AGPL',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
namespace_packages=['ckanext'],
include_package_data=True,
zip_safe=False,
install_requires=[
# dependencies are specified in requirements.txt
# instead of here
],
tests_require=[
'nose',
'mock',
],
test_suite='nose.collector',
entry_points="""
[ckan.plugins]
# Add plugins here, eg
harvest=ckanext.harvest.plugin:Harvest
ckan_harvester=ckanext.harvest.harvesters:CKANHarvester

# Test plugins

test_harvester=ckanext.harvest.tests.test_queue:MockHarvester
test_harvester2=ckanext.harvest.tests.test_queue2:MockHarvester
test_action_harvester=ckanext.harvest.tests.test_action:MockHarvesterForActionTests

[babel.extractors]
ckan = ckan.lib.extract:extract_ckan
""",
message_extractors={
'ckanext': [
('**.py', 'python', None),
Expand Down