Skip to content

Commit

Permalink
First version of pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Sep 13, 2024
1 parent 75f20a1 commit 92d5e51
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 25 deletions.
1 change: 1 addition & 0 deletions ckanext/geoview/plugin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
40 changes: 40 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 = "[email protected]"}
]
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"
46 changes: 21 additions & 25 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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='[email protected]',
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='[email protected]',
# 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
# ''',
)

0 comments on commit 92d5e51

Please sign in to comment.