[ckan-discuss] Problem creating CKAN extension to customizing CKAN's CSS

David Hernández Gutiérrez davisoski at gmail.com
Wed Mar 19 17:53:00 UTC 2014


Hi.

I'm trying to make my FIRST own theme following:
http://docs.ckan.org/en/latest/theming/templates.html

but in step 4 I get this error:

 File "setup.py", line 1
    from setuptools import setup, find_packages import sys, os
                                                     ^
SyntaxError: invalid syntax


This is the content of *setup.py* file:

from setuptools import setup, find_packages import sys, os

version = '0.1'

setup(
    name='ckanext-example_theme',
    version=version,
    description="my own styles",
    long_description='''
    ''',
    classifiers=[], # Get strings from
http://pypi.python.org/pypi?%3Aaction=list_classifiers
    keywords='',
    author='David',
    author_email='myownemail at gmail.com',
    url='',
    license='',
    packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
    namespace_packages=['ckanext', 'ckanext.example_theme'],
    include_package_data=True,
    zip_safe=False,
    install_requires=[
        # -*- Extra requirements: -*-
    ],
    entry_points='''
        [ckan.plugins]
    example_theme=ckanext.example_theme.plugin:ExampleThemePlugin
        # Add plugins here, e.g.
        # myplugin=ckanext.example_theme.plugin:PluginClass
    ''',
)


and *plugin.py*

import ckan.plugins as plugins


class ExampleThemePlugin(plugins.SingletonPlugin):
    '''An example theme plugin.

    '''
    pass





Any idea?
Thanks
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.okfn.org/pipermail/ckan-discuss/attachments/20140319/38f47502/attachment.html>


More information about the ckan-discuss mailing list