Validation tools for the yaml template used by DIALS Inference Service Manager.
Project description
dism-core
DIALS Inference Service Manager Core or simply dism-core is a python package that provides core functionality for validating custom YAML templates used to manage custom InferenceService resources in KServe managed by DIALS. It leverages the pydantic library to ensure that the YAML templates conform to the required schema.
[!WARNING] This package is not intended to be installed or used directly. Instead, it serves as a foundational library for other packages that require YAML validation for KServe custom
InferenceServicedeployments.
Development
Install the dependencies and the package using uv:
uv sync --all-groups
uv run pre-commit install
uv pip install -e .
Running tests
Run tests with pytest:
uv run pytest tests
Tox
You may also want to run the tests with tox to test against multiple python versions:
uv run tox
asdf users
tox requires multiple versions of Python to be installed. Using asdf, you have multiple versions installed, but they aren’t normally exposed to the current shell. You can use the following command to expose multiple versions of Python in the current directory:
asdf set python 3.12.9 3.11.10 3.10.13
This will use 3.12.9 by default (if you just run python), but it will also put python3.11 and python3.10 symlinks in your PATH so you can run those too (which is exactly what tox is looking for).
Releasing the package on PyPI
The package is available in PyPI at cmsdials, under the cmsdqm organization. You'll need at leat Mantainer rights to be able to push new versions. This package is not meant to be deployed in PyPI, since it is simply a foundational library for dials-service and dism-cli.
CI
The GitLab CI is configured to automatically publish the release notes in GitLab whever a tag is pushed to the repo.
[!NOTE] For this to work the CI/CD variables named
UV_PUBLISH_TOKENandGITLAB_TOKENshould be registered in gitlab. TheGITLAB_TOKENis a Project Access Token with api read/write rights, which is needed to read merge requests using theglab-cli. https://gitlab.cern.ch/cms-dqmdc/libraries/dism-core/-/settings/access_tokens
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dism_core-1.5.0.tar.gz.
File metadata
- Download URL: dism_core-1.5.0.tar.gz
- Upload date:
- Size: 32.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
839c16289aaac97a8c3c4c132745151dade042aa2d9d20e7b645bd3150cee4af
|
|
| MD5 |
3aa3ec4e7bc70ea65315c1d6c9ebdb3b
|
|
| BLAKE2b-256 |
df20908d967279426741fe3c327af501a7b047431176321317471414f008a5c6
|
File details
Details for the file dism_core-1.5.0-py3-none-any.whl.
File metadata
- Download URL: dism_core-1.5.0-py3-none-any.whl
- Upload date:
- Size: 30.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b3cf84d575881a80f23b74f514d419bba8e81abf85017e4dfa689f667f098d9
|
|
| MD5 |
cfad09c6cda2689fd94d23b8caad0aa9
|
|
| BLAKE2b-256 |
55983a0fe93e25c22b3bc9eebe9405ba92f9b8b5e47a2dcb1d71a23cebb7b80d
|