# ckanext-datagovtheme
[](https://github.com/GSA/ckanext-datagovtheme/actions) [](https://badge.fury.io/py/ckanext-datagovtheme)
Data.gov theme, branding, and UI customizations for [catalog.data.gov](https://catalog.data.gov/) as a [CKAN](https://ckan.org/) extension.
## Features
_TODO document these better._
Provides a new spatial query view (overrides [ckanext-spatial](https://github.com/ckan/ckanext-spatial) some front end)
## Usage
### Requirements
_TODO: document how ckanext-datagovtheme interacts with third-party extensions, maybe in the context of Features above._
These extensions are required.
[ckanext-spatial](https://github.com/gsa/ckanext-spatial)
Additionally, ckanext-datagovtheme has “weak” dependencies on these extensions. The dependency might be on templates, template helpers, or other functionality.
[ckanext-archiver](https://github.com/ckan/ckanext-archiver)
[ckanext-dcat](https://github.com/ckan/ckanext-dcat)
[ckanext-qa](https://github.com/ckan/ckanext-qa)
This extension is compatible with these versions of CKAN.
CKAN version | Compatibility ———— | ————- <=2.8 | no 2.9 | 0.1.27 (last supported) 2.10 | >=0.2.0
## Development
### Requirements
GNU Make
Docker Compose
### Setup
Build the docker containers. You’ll want to do this anytime the dependencies change (requirements.txt, dev-requirements.txt).
$ make build
Start the containers.
$ make up
CKAN will start at [localhost:5000](http://localhost:5000).
Clean up the environment.
$ make down
Open a shell to run commands in the container.
$ docker-compose exec ckan bash
If you’re unfamiliar with docker-compose, see our [cheatsheet](https://github.com/GSA/datagov-deploy/wiki/Docker-Best-Practices#cheatsheet) and the [official docs](https://docs.docker.com/compose/reference/).
For additional make targets, see the help.
$ make help
### Testing
They follow the guidelines for [testing CKAN extensions](https://docs.ckan.org/en/2.8/extensions/testing-extensions.html#testing-extensions).
To run the extension tests:
$ make test
Lint your code.
$ make lint
#### Common issues
We have seen issues with datagovtheme not installed. If this is the case, run python setup.py develop in the container.
### Matrix builds
The development environment drops as many dependencies as possible. It is not meant to have feature parity with [GSA/catalog.data.gov](https://github.com/GSA/catalog.data.gov/) or [GSA/inventory-app](https://github.com/GSA/inventory-app/). Tests should mock external dependencies where possible.
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.10.1 test
Variable | Description | Default ——– | ———– | ——- CKAN_VERSION | Version of CKAN to use. | 2.10.1 COMPOSE_FILE | docker-compose service description file. | docker-compose.yml
Metadata
Release files for ckanext-datagovtheme 0.4.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ckanext_datagovtheme-0.4.4.tar.gz | 11.5 MB | Without provenance | Details for ckanext_datagovtheme-0.4.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ckanext_datagovtheme-0.4.4-py3-none-any.whl | Python 3 | none | any | Details for ckanext_datagovtheme-0.4.4-py3-none-any.whl |
Total release size: 23.2 MB
Release files / ckanext_datagovtheme-0.4.4.tar.gz
| Download URL | ckanext_datagovtheme-0.4.4.tar.gz |
|---|---|
| Size | 11.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1518892f50a01a4b5667efa57b1cda9c76cd4b74b530d25c5fcc0e5e685765be
|
|
BLAKE2b-256 checksum How to use checksums |
75c25d83a77662112d75d99de3910ad9e4cd9eb537d4113092c86bfa3fd79fe3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / ckanext_datagovtheme-0.4.4-py3-none-any.whl
| Download URL | ckanext_datagovtheme-0.4.4-py3-none-any.whl |
|---|---|
| Size | 11.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e65749fd526800625b78d912d1dea5d1cfb663368efc3e5dd2ece20cd7717e86
|
|
BLAKE2b-256 checksum How to use checksums |
c46f32297a2a69fb93f80d3e6f5fb4fbd919e604eea8c89275b59096dec3208b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for ckanext-datagovtheme 0.4.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.