Metadata-Version: 2.2
Name: ckanext-fair3r
Version: 3.1.10
Summary: A ckan extension meant to customize fair3r.fr theme and add special views
Home-page: https://github.com/ICS/ckanext-fair3r
Author: Nathanaël Debanne
Author-email: debannen@igbmc.fr
License: CECILL-B
Keywords: CKAN
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: cryptography==46.0.3
Dynamic: requires-dist

# ckanext-fair3r

This extension is made to cuztomize fair3r.fr ckan theme and add features

## Requirements

Compatibility with core CKAN versions:

| CKAN version    | Compatible? |
|-----------------|-------------|
| 2.11.5          | yes         |


## Installation

To install ckanext-fair3r:

1. Activate your CKAN virtual environment, for example:

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

2. Install via pip:

    pip install ckanext-fair3r
	pip install -r requirements.txt

   Or, to install from source:

    git clone <url-of-this-repository>
    cd ckanext-fair3r
    pip install -e .
	pip install -r requirements.txt

3. Add `fair3r` to the `ckan.plugins` setting in your CKAN
   config file (by default the config file is located at
   `/etc/ckan/default/ckan.ini`).

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

     sudo service apache2 reload


## Config settings

    exemple: 

	# The app context (could be DEV, INTEGRATION, VALIDATION, or PRODUCTION)
	ckanext.fair3r.context = DEV

	# Optional. Directory containing fdf_schema.json and i18n/*.json.
	# In DEV Docker this is set automatically from FDF_SCHEMA_LOCAL_PATH
	# (mounted local clone of https://github.com/Phen-ICS/fair3r-fdf-schema).
	# Leave unset on validation / integration / production (cron downloads GitHub).
	# ckanext.fair3r.fdf_schema_dir = /fdf-schema


## Developer installation

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

    git clone git@serv-gitlab.igbmc.u-strasbg.fr:ics/ckanext-fair3r.git
    cd ckanext-fair3r
    python setup.py develop
    pip install -r dev-requirements.txt

## Fix code formating

ruff format .
ruff check . --fix

## Tests

```shell
docker exec -u ckan -it ckan-app pytest --ckan-ini=/plugins/ckanext-fair3r/test.ini /plugins/ckanext-fair3r/ckanext/fair3r/tests
```
