Skip to main content

The NMDC submission schema

Project description

submission-schema

The NMDC submission schema.

Note that the while this repo is named submission-schema, the generated artifacts are named nmdc_submission_schema for disambiguation purposes when publishing to PyPI.

Website

Repository Structure

Developer Documentation

Updating the submission schema

The version of nmdc-schema used as a basis when building the submission schema is controlled by a dependency in the dev group, specified in pyproject.toml. You can update the version used by running:

uv add --group dev "nmdc-schema==X.Y.Z"  # replace X.Y.Z with the desired version

[!NOTE]
It is important to use the == version constraint to ensure the exact version is installed.

Building the submission schema

Here's how you can generate the submission schema release artifacts:

Container-based process

Prerequisites
  • Docker is installed on your computer
  • You are in the root directory of the repository
Procedure
  1. Build the container image you will later use to build the submission schema:
    docker build -t submission-schema-builder -f builder.Dockerfile .
    
  2. If you haven't already done so (see the "Updating the submission schema" section above), use that container image to update the nmdc-schema dependency of the submission schema:
    docker run --rm -it -v ${PWD}:/submission-schema submission-schema-builder \
        uv add --group dev "nmdc-schema==X.Y.Z"  # replace X.Y.Z
    
    Then, rebuild the container image (so it has that new version of nmdc-schema installed):
    docker build -t submission-schema-builder -f builder.Dockerfile .
    
  3. Use the container image to build the submission schema:
    docker run --rm -it -v ${PWD}:/submission-schema submission-schema-builder
    
  4. Commit the changes, using the new nmdc-schema version number as the commit message; like this:
    git add .
    git commit -m "X.Y.Z"  # replace X.Y.Z with the nmdc-schema version
    
  5. (Optional) Delete the container image:
    docker image rm submission-schema-builder
    

Direct process

Procedure
  1. Install Python dependencies:
    uv sync
    
  2. Generate the release artifacts:
    make clean all
    
  3. Commit the changes, using the new nmdc-schema version number as the commit message; like this:
    git add .
    git commit -m "X.Y.Z"  # replace X.Y.Z with the nmdc-schema version
    

Credits

this project was made with linkml-project-cookiecutter

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nmdc_submission_schema-11.20.0.tar.gz (722.0 kB view details)

Uploaded Source

Built Distribution

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

nmdc_submission_schema-11.20.0-py3-none-any.whl (738.5 kB view details)

Uploaded Python 3

File details

Details for the file nmdc_submission_schema-11.20.0.tar.gz.

File metadata

  • Download URL: nmdc_submission_schema-11.20.0.tar.gz
  • Upload date:
  • Size: 722.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for nmdc_submission_schema-11.20.0.tar.gz
Algorithm Hash digest
SHA256 a1c3dc5939d96fdcfcac6e9a2a1cd3a727e888c07c496e9980a2dae4b9a5a9ff
MD5 4f70736ca721ffe8b7c4760b5e613f1d
BLAKE2b-256 6be503282d05b6afa292f639e41ee5931d042defda8c53d507eb86ac4db6eeb1

See more details on using hashes here.

Provenance

The following attestation bundles were made for nmdc_submission_schema-11.20.0.tar.gz:

Publisher: pypi-publish.yaml on microbiomedata/submission-schema

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nmdc_submission_schema-11.20.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nmdc_submission_schema-11.20.0-py3-none-any.whl
Algorithm Hash digest
SHA256 979aca524d530022c533c76b54f2bed5f1e35bfbace661194959b5c6638b9e52
MD5 966ed350605e2fc466bec7dd09c60dea
BLAKE2b-256 b845f5cbd950e64bc1e301eb1b619e5639a410b3238a363f7d314c81a261a964

See more details on using hashes here.

Provenance

The following attestation bundles were made for nmdc_submission_schema-11.20.0-py3-none-any.whl:

Publisher: pypi-publish.yaml on microbiomedata/submission-schema

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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