9d2fcef337
Distutils which were used to define the macros are deprecated in Python3.10: https://www.python.org/dev/peps/pep-0632/. Sysconfig isn't and it works across our Pythons, making it better choice for the task.
30 lines
485 B
YAML
30 lines
485 B
YAML
---
|
|
- hosts: localhost
|
|
tags:
|
|
- classic
|
|
tasks:
|
|
- dnf:
|
|
name: "*"
|
|
state: latest
|
|
|
|
- hosts: localhost
|
|
roles:
|
|
- role: standard-test-basic
|
|
tags:
|
|
- classic
|
|
tests:
|
|
- pytest:
|
|
dir: .
|
|
run: pytest -v
|
|
- manual_byte_compilation:
|
|
dir: .
|
|
run: rpmbuild -ba pythontest.spec
|
|
required_packages:
|
|
- rpm-build
|
|
- python-rpm-macros
|
|
- python3-rpm-macros
|
|
- python3-devel
|
|
- python3-pytest
|
|
- python3.6
|
|
|