qusal/salt/dev/install-python-tools.sls
Ben Grande 80a576e4e6
feat: add Qubes development formula
Contributing to Qubes OS using Debian is possible, but there are edge
cases with linter versions, GUI editor versions, test packages in
run-tests that are better supported on Fedora, as this is the template
that Qubes OS developers most use.

Fixes: https://github.com/ben-grande/qusal/issues/139
Fixes: https://github.com/ben-grande/qusal/issues/126
2025-08-25 08:41:44 +02:00

46 lines
1 KiB
Text

{#
SPDX-FileCopyrightText: 2023 - 2025 Benjamin Grande M. S. <ben.grande.b@gmail.com>
SPDX-License-Identifier: AGPL-3.0-or-later
#}
{% if grains['nodename'] != 'dom0' -%}
include:
- utils.tools.common.update
"{{ slsdotpath }}-installed-python-tools":
pkg.installed:
- require:
- sls: utils.tools.common.update
- install_recommends: False
- skip_suggestions: True
- setopt: "install_weak_deps=False"
- pkgs:
- python3-setuptools
- python3-pytest
- python3-pip
- python3-mypy
- black
- pylint
# Fedora has python venv included with python3-libs.
{% set pkg = {
'Debian': {
'pkg': ['python3-dev', 'python3-venv'],
},
'RedHat': {
'pkg': ['python3-devel'],
},
}.get(grains.os_family) -%}
"{{ slsdotpath }}-installed-python-tools-os-specific":
pkg.installed:
- require:
- sls: utils.tools.common.update
- install_recommends: False
- skip_suggestions: True
- setopt: "install_weak_deps=False"
- pkgs: {{ pkg.pkg|sequence|yaml }}
{% endif %}