Skip to content

cityofcapetown/ckanext-cct_metadata

Repository files navigation

https://travis-ci.org/cityofcapetown/ckanext-cct_metadata.svg?branch=master

ckanext-cct_metadata

Applies City of Cape Town metadata standard. Canonical record stored here

Uses custom scheming extension to actually implement the schema.

Requirements

ckan==2.8.3

ckanext_scheming==1.2.0

Installation

To install ckanext-cct_metadata:

  1. Activate your CKAN virtual environment, for example:

    . /usr/lib/ckan/default/bin/activate
    
  2. Install the ckanext-cct_metadata Python package into your virtual environment:

    pip install ckanext-cct_metadata
    
  3. Add cct_metadata to the ckan.plugins setting in your CKAN config file (by default the config file is located at /etc/ckan/default/production.ini).

  4. Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu:

    sudo service apache2 reload
    

Config Settings

Document any optional config settings here. For example:

# The minimum number of hours to wait before re-checking a resource
# (optional, default: 24).
ckanext.cct_metadata.some_setting = some_default_value

Development Installation

To install ckanext-cct_metadata for development, activate your CKAN virtualenv and do:

git clone https://github.com/cityofcapetown/ckanext-cct_metadata.git
cd ckanext-cct_metadata
python setup.py develop
pip install -r dev-requirements.txt

Running the Tests

NB I've swapped out nose tests for the built-in unit test framework.

To run the tests, do:

PYTHONPATH=. python -m unittest tests/test_plugin.py

About

Applies City of Cape Town metadata standard.

Resources

License

Stars

Watchers

Forks

Packages

No packages published