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

Ross Jones ross at servercode.co.uk
Wed Mar 19 17:56:15 UTC 2014


There’s a newline missing. Try changing the first line of your setup.py to:

from setuptools import setup, find_packages
import sys, os


Ross.


On 19 Mar 2014, at 17:53, David Hernández Gutiérrez <davisoski at gmail.com> wrote:

> 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 
> _______________________________________________
> ckan-discuss mailing list
> ckan-discuss at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-discuss
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.okfn.org/pipermail/ckan-discuss/attachments/20140319/c31b08b9/attachment.html>


More information about the ckan-discuss mailing list