Skip to main content

Catalog customizations

Project description

Github Actions PyPI version

ckanext-datagovcatalog

Data.gov

Data.gov is an open data website created by the U.S. General Services Administration that is based on two robust open source projects: CKAN and WordPress. The data catalog at catalog.data.gov is powered by CKAN, while the content seen at Data.gov is powered by WordPress.

For all code, bugs, and feature requests related to Data.gov, see the project wide Data.gov issue tracker.

Currently this repository is only used for source version control on the code for the CKAN extension for datagovcatalog features, but you can see all of the Data.gov relevant repos listed in the GSA Data.gov README file.

Requirements

For example, you might want to mention here which versions of CKAN this extension works with.

Package Notes
ckanext-harvest This currently has two different version for py2 and py3 until this PR is merged upstream
ckanext-envvars This is necessary based on how the testing environment is set up.

Installation

CKAN version Compatibility
<=2.8 no
2.9 yes

To install ckanext-datagovcatalog:

  1. Activate your CKAN virtual environment, for example::

    . /usr/lib/ckan/default/bin/activate

  2. Install the ckanext-datagovcatalog Python package into your virtual environment::

    pip install ckanext-datagovcatalog

  3. Add datagovcatalog 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

comment: <> (Document any optional config settings here. For example::

# Add tracking info on each package for the dataset lists
# (optional, default: true).
ckanext.datagovcatalog.add_packages_tracking_info = true)

Development Installation

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

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

**Note: use the py2-equivalents of the requirement files if running on python 2.

Running the Tests

Tests

Using the Docker Dev Environment

Build Environment

To start environment, run: make build make up

CKAN will start at localhost:5000

To shut down environment, run:

make clean

To docker exec into the CKAN image, run:

docker-compose exec app /bin/bash

Testing

They follow the guidelines for testing CKAN extensions.

To run the extension tests,

$ make test

Lint the code.

$ make lint

Matrix builds

The existing development environment assumes a minimal catalog.data.gov test setup. This makes it difficult to develop and test against dependencies with other extensions.

In order to support multiple versions of CKAN, or even upgrade to new versions of CKAN, we support development and testing through the CKAN_VERSION environment variable.

$ make CKAN_VERSION=2.9 test

Registering ckanext-datagovcatalog on PyPI

ckanext-datagovcatalog should be availabe on PyPI as https://pypi.python.org/pypi/ckanext-datagovcatalog. If that link doesn't work, then you can register the project on PyPI for the first time by following these steps:

  1. Create a source distribution of the project::

    python setup.py sdist

  2. Register the project::

    python setup.py register

  3. Upload the source distribution to PyPI::

    python setup.py sdist upload

  4. Tag the first release of the project on GitHub with the version number from the setup.py file. For example if the version number in setup.py is 0.0.1 then do::

    git tag 0.0.1
    git push --tags
    

Releasing a New Version of ckanext-datagovcatalog

ckanext-datagovcatalog is availabe on PyPI as https://pypi.python.org/pypi/ckanext-datagovcatalog. To publish a new version to PyPI follow these steps:

  1. Update the version number in the setup.py file. See PEP 440 <http://legacy.python.org/dev/peps/pep-0440/#public-version-identifiers>_ for how to choose version numbers.

  2. Create a source distribution of the new version::

    python setup.py sdist

  3. Upload the source distribution to PyPI::

    python setup.py sdist upload

  4. Tag the new release of the project on GitHub with the version number from the setup.py file. For example if the version number in setup.py is 0.0.2 then do::

    git tag 0.0.2
    git push --tags
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ckanext-datagovcatalog-0.0.4.tar.gz (24.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ckanext_datagovcatalog-0.0.4-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

Details for the file ckanext-datagovcatalog-0.0.4.tar.gz.

File metadata

  • Download URL: ckanext-datagovcatalog-0.0.4.tar.gz
  • Upload date:
  • Size: 24.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for ckanext-datagovcatalog-0.0.4.tar.gz
Algorithm Hash digest
SHA256 275b7f298b718c5656ab9089f405d50100da89133e980b6d0479f449edead296
MD5 a54e04343fb35ff02991594d7d70fa62
BLAKE2b-256 a587c8b1b1be94b08a3b779c123c543993b8a7e4e2ea3fb09b790424a6f6e831

See more details on using hashes here.

File details

Details for the file ckanext_datagovcatalog-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for ckanext_datagovcatalog-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3411eeb446b896e8d7d8b412d74fd95704da53754d941405441488d7160f779f
MD5 ef867f13d7437f96a699701487655802
BLAKE2b-256 f1fb58769112dfbc589e3018e0d832c394900d1715291fee9b472c9bc86b461f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page