Skip to content

Commit

Permalink
fix-requires pyramid
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Aug 6, 2013
1 parent 05570a4 commit 9c5cad3
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 31 deletions.
65 changes: 34 additions & 31 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,36 +28,39 @@
]

setup(
name='tilecloud-chain',
version='0.7',
description='tilecloud chain',
long_description=README,
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Topic :: Scientific/Engineering :: GIS',
name='tilecloud-chain',
version='0.7',
description='tilecloud chain',
long_description=README,
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Topic :: Scientific/Engineering :: GIS',
],
author='Stéphane Brunner',
author_email='stephane.brunner@camptocamp.com',
url='http://github.com/sbrunner/tilecloud-chain',
license='BSD',
keywords='gis tilecloud chain',
packages=find_packages(exclude=["*.tests", "*.tests.*"]),
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
setup_requires=setup_requires,
tests_require=tests_require,
entry_points={
'console_scripts': [
'generate_tiles = tilecloud_chain.generate:main',
'generate_controller = tilecloud_chain.controller:main',
],
author='Stéphane Brunner',
author_email='stephane.brunner@camptocamp.com',
url='http://github.com/sbrunner/tilecloud-chain',
license='BSD',
keywords='gis tilecloud chain',
packages=find_packages(exclude=["*.tests", "*.tests.*"]),
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
setup_requires=setup_requires,
tests_require=tests_require,
entry_points={
'console_scripts': [
'generate_tiles = tilecloud_chain.generate:main',
'generate_controller = tilecloud_chain.controller:main',
],
'pyramid.scaffold': [
'tilecloud_chain = tilecloud_chain.scaffolds:Create',
],
}
'pyramid.scaffold': [
'tilecloud_chain = tilecloud_chain.scaffolds:Create',
],
'paste.app_factory': [
'server = tilecloud_chain.server:app_factory',
],
}
)
4 changes: 4 additions & 0 deletions tilecloud_chain/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,10 @@ def forward(self, url, headers={}):
return [content]


def app_factory(global_config, **local_conf):
return Server(local_conf.get('configfile', 'tilegeneration/config.yaml'))


class PyramidView(Server):

from pyramid.httpexceptions import HTTPNoContent, HTTPBadRequest, \
Expand Down

0 comments on commit 9c5cad3

Please sign in to comment.