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 | 0.0.5 (last supported) |
| 2.10 | >=0.1.0 |
To install ckanext-datagovcatalog:
-
Activate your CKAN virtual environment, for example::
. /usr/lib/ckan/default/bin/activate -
Install the ckanext-datagovcatalog Python package into your virtual environment::
pip install ckanext-datagovcatalog -
Add
datagovcatalogto theckan.pluginssetting in your CKAN config file (by default the config file is located at/etc/ckan/default/production.ini). -
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.10 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:
-
Create a source distribution of the project::
python setup.py sdist
-
Register the project::
python setup.py register
-
Upload the source distribution to PyPI::
python setup.py sdist upload
-
Tag the first 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
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:
-
Update the version number in the
setup.pyfile. SeePEP 440 <http://legacy.python.org/dev/peps/pep-0440/#public-version-identifiers>_ for how to choose version numbers. -
Create a source distribution of the new version::
python setup.py sdist
-
Upload the source distribution to PyPI::
python setup.py sdist upload
-
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.2 then do::git tag 0.0.2 git push --tags
Metadata
Release files for ckanext-datagovcatalog 0.1.3
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-datagovcatalog-0.1.3.tar.gz | 24.2 kB | Without provenance | Details for ckanext-datagovcatalog-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ckanext_datagovcatalog-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for ckanext_datagovcatalog-0.1.3-py3-none-any.whl |
Total release size: 48.0 kB
Release files / ckanext-datagovcatalog-0.1.3.tar.gz
| Download URL | ckanext-datagovcatalog-0.1.3.tar.gz |
|---|---|
| Size | 24.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4caede10f40a2a776f9032b1388ba8f176ab807bc7c60be591fca94c8e88d035
|
|
BLAKE2b-256 checksum How to use checksums |
ec6164100d26e61bed79b3bbe80ca4f1960b1a29ae4b0834c3e2d95bd3961466
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.22
|
Release files / ckanext_datagovcatalog-0.1.3-py3-none-any.whl
| Download URL | ckanext_datagovcatalog-0.1.3-py3-none-any.whl |
|---|---|
| Size | 23.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f4328e7dc0f1a6dd43057d63fea9d283caacd44005c8b81cae46101716620a4e
|
|
BLAKE2b-256 checksum How to use checksums |
992876cdb240789fa682b095e65fd0b8fe9d03da946710d7e52193141daf6241
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.22
|
Security for ckanext-datagovcatalog 0.1.3
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.