Skip to main content

"Generated metadata files for the Czech National Repository"

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

nr_metadata-2.0.75.tar.gz (226.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nr_metadata-2.0.75-py2.py3-none-any.whl (298.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file nr_metadata-2.0.75.tar.gz.

File metadata

  • Download URL: nr_metadata-2.0.75.tar.gz
  • Upload date:
  • Size: 226.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for nr_metadata-2.0.75.tar.gz
Algorithm Hash digest
SHA256 4af18c6534ddb08dfc4f3c86d4a4bac8a4fdf025c6492fc14f678d8d94f02a40
MD5 d2a24ca79255d7e7988775fe2524d8ff
BLAKE2b-256 e9faac72db28d39eb993a2444fa563bb77aca1829f095c1ee36ce4a827ddd3be

See more details on using hashes here.

File details

Details for the file nr_metadata-2.0.75-py2.py3-none-any.whl.

File metadata

  • Download URL: nr_metadata-2.0.75-py2.py3-none-any.whl
  • Upload date:
  • Size: 298.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for nr_metadata-2.0.75-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 101851b0becf494940f6cc16ac6eb5a876a768a94a0bb593b9849805b62b8e23
MD5 c114440af398dcbdd0d8e65179ffb936
BLAKE2b-256 5c0c41b1053977a237d5cadc64a145de9d50a66304220683da86c45f7effdbad

See more details on using hashes here.

Supported by

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