This repository has been archived by the owner on Nov 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge partial upgrades before archiving
- Loading branch information
Showing
9 changed files
with
78 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
language: python | ||
python: | ||
- "2.7" | ||
# command to install dependencies | ||
install: | ||
- "pip install -e ." | ||
- "pip install -r requirements.txt" | ||
- "pip install -r dev_requirements.txt" | ||
# command to run tests | ||
script: coverage run --source=ckanext.status setup.py nosetests | ||
after_success: coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
""" | ||
CKAN Contact Extension | ||
""" | ||
# !/usr/bin/env python | ||
# encoding: utf-8 | ||
# | ||
# This file is part of ckanext-feedback | ||
# Created by the Natural History Museum in London, UK | ||
|
||
import ckan.plugins as p | ||
from ckan.plugins import SingletonPlugin, implements, interfaces, toolkit | ||
|
||
class FeedbackPlugin(p.SingletonPlugin): | ||
""" | ||
CKAN Contact Extension | ||
""" | ||
p.implements(p.IConfigurer) | ||
|
||
class FeedbackPlugin(SingletonPlugin): | ||
'''CKAN Contact Extension''' | ||
implements(interfaces.IConfigurer) | ||
|
||
## IConfigurer | ||
def update_config(self, config): | ||
p.toolkit.add_template_directory(config, 'theme/templates') | ||
p.toolkit.add_resource('theme/public', 'ckanext-feedback') | ||
''' | ||
:param config: | ||
''' | ||
toolkit.add_template_directory(config, u'theme/templates') | ||
toolkit.add_resource(u'theme/public', u'ckanext-feedback') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
nose | ||
mock | ||
httpretty | ||
coveralls | ||
-e git+https://github.com/NaturalHistoryMuseum/ckan.git@ckan-upgrade-2.8.0a#egg=ckan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,31 @@ | ||
from setuptools import setup, find_packages | ||
#!/usr/bin/env python | ||
# encoding: utf-8 | ||
# | ||
# This file is part of ckanext-feedback | ||
# Created by the Natural History Museum in London, UK | ||
|
||
version = '0.1' | ||
from setuptools import find_packages, setup | ||
|
||
version = u'0.2' | ||
|
||
setup( | ||
name='ckanext-feedback', | ||
version=version, | ||
description='CKAN Extension providing feedback form', | ||
classifiers=[], | ||
keywords='', | ||
author='Ben Scott', | ||
author_email='ben@benscott.co.uk', | ||
url='', | ||
license='', | ||
packages=find_packages(exclude=['tests']), | ||
namespace_packages=['ckanext', 'ckanext.feedback'], | ||
include_package_data=True, | ||
zip_safe=False, | ||
install_requires=[], | ||
entry_points=\ | ||
""" | ||
[ckan.plugins] | ||
feedback=ckanext.feedback.plugin:FeedbackPlugin | ||
""", | ||
) | ||
name=u'ckanext-feedback', | ||
version=version, | ||
description=u'CKAN Extension providing feedback form', | ||
classifiers=[], | ||
keywords=u'', | ||
author=u'Ben Scott', | ||
author_email=u'ben@benscott.co.uk', | ||
url=u'', | ||
license=u'', | ||
packages=find_packages(exclude=[u'tests']), | ||
namespace_packages=[u'ckanext', u'ckanext.feedback'], | ||
include_package_data=True, | ||
zip_safe=False, | ||
install_requires=[], | ||
entry_points= \ | ||
u''' | ||
[ckan.plugins] | ||
feedback=ckanext.feedback.plugin:FeedbackPlugin | ||
''', | ||
) |