Commit Graph

14 Commits

Author SHA1 Message Date
Miro Hrončok
02e3a9d723 Revert "CI: Temporarily install rpmlint from c10s Koji"
rpmlint is now in EPEL 10: https://bugzilla.redhat.com/2319854

This reverts commit f0e1e59f1d.
2024-11-21 10:54:00 +01:00
Miro Hrončok
f0e1e59f1d CI: Temporarily install rpmlint from c10s Koji
rpmlint was removed from c10s, but it is still downloadable from c10s Koji.
python3-zstandard is a dependency of rpmlint, same situation.

Long-term, we hope rpmlint will be available in EPEL 10:

  https://bugzilla.redhat.com/2319854
2024-11-12 18:31:18 +01:00
Miro Hrončok
7862c9afeb CI: Install EPEL 10
- rpmlint will be fetched from EPEL 10
2024-11-12 18:31:00 +01:00
Karolina Surma
ebd0fe6b2c CI: Test only python3 byte compilation and pytest
pythontest.spec changes are roughly a revert to a state from Fedora dist-git's
commit hash: 37bf640f37
2024-09-06 14:02:03 +02:00
Miro Hrončok
13c1c0c519 CI tests: Assert rpmlint's python-bytecode-inconsistent-mtime is not happening 2022-12-21 12:18:48 +01:00
Miro Hrončok
18ceb6caef CI tests: Build pythontest.spec with and without %clamp_mtime_to_source_date_epoch 2022-12-21 12:18:48 +01:00
Karolina Surma
2d0673afb1 Add new options for %%py{3}_check_import: -f, -t, -e
-f: optionally read a file with module names to test
-t: bool flag - if set, filter only top-level modules
-e: optionally exclude module names matching the given glob (Unix
shell-style wildcards)
Importing all modules may cause bogus failures in some cases,
eg. when the imported code assumes there is an existing graphical window.
Such behaviour may be by design, hence for automatic processing it's
more convinient to - in some cases - check only for top-level modules
or filter out the troublemakers.
2021-10-27 15:57:37 +02:00
Petr Viktorin
77cc1a43a2 Test bytecompilation & hardlinking with 3.8 and 2.7 2021-09-10 17:50:49 +02:00
Miro Hrončok
76209d7bf3 Fedora CI eval tests: Make the python3.6 dependency optional
It is not available on RHEL 9, where we would like to be able to run the tests.

See https://bugzilla.redhat.com/show_bug.cgi?id=1984407
2021-08-24 21:35:32 +02:00
Karolina Surma
9d2fcef337 Use sysconfig.get_path() to define %python_sitelib and %python_sitearch
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.
2021-04-08 14:57:19 +02:00
Miro Hrončok
a712d455f8 python3-devel is required on the CI for pythontest.spec 2020-09-16 17:32:39 +02:00
Lumir Balhar
431e4380cc Add a test for %py_byte_compile macro 2020-09-07 11:20:40 +02:00
Miro Hrončok
72371929c5 Implement %pyX_shebang_fix
See https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/thread/UGCMDDG3S32U7JJK36OEZNHLUVQQRG3M/
2020-05-18 18:58:39 +02:00
Miro Hrončok
f5bea8c7b7 Fedora CI: Add eval tests for %python_provide and %py_provides 2020-05-05 13:54:28 +02:00