From 92d5e51d3e6ded70cb95449153bbbfb2537a28c1 Mon Sep 17 00:00:00 2001 From: amercader Date: Fri, 13 Sep 2024 12:10:17 +0200 Subject: [PATCH] First version of pyproject.toml --- ckanext/geoview/plugin/__init__.py | 1 + pyproject.toml | 40 ++++++++++++++++++++++++++ setup.py | 46 ++++++++++++++---------------- 3 files changed, 62 insertions(+), 25 deletions(-) create mode 100644 pyproject.toml diff --git a/ckanext/geoview/plugin/__init__.py b/ckanext/geoview/plugin/__init__.py index 8637ceb7..d5a53bfc 100644 --- a/ckanext/geoview/plugin/__init__.py +++ b/ckanext/geoview/plugin/__init__.py @@ -35,6 +35,7 @@ class GeoViewBase(p.SingletonPlugin): same_domain = False def configure(self, config): + print("HOOOOOLLALALALLA") basemapConfigFile = toolkit.config.get( "ckanext.geoview.basemaps", None ) diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..1bac380d --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,40 @@ +# +# +[project] +name = "ckanext-geoview" +version = "0.2.0" +description = "Geospatial viewers for CKAN resources" +readme = "README.md" +authors = [ + {name = "Philippe Duchesne, Adrià Mercader and contributors", email = "tech-team@ckan.org"} +] +license = {text = "MIT"} +classifiers = [] +keywords = [] +dependencies = [] + +[project.urls] +Homepage = "http://github.com/ckan/ckanext-geoview" + +[build-system] +requires = ["setuptools >= 61.0"] +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"] +geo_view = "ckanext.geoview.plugin:OLGeoView" +geojson_view = "ckanext.geoview.plugin:GeoJSONView" +wmts_view = "ckanext.geoview.plugin:WMTSView" +shp_view = "ckanext.geoview.plugin:SHPView" diff --git a/setup.py b/setup.py index 4f8d485d..439d5ff6 100644 --- a/setup.py +++ b/setup.py @@ -3,29 +3,25 @@ version = '0.2.0' setup( - name='ckanext-geoview', - version=version, - description='Geospatial viewers for CKAN resources', - long_description='This extension contains view plugins to display geospatial files and services in CKAN.', - long_description_content_type='text/plain', - classifiers=[], - keywords='', - author='Philippe Duchesne, Adrià Mercader and contributors', - author_email='tech-team@ckan.org', - url='http://github.com/ckan/ckanext-geoview', - license='MIT', - packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), - namespace_packages=['ckanext'], - include_package_data=True, - zip_safe=False, - install_requires=[ - # -*- Extra requirements: -*- - ], - entry_points=''' - [ckan.plugins] - geo_view=ckanext.geoview.plugin:OLGeoView - geojson_view=ckanext.geoview.plugin:GeoJSONView - wmts_view=ckanext.geoview.plugin:WMTSView - shp_view=ckanext.geoview.plugin:SHPView - ''', +# description='Geospatial viewers for CKAN resources', +# long_description='This extension contains view plugins to display geospatial files and services in CKAN.', +# long_description_content_type='text/plain', +# classifiers=[], +# keywords='', +# author='Philippe Duchesne, Adrià Mercader and contributors', +# author_email='tech-team@ckan.org', +# license='MIT', +# packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), +# namespace_packages=['ckanext'], +# include_package_data=True, +# zip_safe=False, +# install_requires=[ +# ], +# entry_points=''' +# [ckan.plugins] +# geo_view=ckanext.geoview.plugin:OLGeoView +# geojson_view=ckanext.geoview.plugin:GeoJSONView +# wmts_view=ckanext.geoview.plugin:WMTSView +# shp_view=ckanext.geoview.plugin:SHPView +# ''', )