Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenCode publiccode.yml #2

Merged
merged 3 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 16 additions & 22 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,26 @@ on:
branches:
- '**'
jobs:
# lint:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-python@v2
# with:
# python-version: '3.6'
# - name: Install requirements
# run: pip install flake8 pycodestyle
# - name: Check syntax
# run: flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics --exclude ckan


test:
# needs: lint
strategy:
matrix:
ckan-version: [2.9]
ckan-base-version: [2.9]
ckan-version: [py3.9]
solr-version: [solr8]
fail-fast: false

name: CKAN ${{ matrix.ckan-version }}
name: CKAN ${{ matrix.ckan-base-version }}
runs-on: ubuntu-latest
container:
image: openknowledge/ckan-dev:${{ matrix.ckan-version }}
image: ckan/ckan-dev:${{ matrix.ckan-base-version }}-${{ matrix.ckan-version }}
options: --user root
services:
solr:
image: ckan/ckan-solr:${{ matrix.ckan-version }}-solr9
image: ckan/ckan-solr:${{ matrix.ckan-base-version }}-${{ matrix.solr-version }}
postgres:
image: ckan/ckan-postgres-dev:${{ matrix.ckan-version }}
image: ckan/ckan-postgres-dev:${{ matrix.ckan-base-version }}
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
Expand All @@ -48,6 +40,8 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Install CURL
run: apt install curl -y
- name: Install requirements
run: |
pip install -r dev-requirements.txt
Expand All @@ -66,8 +60,8 @@ jobs:
ckan -c test.ini db init
- name: Run tests
run: pytest --ckan-ini=test.ini --cov=ckanext.berlintheme --cov-report=xml --cov-append --disable-warnings ckanext/berlintheme/tests
- name: Upload coverage report to codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
token: ${{secrets.CODECOV_TOKEN}}
- name: Upload coverage reports to Codecov
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## Development

## [0.3.13](https://github.com/berlinonline/ckanext-berlintheme/releases/tag/0.3.13)

_(2024-12-17)_

- Add publiccode.yml for OpenCode.

## [0.3.12](https://github.com/berlinonline/ckanext-berlintheme/releases/tag/0.3.12)

_(2024-08-28)_
Expand Down
77 changes: 77 additions & 0 deletions publiccode.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# This repository adheres to the publiccode.yml standard by including this
# metadata file that makes public software easily discoverable.
# More info at https://github.com/italia/publiccode.yml

publiccodeYmlVersion: '0.2'
name: ckanext-berlintheme
applicationSuite: CKAN
url: 'https://github.com/berlinonline/ckanext-berlintheme'
releaseDate: '2018-05-19'
softwareVersion: 0.3.13
developmentStatus: stable
softwareType: addon
categories:
- it-development
- knowledge-management
maintenance:
type: internal
contacts:
- name: Dr. Knud Möller
email: [email protected]
legal:
license: AGPL-3.0-only
mainCopyrightOwner: BerlinOnline GmbH
repoOwner: BerlinOnline GmbH
localisation:
localisationReady: false
description:
en:
genericName: ckanext-berlintheme
documentation: >-
https://github.com/berlinonline/ckanext-berlintheme?tab=readme-ov-file#ckanext-berlintheme
shortDescription: ckanext-berlintheme provides custom theming and UI for the Datenregister.
longDescription: >
This plugin belongs to a set of plugins for the _Datenregister_ – the
non-public [CKAN](https://ckan.org/) instance that is part of Berlin's
open data portal [daten.berlin.de](https://daten.berlin.de/).
`ckanext-berlintheme` provides custom theming and UI for the
Datenregister.


The plugin implements the following CKAN interfaces:


-
[IBlueprint](http://docs.ckan.org/en/latest/extensions/plugin-interfaces.html#ckan.plugins.interfaces.IBlueprint)

-
[IConfigurer](http://docs.ckan.org/en/latest/extensions/plugin-interfaces.html#ckan.plugins.interfaces.IConfigurer)

-
[ITemplateHelpers](http://docs.ckan.org/en/latest/extensions/plugin-interfaces.html#ckan.plugins.interfaces.ITemplateHelpers)


## Requirements


This plugin has been tested with CKAN 2.9.8 (which requires Python 3).


## Custom Settings


### Global Warning Message


If `berlintheme.show\_warning` is `true`, the content of
`berlintheme.warning` will be displayed in a box in between the main
navigation and the rest of the page.


![ "Screenshot of the Datenregister showing a warning message about
upcoming maintenance
work"](https://github.com/berlinonline/ckanext-berlintheme/raw/master/images/screenshot_warning.png)

berlintheme.show\_warning = false
berlintheme.warning = Am Dienstag, 18.12.2018, ab 22 Uhr werden
Wartungsarbeiten an unserer Infrastruktur vorgenommen.
Loading