To install ckanext-openenergy:
-
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
-
Install the ckanext-openenergy Python package into your virtual environment:
pip install ckanext-openenergy
-
Add
openenergy
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
Document any optional config settings here. For example:
# The minimum number of hours to wait before re-checking a resource
# (optional, default: 24).
ckanext.openenergy.some_setting = some_default_value
To install ckanext-openenergy for development, activate your CKAN virtualenv and do:
git clone https://github.com/openclimatefix/ckanext-openenergy.git
cd ckanext-openenergy
python setup.py develop
git tag 0.0.5
git push --tags
python setup.py sdist
python3 -m twine upload dist/*