# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
---
task-defaults:
    description: "python wheels build"
    attributes:
        local-toolchain: true
    worker-type: b-linux-docker-amd
    worker:
        max-run-time: 3600
    run:
        toolchain-extract: false
        script: build-python-wheel.sh
        resources:
            - 'build/wheel_requirements.txt'

linux64-1804-dbus-python:
    treeherder:
        symbol: TL(py3.9-dbus-python)
    fetches:
        fetch:
            - dbus-python-1.2.18
        toolchain:
            - linux64-python-3.9
    run:
        toolchain-artifact: public/build/dbus_python-1.2.18-cp39-cp39-linux_x86_64.whl
    worker:
        docker-image: {in-tree: ubuntu1804-build-python-wheels}

linux64-2204-dbus-python:
    treeherder:
        symbol: TL(py3.10-dbus-python)
    fetches:
        fetch:
            - dbus-python-1.3.2
    run:
        toolchain-artifact: public/build/dbus_python-1.3.2-cp310-cp310-linux_x86_64.whl
    worker:
        docker-image: {in-tree: ubuntu2204-build-python-wheels}

linux64-2404-dbus-python:
    treeherder:
        symbol: TL(py3.12-dbus-python)
    fetches:
        fetch:
            - dbus-python-1.3.2
    run:
        toolchain-artifact: public/build/dbus_python-1.3.2-cp312-cp312-linux_x86_64.whl
    worker:
        docker-image: {in-tree: ubuntu2404-build-python-wheels}

linux64-aarch64-2404-dbus-python:
    treeherder:
        symbol: TL(py3.12-arm64-dbus-python)
    fetches:
        fetch:
            - dbus-python-1.3.2
    run:
        toolchain-artifact: public/build/dbus_python-1.3.2-cp312-cp312-linux_aarch64.whl
    worker:
        docker-image: {in-tree: ubuntu2404-arm64-build-python-wheels}
    worker-type: b-linux-aarch64

linux-python-dbusmock:
    treeherder:
        symbol: TL(py-python-dbusmock)
    fetches:
        fetch:
            - python-dbusmock-0.32.2
        toolchain:
            - linux64-python-3.9
    run:
        toolchain-artifact: public/build/python_dbusmock-0.32.2-py3-none-any.whl
    worker:
        docker-image: {in-tree: ubuntu1804-build-python-wheels}
