2023-08-10 12:40:30 +00:00
|
|
|
---
|
|
|
|
- hosts: localhost
|
|
|
|
tags:
|
|
|
|
- classic
|
|
|
|
tasks:
|
|
|
|
- dnf:
|
|
|
|
name: "*"
|
|
|
|
state: latest
|
|
|
|
|
|
|
|
- hosts: localhost
|
|
|
|
roles:
|
|
|
|
- role: standard-test-basic
|
|
|
|
tags:
|
|
|
|
- classic
|
|
|
|
tests:
|
|
|
|
- pytest:
|
|
|
|
dir: .
|
2023-08-10 12:45:56 +00:00
|
|
|
run: PYTHONPATH=/usr/lib/rpm/redhat ALTERNATE_PYTHON_VERSION=skip pytest-3.11 -v
|
2023-08-10 12:40:30 +00:00
|
|
|
- manual_byte_compilation_clamp_mtime_off:
|
|
|
|
dir: .
|
|
|
|
run: rpmbuild --define 'dist .clamp0' --define 'clamp_mtime_to_source_date_epoch 0' -ba pythontest.spec
|
|
|
|
- manual_byte_compilation_clamp_mtime_on:
|
|
|
|
dir: .
|
|
|
|
run: rpmbuild --define 'dist .clamp1' --define 'clamp_mtime_to_source_date_epoch 1' -ba pythontest.spec
|
|
|
|
- rpmlint_clamp_mtime_off:
|
|
|
|
dir: .
|
|
|
|
run: rpmlint ~/rpmbuild/RPMS/x86_64/pythontest-0-0.clamp0.x86_64.rpm | grep python-bytecode-inconsistent-mtime || exit 0 && exit 1
|
|
|
|
- rpmlint_clamp_mtime_on:
|
|
|
|
dir: .
|
|
|
|
run: rpmlint ~/rpmbuild/RPMS/x86_64/pythontest-0-0.clamp1.x86_64.rpm | grep python-bytecode-inconsistent-mtime || exit 0 && exit 1
|
|
|
|
required_packages:
|
|
|
|
- rpm-build
|
|
|
|
- rpmlint
|
|
|
|
- python-rpm-macros
|
|
|
|
- python3-rpm-macros
|
2023-08-10 12:45:56 +00:00
|
|
|
- python3.11-rpm-macros
|
|
|
|
- python3.11-devel
|
|
|
|
- python3.11-pytest
|
|
|
|
- python3
|
2023-08-10 12:40:30 +00:00
|
|
|
- python3-devel
|
2023-08-10 12:45:56 +00:00
|
|
|
- python2
|
2023-08-10 12:40:30 +00:00
|
|
|
|