Skip to main content

Shared data models for Quantinuum.

Project description

Quantinuum schemas

Public models that define API boundaries used by Quantinuum. Intended to be used across teams and projects ie. shared. Backwards compatibility and semantic versioning are particularly important in this repo! The "Check Conventional Commits format" workflow will make sure your PRs follow a standard format. For backwards-incompatible changes, please use the conventional ! or BREAKING CHANGE:.

Dependencies

We try to keep the dependencies minimal. However we do need pydantic for validation.

Making a release

See notes above about conventional commits and versioning.

Once all your code changes are merged onto the main branch using conventional commits, follow these steps to publish.

Update the CHANGELOG

  • Update CHANGELOG.md: this is automated.

    Use devenv and the commitizen tool:

    git fetch --tags origin  # make sure your local tags are same as in github
    cz bump --files-only  # --files-only prevents the tool making a git tag
    

    This will use the commit history and modify CHANGELOG.md to include a heading with the new version number and the date. It also updates .cz.toml. The tool automatically decides whether to increment the patch version, minor version or major version.

    If none of the commits since the last version tag would generate a CHANGELOG entry, then you will see NO_COMMITS_TO_BUMP. In this situation,

    >$ # only if you see NO_COMMITS_TO_BUMP... add one to the patch number
    >$ cz bump --files-only x.y.z+1  # !! substitute correct version
    >$ vi CHANGELOG.md  # edit to explain that there are no changes
    
  • If you like, you can manually edit CHANGELOG.md at this point. Consider moving important entries under these headings, or writing under them (see Keep A Changelog):

    • Deprecated
    • Removed
    • Security
  • Create a release branch git checkout -b release/vx.y.z

  • git add the modifications, then git commit and git push them.

  • Create a PR (title: docs: Update CHANGELOG for vx.y.z)

  • Ask a colleague to review the changes (should be just CHANGELOG.md and pyproject.toml)

  • Squash merge the PR into main

Trigger the release workflow

  • Go to github.com and on this repo's home page, click "Create a new release"
  • Using the version in the format v1.2.34, click "Choose a tag" and create a new tag
  • Click "Generate release notes"
  • Release title = v1.2.34. In the "Describe this release" box, copy and paste the new text that was added to CHANGELOG.md in the commit you are releasing.
  • Click "Publish release".
  • The "Create release" workflow should run automatically.
  • Check that the new release is on https://pypi.org/project/quantinuum-schemas/#history

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

quantinuum_schemas-3.1.1.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

quantinuum_schemas-3.1.1-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file quantinuum_schemas-3.1.1.tar.gz.

File metadata

  • Download URL: quantinuum_schemas-3.1.1.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.17 Linux/6.11.0-1013-azure

File hashes

Hashes for quantinuum_schemas-3.1.1.tar.gz
Algorithm Hash digest
SHA256 5ae7b01aa29d68b96bd24e31cc98b3a80bd1557b99873ba188ac84fac22fd7c3
MD5 02cab1f48d1b0e49152f50a159b27eeb
BLAKE2b-256 cf10458a5953e08fe8a74ee0739557223e80998a9fd5215eba7096f51bd7f725

See more details on using hashes here.

File details

Details for the file quantinuum_schemas-3.1.1-py3-none-any.whl.

File metadata

  • Download URL: quantinuum_schemas-3.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.17 Linux/6.11.0-1013-azure

File hashes

Hashes for quantinuum_schemas-3.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 91f8e5109a197c3cafc4766f0fce14b56bf51b25a0d6061878e690bbde28aa07
MD5 a3df90a9902e8d4071c01a59e2d4a485
BLAKE2b-256 b1130518d88e5a0c31434595db5b383ece6f83dfdbc8b96a06f646091500366d

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