Skip to content

Commit bb6eaa0

Browse files
committed
migrate to pyproject.toml
1 parent b0241c9 commit bb6eaa0

File tree

3 files changed

+59
-88
lines changed

3 files changed

+59
-88
lines changed

pyproject.toml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
[build-system]
2+
requires = ["setuptools>=61.2"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "ckanext-harvest-basket"
7+
version = "1.3.7"
8+
description = "A bunch of custom harvesters for ckanext-harvest"
9+
authors = [
10+
{name = "DataShades", email = "datashades@linkdigital.com.au"},
11+
{name = "Oleksandr Cherniavskyi", email = "mutantsan@gmail.com"},
12+
]
13+
maintainers = [
14+
{name = "DataShades", email = "datashades@linkdigital.com.au"},
15+
]
16+
license = {text = "AGPL"}
17+
classifiers = [
18+
"Development Status :: 4 - Beta",
19+
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
20+
"Programming Language :: Python :: 3.8",
21+
"Programming Language :: Python :: 3.9",
22+
"Programming Language :: Python :: 3.10",
23+
]
24+
keywords = ["CKAN"]
25+
dependencies = []
26+
optional-dependencies = {}
27+
28+
[project.readme]
29+
file = "README.md"
30+
content-type = "text/markdown"
31+
32+
[project.urls]
33+
Homepage = "https://github.com/DataShades/ckanext-harvest-basket"
34+
35+
[tool.pytest.ini_options]
36+
filterwarnings = [
37+
"ignore::sqlalchemy.exc.SADeprecationWarning",
38+
"ignore::sqlalchemy.exc.SAWarning",
39+
"ignore::DeprecationWarning",
40+
]
41+
42+
[project.entry-points]
43+
"babel.extractors" = {ckan = "ckan.lib.extract:extract_ckan"}
44+
45+
[project.entry-points."ckan.plugins"]
46+
harvest_basket="ckanext.harvest_basket.plugin:HarvestBasketPlugin"
47+
dkan_harvester="ckanext.harvest_basket.harvesters:DKANHarvester"
48+
junar_harvester="ckanext.harvest_basket.harvesters:JunarHarvester"
49+
socrata_harvester="ckanext.harvest_basket.harvesters:SocrataHarvester"
50+
arcgis_harvester="ckanext.harvest_basket.harvesters:ArcGISHarvester"
51+
custom_ckan_harvester="ckanext.harvest_basket.harvesters:CustomCKANHarvester"
52+
ods_harvester="ckanext.harvest_basket.harvesters:ODSHarvester"
53+
basket_dcat_json_harvester="ckanext.harvest_basket.harvesters:BasketDcatJsonHarvester"
54+
basket_csw_harvester="ckanext.harvest_basket.harvesters:BasketCswHarvester"
55+
basket_csiro_harvester="ckanext.harvest_basket.harvesters:CsiroHarvester"
56+
57+
[tool.setuptools.packages]
58+
find = {}

setup.cfg

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,3 @@ previous = true
1919
domain = ckanext-harvest_basket
2020
directory = ckanext/harvest_basket/i18n
2121
statistics = true
22-
23-
[tool:pytest]
24-
filterwarnings =
25-
ignore::sqlalchemy.exc.SADeprecationWarning
26-
ignore::sqlalchemy.exc.SAWarning
27-
ignore::DeprecationWarning

setup.py

Lines changed: 1 addition & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,6 @@
1-
# -*- coding: utf-8 -*-
2-
# Always prefer setuptools over distutils
3-
from setuptools import setup, find_packages
4-
from codecs import open # To use a consistent encoding
5-
from os import path
6-
7-
here = path.abspath(path.dirname(__file__))
8-
9-
# Get the long description from the relevant file
10-
with open(path.join(here, "README.md"), encoding="utf-8") as f:
11-
long_description = f.read()
1+
from setuptools import setup
122

133
setup(
14-
name="""ckanext-harvest-basket""",
15-
# Versions should comply with PEP440. For a discussion on single-sourcing
16-
# the version across setup.py and the project code, see
17-
# http://packaging.python.org/en/latest/tutorial.html#version
18-
version="1.3.7",
19-
description="""A bunch of custom harvesters for ckanext-harvest""",
20-
long_description=long_description,
21-
long_description_content_type="text/markdown",
22-
# The project's main homepage.
23-
url="https://github.com/mutantsan/ckanext-harvest-basket",
24-
# Author details
25-
author="""Alexandr Cherniavskyi""",
26-
author_email="""mutantsan@gmail.com""",
27-
# Choose your license
28-
license="AGPL",
29-
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
30-
classifiers=[
31-
# How mature is this project? Common values are
32-
# 3 - Alpha
33-
# 4 - Beta
34-
# 5 - Production/Stable
35-
"Development Status :: 4 - Beta",
36-
# Pick your license as you wish (should match "license" above)
37-
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
38-
# Specify the Python versions you support here. In particular, ensure
39-
# that you indicate whether you support Python 2, Python 3 or both.
40-
"Programming Language :: Python :: 2.7",
41-
],
42-
# What does your project relate to?
43-
keywords="""CKAN harvest harvester""",
44-
# You can just specify the packages manually here if your project is
45-
# simple. Or you can use find_packages().
46-
packages=find_packages(exclude=["contrib", "docs", "tests*"]),
47-
namespace_packages=["ckanext"],
48-
install_requires=[
49-
# CKAN extensions should not list dependencies here, but in a separate
50-
# ``requirements.txt`` file.
51-
#
52-
# http://docs.ckan.org/en/latest/extensions/best-practices.html
53-
# add-third-party-libraries-to-requirements-txt
54-
],
55-
# If there are data files included in your packages that need to be
56-
# installed, specify them here. If using Python 2.6 or less, then these
57-
# have to be included in MANIFEST.in as well.
58-
include_package_data=True,
59-
package_data={},
60-
# Although 'package_data' is the preferred approach, in some case you may
61-
# need to place data files outside of your packages.
62-
# see http://docs.python.org/3.4/distutils/setupscript.html
63-
# installing-additional-files
64-
# In this case, 'data_file' will be installed into '<sys.prefix>/my_data'
65-
data_files=[],
66-
# To provide executable scripts, use entry points in preference to the
67-
# "scripts" keyword. Entry points provide cross-platform support and allow
68-
# pip to create the appropriate form of executable for the target platform.
69-
entry_points="""
70-
[ckan.plugins]
71-
harvest_basket=ckanext.harvest_basket.plugin:HarvestBasketPlugin
72-
dkan_harvester=ckanext.harvest_basket.harvesters:DKANHarvester
73-
junar_harvester=ckanext.harvest_basket.harvesters:JunarHarvester
74-
socrata_harvester=ckanext.harvest_basket.harvesters:SocrataHarvester
75-
arcgis_harvester=ckanext.harvest_basket.harvesters:ArcGISHarvester
76-
custom_ckan_harvester=ckanext.harvest_basket.harvesters:CustomCKANHarvester
77-
ods_harvester=ckanext.harvest_basket.harvesters:ODSHarvester
78-
basket_dcat_json_harvester=ckanext.harvest_basket.harvesters:BasketDcatJsonHarvester
79-
basket_csw_harvester=ckanext.harvest_basket.harvesters:BasketCswHarvester
80-
basket_csiro_harvester=ckanext.harvest_basket.harvesters:CsiroHarvester
81-
82-
[babel.extractors]
83-
ckan = ckan.lib.extract:extract_ckan
84-
""",
854
# If you are changing from the default layout of your extension, you may
865
# have to change the message extractors, you can read more about babel
876
# message extraction at

0 commit comments

Comments
 (0)