shrub.py
A python based Evergreen project config generation library
Overview
Based on shrub, shrub.py is a library for programatically building Evergreen project configurations described here.
Example
The following snippet will create a set of parallel tasks reported under a single display task. It
would generate json used by generate.tasks:
from shrub.v2 import ShrubProject, Task, BuildVariant
n_tasks = 10
def define_task(index):
name = f"task_name_{index}"
return Task(
name,
[
FunctionCall("do setup"),
FunctionCall(
"run test generator",
{"parameter_1": "value 1", "parameter_2": "value 2"}
),
FunctionCall("run tests")
],
).dependency("compile")
tasks = {define_task(i) for i in range(n_tasks)}
variant = BuildVariant("linux-64").display_task("test_suite", tasks)
project = ShrubProject({variant})
project.json()
Run tests
poetry run pytest
Release files for shrub.py 1.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| shrub.py-1.1.3.tar.gz | 23.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| shrub.py-1.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 51.6 kB
Release files / shrub.py-1.1.3.tar.gz
| Download URL | shrub.py-1.1.3.tar.gz |
|---|---|
| Size | 23.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
233d32becfb66227e11cffcb93beee7ed7b0352dfb4d60224b6bb2ad3a88fcc0
|
|
BLAKE2b-256 checksum How to use checksums |
adc208e19981269b67fc9ddceabb388938482d3e18cf1631bb5b39a1bf162e26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.9.2 Linux/4.15.0-1044-aws
|
Release files / shrub.py-1.1.3-py3-none-any.whl
| Download URL | shrub.py-1.1.3-py3-none-any.whl |
|---|---|
| Size | 27.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d719eb52c238272eed998a4c30780c512b3409b6b34509e5cc0dc44ea0a7ed77
|
|
BLAKE2b-256 checksum How to use checksums |
e5ee52d64b9cfef942d3e64a81ab0053b257f86fb0fd9f4002f48f3f9e18e091
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.9.2 Linux/4.15.0-1044-aws
|