Skip to main content

"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 the version 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, where aa.bb represents the new model version.

    For example, if the current version is 2.0 and your changes are minor, the new version should be 2.1, while major changes warrant a version bump to 3.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 as aa.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

oarepo_model_builder_nr-2.0.47.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

oarepo_model_builder_nr-2.0.47-py2.py3-none-any.whl (20.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file oarepo_model_builder_nr-2.0.47.tar.gz.

File metadata

File hashes

Hashes for oarepo_model_builder_nr-2.0.47.tar.gz
Algorithm Hash digest
SHA256 9f75a3935744e07acdb1ec1bde6c9fc9b9ee621160907be4c7e95cb1da1d3446
MD5 9795873ff130cb2371be0a7c9676436c
BLAKE2b-256 3aa660abc90a93f82fc1df53f5c23ba398d5dbcff492487af44478a698599f88

See more details on using hashes here.

File details

Details for the file oarepo_model_builder_nr-2.0.47-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for oarepo_model_builder_nr-2.0.47-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 930e41753c2eec65bf37f8eebfadd5390884a16bf3e07c9c32b2660d1dac1ad5
MD5 b19bfbddeed978b54e5dc483a9401e7c
BLAKE2b-256 875d5f17cf9447fb1e9db94e2edd02cd6abcc59d8e34112bee29310a4d6d2983

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page