python-ci_messages
This is a thin wrapper around the CI Messages spec which provides a representation of the schemas defined in that project as a fedora-messaging message schema. This project defines a single schema class with a single entry point named 'ci_messages.CIMessageV1', so far as fedora-messaging is concerned. When the body schema for a particular message is requested, the class reads the appropriate schema file for the topic from disk, and returns that.
Installation and use
You can visit the python-ci_messages project page on Pagure, and clone with git clone https://pagure.io/fedora-qa/python-ci_messages.git. Tarballs are released through PyPI.
Dependencies are listed in the file install.requires. To install the module systemwide, run python setup.py install.
In addition to the Python module dependencies, the module requires access to the CI Messages schemas as JSON files. By default it will attempt to read them from the directory /usr/share/ci/messages. You can change this location by creating a file /etc/python-ci_messages.conf or ~/.config/python-ci_messages.conf with contents like this:
[main]
schemapath = /path/to/schema/location
You can produce the JSON files from a CI Messages git checkout by running make convert, which will place them in a subdirectory named tmp.
As long as the module is installed, it will be used automatically by any fedora-messaging consumer for messages which declare they follow this schema in their headers. For more information on fedora-messaging, see its documentation.
This module requires Python 3.6 or higher (as it uses f-strings).
Bugs, pull requests etc.
You can file issues and pull requests on Pagure. Pull requests must be signed off (use the -s git argument). By signing off your pull request you are agreeing to the Developer's Certificate of Origin:
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or
(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or
(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.
(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.
Licensing
python-ci_messages is available under the GPL, version 3 or any later version. A copy is included as COPYING.
Metadata
Release files for ci-messages 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ci_messages-0.2.1.tar.gz | 22.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ci_messages-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 40.4 kB
Release files / ci_messages-0.2.1.tar.gz
| Download URL | ci_messages-0.2.1.tar.gz |
|---|---|
| Size | 22.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3a8cecb7cdde161e0affe0ca4a59aca9a2b4db3f2a6a6247efe4f43625f4655
|
|
BLAKE2b-256 checksum How to use checksums |
9fc8952196089e781804817980b4aea2411c8c9f50b01e5c886dfcdb1dd5a64c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.0b3
|
Release files / ci_messages-0.2.1-py3-none-any.whl
| Download URL | ci_messages-0.2.1-py3-none-any.whl |
|---|---|
| Size | 18.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
39e5de6220db98b04ebeabd356859dca9527cc41d63d2fd1353b8889fc037205
|
|
BLAKE2b-256 checksum How to use checksums |
f0dd6696b7953dd93e2f323ee1ee2046c5d3ec77d6c2e8da201ddb7df77a4fa4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.0b3
|
Security for ci-messages 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.