"A model builder plugin with Czech National Repository compatible metadata schema"
Project description
NR model
This github project generates:
nr-metadata
- runtime support containing marshmallow, serializers, ... for NR metadata (documents and data)oarepo-model-builder-nr
- a plugin for oarepo-model-builder to generate
Incompatible changes
None yet. If you introduce any incompatible changes (vs previous major version), enumerate them here and link the readme file from the previous major version for reference.
Usage
See the examples/model.yaml
file for a skeleton of a repository
which uses nr metadata document model. An even easier way is to use the
nrp
command to generate a documents- or data- compatible repository.
See the same pages to get help about the model contents.
Branches
Branches are always named "aa.bb" and denote the version of the contained metadata schema.
Updating package
Package needs to be updated whenever the version of oarepo-model-builder and other builder plugins changes and influences the generated files.
The package version is always in the form of aa.bb.ccc
, where aa.bb
is the version
of the metadata schema and ccc
is the version of the python package.
To rebuild python packages:
- Create a development branch (named after the issue inside linear or github issue)
- Implement your changes
- Increase the version number in
version
file - Run
build.sh
(note - this has to be run after modification to theversion
file) - Create a merge request to the
aa.bb
branch - Create a new github release.
Updating model
To update the model version,
-
start by creating a new branch with the name
aa.bb
, whereaa.bb
represents the new model version.For example, if the current version is
2.0
and your changes are minor, the new version should be2.1
, while major changes warrant a version bump to3.0
. -
Set this branch as the default branch on GitHub.
-
Rename files inside the
model
directory to include the correct version -
Change the model version inside the
build.sh
script -
Make your modifications to the files within the model directory
-
Update the content of the
version
file to reflect the new version asaa.bb.0
-
Execute the
build.sh
script to ensure that everything builds correctly -
Push your changes to GitHub
-
Mark the branch as the default branch
-
Create a new GitHub release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for oarepo_model_builder_nr-2.0.44.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b708dd70bf690a789d3941ba4a17df1bbef1c759c300d622e69227f22b64c3d0 |
|
MD5 | 98737d08740dda642829859f1c8158ae |
|
BLAKE2b-256 | 33b9702f61003a7d12e5f62c42b86ec5692f491bc4828a9da6c30ec004ac6f1a |
Hashes for oarepo_model_builder_nr-2.0.44-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c744572cd5707721c48884e3bf45e462e27c36f6b5fab5c75c583743026727e |
|
MD5 | 41967be2700fc882382b9b0a23198fdd |
|
BLAKE2b-256 | fa29486808497b03e31713380c3cb5c3a45d407378674362e27f0eb6d8c5a9ed |