Core python library for Sudoblark.
Project description
sudoblark.python.core
The core Python library for Sudoblark, mainly used to power CLI tooling to augment CI/CD operations.
·
Report Bug
·
Request Feature
Table of Contents
About The Project
This is the core Python library for Sudoblark, mainly used to power CLI tooling to augment CI/CD operations.
The live source of documentation may be said to reside here. It is recommended for developers to at least read the "Developers notes" section before attempting to contribute to this repo.
Built With
- Library
- Testing and quality control
- Packaging
- Documentation
Getting Started
The below are instructions for how to develop the core library, for instructions on how to install see the Usage section instead.
Prerequisites
These installation instructions are targeted for MacOS.
- Python3.10
brew install python@3.10
- Poetry
python3.10 -m venv venv source venv/bin/activate pip install -U pip setuptools pip install poetry
Installation
Assume a local virtual environment, and poetry, are setup as per the Prerequisites then installation is simply:
poetry install
Which you may verify via:
python3
import sudoblark_python_core
help(sudoblark_python_core)
Usage
TODO
Technical Documentation
mkdocs is used in order to auto-generation documentation. It is configured via the docs/mkdocs.yml file and - for the most part - doesn't need to be altered. F
In order to generation a local web server of documentation:
mkdocs serve
However, it should be noted that live versioned documentation is produced during
the release process by an admin running the mkdocs gh-deploy --force command.
Testing
The Behave! library is utilised in order to conduct end-to-end testing, hopefully proving we can actually interact in a reliable fashion with the GitHub RESTAPI.
For those uninitiated, the basic premise is:
- The features folder is the root of Behave!
- At this top-level, it contains
.featurefiles, which are used to define our test cases - In the nested
stepsfolder, we will define what the test case components mean in programmatic terms
Checks may be run by simply executing behave locally once the Installation steps have been followed.
NOTE: All scenarios require a valid GITHUB_TOKEN environment variable to be present
Packaging
The package is published to PyPi simply by running the below commands:
poetry build
poetry config pypi-token.pypi <token>
poetry publish
CI/CD
GitHub Actions is used for all CI/CD activities. We give a brief outline of what each pipeline does below.
| Pipeline | Triggers | Description |
|---|---|---|
| commit-to-pull-request.yaml | Commit on a pull request | Runs flake8 and behavioural tests |
License
Distributed under the project_license. See LICENSE.txt for more information.
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 sudoblark_python_core-1.0.0.tar.gz.
File metadata
- Download URL: sudoblark_python_core-1.0.0.tar.gz
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.10.15 Darwin/23.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cfefa573a6c3b74e6e8cc1ec27a2bcea981d4028a865bde8981c3f0debf6a6c6
|
|
| MD5 |
93c371c4417a407858e38f810b6d9943
|
|
| BLAKE2b-256 |
698d72c613a33ad123b7298f38f01406411a74c7fc7eeb10d590f82041d17871
|
File details
Details for the file sudoblark_python_core-1.0.0-py3-none-any.whl.
File metadata
- Download URL: sudoblark_python_core-1.0.0-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.10.15 Darwin/23.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a77c4cc3bbf1c89e17faf24eec0541ad63d16428205d0e7acb4d54bad442a3c2
|
|
| MD5 |
b1428f19104eebe984a1f5b2f274cceb
|
|
| BLAKE2b-256 |
7afadc648650afb9aa22aab3d61ca7e4cb85b473b5f76cdd2f84c03e7efe9e78
|