If your extension works across different versions you can add the following table:
Compatibility with core CKAN versions:
| CKAN version | Compatible? |
|---|---|
| 2.9 and earlier | not tested |
| 2.10 | not tested |
| 2.11 | not tested |
To install ckanext-idb-theme:
-
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/DataShades/ckanext-idb-theme.git cd ckanext-idb-theme pip install -e . pip install -r requirements.txt
-
Add
idb_theme themingto theckan.pluginssetting in your CKAN config file (by default the config file is located at/etc/ckan/default/ckan.ini).
Watch styles and re-compile CSS on change:
make devBuild production-ready styles:
make buildTo run the tests, do:
pytest --ckan-ini=test.ini
If ckanext-idb-theme should be available on PyPI you can follow these steps to publish a new version:
-
Update the version number in the
pyproject.tomlfile. 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 source and binary distributions of the new version:
python -m build && twine check dist/*Fix any errors you get.
-
Upload the source distribution to PyPI:
twine upload dist/* -
Commit any outstanding changes:
git commit -a git push -
Tag the new release of the project on GitHub with the version number from the
setup.pyfile. For example if the version number insetup.pyis 0.0.1 then do:git tag 0.0.1 git push --tags