Skip to main content

shrub.py

A python based Evergreen project config generation library

PyPI - Python Version PyPI version

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)

Source distribution for shrub.py 1.1.3
File Size Uploaded
shrub.py-1.1.3.tar.gz 23.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for shrub.py 1.1.3
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

3.10.0

2 release files

3.9.0

2 release files

3.8.0

2 release files

3.7.0

2 release files

3.6.0

2 release files

3.5.0

2 release files

3.4.0

2 release files

3.3.2

2 release files

3.3.1

2 release files

3.3.0

2 release files

3.2.0

2 release files

3.1.5

2 release files

3.1.4

2 release files

3.1.3

2 release files

3.1.2

2 release files

3.1.1

2 release files

3.1.0

2 release files

3.0.8

2 release files

3.0.7

2 release files

3.0.6

2 release files

3.0.5

2 release files

3.0.4

2 release files

3.0.3

2 release files

3.0.2

2 release files

3.0.1

2 release files

3.0.0

2 release files

1.1.4

2 release files

This release

1.1.3 This release

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.3.0

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page