Skip to content

Commit

Permalink
First iteration of pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Sep 13, 2024
1 parent bf849f1 commit 698f21c
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 42 deletions.
44 changes: 44 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
[project]
name = "ckanext-harvest"
version = "1.5.6"
description = "Harvesting interface plugin for CKAN"
authors = [
{name = "CKAN Tech Team and contributors", email = "[email protected]"}
]
license = {text = "AGPL"}
classifiers = []
keywords = []
dependencies = []

[project.urls]
Homepage = "http://github.com/ckan/ckanext-harvest"

[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"]
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"
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

0 comments on commit 698f21c

Please sign in to comment.