
ckanext-cdstheme
CKAN’s theme for Comune di Sona.
Requirements
If your extension works across different versions you can add the following table:
Compatibility with core CKAN versions:
| CKAN version |
Compatible? |
| 2.6 and earlier |
not tested |
| 2.7 |
not tested |
| 2.8 |
not tested |
| 2.9 |
yes |
Installation
To install ckanext-cdstheme:
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
Clone the source and install it on the virtualenv
git clone https://github.com/luca-martinelli-09/ckanext-cdstheme.git
cd ckanext-cdstheme
pip install -e .
pip install -r requirements.txt
Add cdstheme to the ckan.plugins setting in your CKAN
config file (by default the config file is located at
/etc/ckan/default/ckan.ini).
Restart CKAN. For example if you’ve deployed CKAN with Apache on Ubuntu:
sudo service apache2 reload
Developer installation
To install ckanext-cdstheme for development, activate your CKAN virtualenv and
do:
git clone https://github.com/luca-martinelli-09/ckanext-cdstheme.git
cd ckanext-cdstheme
python setup.py develop
pip install -r dev-requirements.txt
Tests
To run the tests, do:
pytest --ckan-ini=test.ini
Releasing a new version of ckanext-cdstheme
If ckanext-cdstheme should be available on PyPI you can follow these steps to publish a new version:
Update the version number in the setup.py file. See PEP 440 for how to choose version numbers.
Make sure you have the latest version of necessary packages:
pip install –upgrade setuptools wheel twine
Create a sou