ckanext-datagovcatalog


Nameckanext-datagovcatalog JSON
Version 0.1.0 PyPI version JSON
download
home_pagehttps://github.com/GSA/ckanext-datagovcatalog
SummaryCatalog customizations
upload_time2023-07-12 17:30:09
maintainer
docs_urlNone
authorData.gov
requires_python
licenseAGPL
keywords ckan
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            [![Github Actions](https://github.com/GSA/ckanext-datagovcatalog/actions/workflows/test.yml/badge.svg)](https://github.com/GSA/ckanext-datagovcatalog/actions)
[![PyPI version](https://badge.fury.io/py/ckanext-datagovcatalog.svg)](https://badge.fury.io/py/ckanext-datagovcatalog)

# ckanext-datagovcatalog

[comment]: <> (Put a description of your extension here:
   What does it do? What features does it have?
   Consider including some screenshots or embedding a video!)

# Data.gov  

[Data.gov](http://data.gov) is an open data website created by the [U.S. General Services Administration](https://github.com/GSA/) that is based on two robust open source projects: [CKAN](http://ckan.org) and [WordPress](http://wordpress.org). The data catalog at [catalog.data.gov](catalog.data.gov) is powered by CKAN, while the content seen at [Data.gov](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](https://github.com/GSA/data.gov/issues).** 

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](https://github.com/GSA/data.gov/blob/master/README.md). 

# Requirements

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


Package                                                                | Notes
---------------------------------------------------------------------- | -------------
[ckanext-harvest](https://github.com/ckan/ckanext-harvest/)            | This currently has two different version for py2 and py3 until [this PR](https://github.com/ckan/ckanext-harvest/pull/450) is merged upstream
[ckanext-envvars](https://github.com/okfn/ckanext-envvars)             | This is necessary based on how the testing environment is set up.


# Installation

[comment]: <> (Add any additional install steps to the list below.
   For example installing any non-Python dependencies or adding any required
   config settings.)

CKAN version | Compatibility
------------ | -------------
<=2.8        | no
2.9          | 0.0.5 (last supported)
2.10         | >=0.1.0

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](https://docs.ckan.org/en/2.8/extensions/testing-extensions.html#testing-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:

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



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/GSA/ckanext-datagovcatalog",
    "name": "ckanext-datagovcatalog",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "CKAN",
    "author": "Data.gov",
    "author_email": "datagovhelp@gsa.gov",
    "download_url": "https://files.pythonhosted.org/packages/5f/8f/61ead5fd7d2dd1ebdd72bae294d415978df43205a638bb850229ba87cacc/ckanext-datagovcatalog-0.1.0.tar.gz",
    "platform": null,
    "description": "[![Github Actions](https://github.com/GSA/ckanext-datagovcatalog/actions/workflows/test.yml/badge.svg)](https://github.com/GSA/ckanext-datagovcatalog/actions)\n[![PyPI version](https://badge.fury.io/py/ckanext-datagovcatalog.svg)](https://badge.fury.io/py/ckanext-datagovcatalog)\n\n# ckanext-datagovcatalog\n\n[comment]: <> (Put a description of your extension here:\n   What does it do? What features does it have?\n   Consider including some screenshots or embedding a video!)\n\n# Data.gov  \n\n[Data.gov](http://data.gov) is an open data website created by the [U.S. General Services Administration](https://github.com/GSA/) that is based on two robust open source projects: [CKAN](http://ckan.org) and [WordPress](http://wordpress.org). The data catalog at [catalog.data.gov](catalog.data.gov) is powered by CKAN, while the content seen at [Data.gov](Data.gov) is powered by WordPress.  \n        \n**For all code, bugs, and feature requests related to Data.gov, see the project wide Data.gov [issue tracker](https://github.com/GSA/data.gov/issues).** \n\nCurrently 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](https://github.com/GSA/data.gov/blob/master/README.md). \n\n# Requirements\n\nFor example, you might want to mention here which versions of CKAN this\nextension works with.\n\n\nPackage                                                                | Notes\n---------------------------------------------------------------------- | -------------\n[ckanext-harvest](https://github.com/ckan/ckanext-harvest/)            | This currently has two different version for py2 and py3 until [this PR](https://github.com/ckan/ckanext-harvest/pull/450) is merged upstream\n[ckanext-envvars](https://github.com/okfn/ckanext-envvars)             | This is necessary based on how the testing environment is set up.\n\n\n# Installation\n\n[comment]: <> (Add any additional install steps to the list below.\n   For example installing any non-Python dependencies or adding any required\n   config settings.)\n\nCKAN version | Compatibility\n------------ | -------------\n<=2.8        | no\n2.9          | 0.0.5 (last supported)\n2.10         | >=0.1.0\n\nTo install ckanext-datagovcatalog:\n\n1. Activate your CKAN virtual environment, for example::\n\n     `. /usr/lib/ckan/default/bin/activate`\n\n2. Install the ckanext-datagovcatalog Python package into your virtual environment::\n\n     `pip install ckanext-datagovcatalog`\n\n3. Add ``datagovcatalog`` to the ``ckan.plugins`` setting in your CKAN\n   config file (by default the config file is located at\n   ``/etc/ckan/default/production.ini``).\n\n4. Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu::\n\n     `sudo service apache2 reload`\n\n\n# Config Settings\n\n[comment]: <> (Document any optional config settings here. For example::\n\n    # Add tracking info on each package for the dataset lists\n    # (optional, default: true).\n    ckanext.datagovcatalog.add_packages_tracking_info = true)\n\n\n# Development Installation\n\nTo install ckanext-datagovcatalog for development, activate your CKAN virtualenv and\ndo::\n\n    git clone https://github.com/GSA/ckanext-datagovcatalog.git\n    cd ckanext-datagovcatalog\n    python setup.py develop\n    pip install -r requirements.txt\n    pip install -r dev-requirements.txt\n\n**Note: use the py2-equivalents of the requirement files if running on python 2.\n\n# Running the Tests\n\n## Tests\n\n## Using the Docker Dev Environment\n\n### Build Environment\n\nTo start environment, run:\n```make build```\n```make up```\n\nCKAN will start at localhost:5000\n\nTo shut down environment, run:\n\n```make clean```\n\nTo docker exec into the CKAN image, run:\n\n```docker-compose exec app /bin/bash```\n\n### Testing\n\nThey follow the guidelines for [testing CKAN\nextensions](https://docs.ckan.org/en/2.8/extensions/testing-extensions.html#testing-extensions).\n\nTo run the extension tests,\n\n    $ make test\n\nLint the code.\n\n    $ make lint\n    \n### Matrix builds\n\nThe existing development environment assumes a minimal catalog.data.gov test setup. This makes\nit difficult to develop and test against dependencies with other extensions.\n\nIn order to support multiple versions of CKAN, or even upgrade to new versions\nof CKAN, we support development and testing through the `CKAN_VERSION`\nenvironment variable.\n\n    $ make CKAN_VERSION=2.10 test\n\n# Registering ckanext-datagovcatalog on PyPI\n\nckanext-datagovcatalog should be availabe on PyPI as\nhttps://pypi.python.org/pypi/ckanext-datagovcatalog. If that link doesn't work, then\nyou can register the project on PyPI for the first time by following these\nsteps:\n\n1. Create a source distribution of the project::\n\n     python setup.py sdist\n\n2. Register the project::\n\n     python setup.py register\n\n3. Upload the source distribution to PyPI::\n\n     python setup.py sdist upload\n\n4. Tag the first release of the project on GitHub with the version number from\n   the ``setup.py`` file. For example if the version number in ``setup.py`` is\n   0.0.1 then do::\n\n       git tag 0.0.1\n       git push --tags\n\n\n# Releasing a New Version of ckanext-datagovcatalog\n\nckanext-datagovcatalog is availabe on PyPI as https://pypi.python.org/pypi/ckanext-datagovcatalog.\nTo publish a new version to PyPI follow these steps:\n\n1. Update the version number in the ``setup.py`` file.\n   See `PEP 440 <http://legacy.python.org/dev/peps/pep-0440/#public-version-identifiers>`_\n   for how to choose version numbers.\n\n2. Create a source distribution of the new version::\n\n     python setup.py sdist\n\n3. Upload the source distribution to PyPI::\n\n     python setup.py sdist upload\n\n4. Tag the new release of the project on GitHub with the version number from\n   the ``setup.py`` file. For example if the version number in ``setup.py`` is\n   0.0.2 then do::\n\n       git tag 0.0.2\n       git push --tags\n\n\n",
    "bugtrack_url": null,
    "license": "AGPL",
    "summary": "Catalog customizations",
    "version": "0.1.0",
    "project_urls": {
        "Homepage": "https://github.com/GSA/ckanext-datagovcatalog"
    },
    "split_keywords": [
        "ckan"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8dac068c157a11030d9902ca48067068a2e09d3b385844800845a9d62d38391f",
                "md5": "45e2a7e876540d421762ed1c04e059f2",
                "sha256": "575f3dc93b3f18f1d1d7236d3d45eaf10c5d499bb37eebc82e071b966d0c7a33"
            },
            "downloads": -1,
            "filename": "ckanext_datagovcatalog-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "45e2a7e876540d421762ed1c04e059f2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 23478,
            "upload_time": "2023-07-12T17:30:08",
            "upload_time_iso_8601": "2023-07-12T17:30:08.009313Z",
            "url": "https://files.pythonhosted.org/packages/8d/ac/068c157a11030d9902ca48067068a2e09d3b385844800845a9d62d38391f/ckanext_datagovcatalog-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5f8f61ead5fd7d2dd1ebdd72bae294d415978df43205a638bb850229ba87cacc",
                "md5": "399916840a97f2d6dec24bcecc17d767",
                "sha256": "f96f0867fa4134db783c49c573bc45c20df4d4c87bd4f2a515adc78612048b4c"
            },
            "downloads": -1,
            "filename": "ckanext-datagovcatalog-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "399916840a97f2d6dec24bcecc17d767",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 23879,
            "upload_time": "2023-07-12T17:30:09",
            "upload_time_iso_8601": "2023-07-12T17:30:09.322846Z",
            "url": "https://files.pythonhosted.org/packages/5f/8f/61ead5fd7d2dd1ebdd72bae294d415978df43205a638bb850229ba87cacc/ckanext-datagovcatalog-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-12 17:30:09",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "GSA",
    "github_project": "ckanext-datagovcatalog",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "requirements": [],
    "lcname": "ckanext-datagovcatalog"
}
        
Elapsed time: 0.12360s