This is the main repo for the BISKIT Data Portal. All of the CKAN customizations are added in this extension.
This extension works with CKAN 2.8.x.
To install ckanext-biskit:
-
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
-
Install the ckanext-biskit Python package into your virtual environment:
pip install ckanext-biskit
-
Add
biskit
to theckan.plugins
setting in your CKAN config file (by default the config file is located at/etc/ckan/default/production.ini
). -
Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu::
sudo service apache2 reload
Optional:
# An optional setting to control whether to display the debug link in the footer
# when running in debug mode
ckanext.biskit.show_debug_link = true
To install ckanext-biskit for development, activate your CKAN virtualenv and do:
git clone https://github.com/eHealthAfrica/ckanext-biskit.git
cd ckanext-biskit
python setup.py develop
pip install -r dev-requirements.txt
All code MUST follow PEP8 Style Guide. Most editors have plugins or integrations and automatic checking for PEP8 compliance so make sure you use them.
To run the tests, do:
nosetests --nologcapture --with-pylons=test.ini
To run the tests and produce a coverage report, first make sure you have coverage installed in your
virtualenv (pip install coverage
) then run:
nosetests --nologcapture --with-pylons=test.ini --with-coverage --cover-package=ckanext.biskit --cover-inclusive --cover-erase --cover-tests