Commit graph

  • 0d417402db %python_extras_subpkg: Only %ghost the egg-info/dist-info directory, not the content rawhide main Miro Hrončok 2025-10-16 16:10:53 +02:00
  • 9e5c1461f2 %python_extras_subpkg: Add -v option to specify the required version(-release) Miro Hrončok 2025-09-09 15:00:10 +02:00
  • 47de23b3c0 %python_wheel_inject_sbom: Don't accidentally alter nested .dist-infos Miro Hrončok 2025-08-29 13:46:23 +02:00
  • 7d4cb5437d Introduce %python_wheel_inject_sbom Miro Hrončok 2025-07-22 20:51:50 +02:00
  • 364d99f4e1 import_all_modules: Add error handling for import failures f43 Lumir Balhar 2025-08-05 20:16:56 +02:00
  • bfd1bc9738 Drop STI and use tmt instead Lukáš Zachar 2025-07-25 18:19:58 +02:00
  • 066459f836 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild Fedora Release Engineering 2025-07-25 10:14:58 +00:00
  • d91434575c pathfix.py: Don't fail on symbolic links f42 f41 Íñigo Huguet 2025-07-21 08:07:36 +02:00
  • 5cdc4d85a7 pathfix.py: Don't fail on symbolic links Íñigo Huguet 2025-07-21 08:07:36 +02:00
  • b8a5807572 Deprecate %py3_build, %py3_build_wheel, and %py3_install Miro Hrončok 2024-09-23 16:55:23 +02:00
  • 6b1cf3771c The "exclude" variable in python_bytecompile is no longer used, so remove it. Gordon Messmer 2025-05-18 22:35:06 -07:00
  • a74d2bb5c9 Minor style fixes suggested by ShellCheck. Mostly, these consist of preferring '[[' to '[' in bash scripts. Other changes include quoting unquoted variables, and explicitly specifying bash as the interpreter for scripts that use features not defined in POSIX sh Gordon Messmer 2025-05-18 18:35:59 -07:00
  • 888775f1c5 Switch default Python version to 3.14 Karolina Surma 2025-05-28 10:32:43 +02:00
  • 4ddd2ea298 Eliminate use of ambiguous logical operators in script conditionals Pavlina Moravcova Varekova 2019-08-09 16:30:43 +02:00
  • a3ba11ea64 Add BuildRoot Policy script to modify the content of .dist-info/INSTALLER file Tomáš Hrnčiar 2025-02-14 10:14:05 +01:00
  • 2c230bfcac Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild Fedora Release Engineering 2025-01-18 19:00:07 +00:00
  • ef26565647 Stop testing Python 2.7 on the CI, we don't have it any more Miro Hrončok 2024-09-23 17:19:32 +02:00
  • d9e31f7897 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild Fedora Release Engineering 2024-07-19 15:32:23 +00:00
  • ea2cded122 Add option -a to include BuilArch: noarch f40 f39 Cristian Le 2024-04-10 09:33:39 +02:00
  • 840a26c515 Add option -a to include BuilArch: noarch Cristian Le 2024-04-10 09:33:39 +02:00
  • d430201e60 CI tests fix for Python 3.13 Miro Hrončok 2024-06-25 12:34:11 +02:00
  • a389cc4674 Update main Python to 3.13 Karolina Surma 2023-10-16 16:45:02 +02:00
  • 7a65802b34 Adjust mtime clamping to $SOURCE_DATE_EPOCH detection logic to RPM 4.20+ Miro Hrončok 2024-05-22 16:07:53 +02:00
  • d211646a5e brp-fix-pyc-reproducibility: use more strict shell style Zbigniew Jędrzejewski-Szmek 2024-03-01 00:27:31 +01:00
  • 2acd7cb9b3 Update bundled compileall2 to version 0.8.0 Lumir Balhar 2024-03-21 17:02:42 +01:00
  • 1cf0ae1d4e brp-fix-pyc-reproducibility: suppress python2 files and errors Zbigniew Jędrzejewski-Szmek 2024-03-01 10:20:49 +01:00
  • c41028c137 brp-fix-pyc-reproducibility: automatically call on whole of /usr Zbigniew Jędrzejewski-Szmek 2024-03-01 00:41:41 +01:00
  • 4d0e0a6f64 Update macros.python-srpm huakim tylyktar 2024-03-09 09:27:25 +00:00
  • fd83285d56 brp-fix-pyc-reproducibility: use more strict shell style Zbigniew Jędrzejewski-Szmek 2024-03-01 00:27:31 +01:00
  • b2f798fc81 %py3_test_envvars: Only set $PYTEST_XDIST_AUTO_NUM_WORKERS if not already set Miro Hrončok 2023-01-18 16:36:05 +01:00
  • d1c3ea93f8 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild Fedora Release Engineering 2024-01-22 06:41:47 +00:00
  • 5eec3f7602 Fix python macro memoizing to account for changing %__python3 Maxwell G 2023-05-31 17:05:04 -05:00
  • c765382ec8 Fix the changelog entries Karolina Surma 2023-09-01 16:22:10 +02:00
  • d4a26d93d0
    Remove %py3_build_egg and %py3_install_egg macros. Maxwell G 2023-09-05 00:42:40 -05:00
  • 4e63af0532 Allow to pass the %%py_import_check if no modules are detected Karolina Surma 2023-09-01 15:23:11 +02:00
  • 1ee4bac01e Fix the changelog entries Karolina Surma 2023-09-01 16:22:10 +02:00
  • f74d2531bd Test tests Tomas Orsava 2023-08-10 12:15:01 +02:00
  • 933da64fe6 Declare the license as an SPDX expression Karolina Surma 2023-08-09 11:08:17 +02:00
  • f6368ebcaa Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Fedora Release Engineering 2023-07-21 13:45:20 +00:00
  • 3c21a3a258 Python 3.12 Tomáš Hrnčiar 2023-06-13 14:43:51 +02:00
  • ab39941027
    Expose the environment variables used by %pytest via %{py3_test_envvars} f37 Miro Hrončok 2022-10-24 17:47:59 +02:00
  • 10e0e5309d Don't assume %_smp_mflags only ever contains -jX, use -j%_smp_build_ncpus directly f38 Miro Hrončok 2023-03-16 19:43:17 +01:00
  • 3ca74ad94c Memoize values of macros that execute python to get their value Miro Hrončok 2023-01-06 15:04:29 +01:00
  • 9a36534a95 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Fedora Release Engineering 2023-01-20 17:04:00 +00:00
  • a3ea23bd5e Bytecompilation: Compile Python files in parallel, according to %_smp_mflags Miro Hrončok 2022-12-19 15:14:32 +01:00
  • 13c1c0c519 CI tests: Assert rpmlint's python-bytecode-inconsistent-mtime is not happening Miro Hrončok 2022-12-19 15:06:03 +01:00
  • 18ceb6caef CI tests: Build pythontest.spec with and without %clamp_mtime_to_source_date_epoch Miro Hrončok 2022-12-19 14:42:54 +01:00
  • cb1dbcc44b Add Python 2.7 support to clamp_source_mtime.py Miro Hrončok 2022-12-19 14:38:05 +01:00
  • 77912c744d Add a script to clamp source mtimes, invoke it from the bytecompilation BRP/macro Miro Hrončok 2022-12-15 21:06:17 +01:00
  • b3ba484268 XXX DO NOT MERGE break the implementation to see the CI fail Miro Hrončok 2022-12-19 15:59:06 +01:00
  • eac0a1f077 Bytecompilation: Compile Python files in parallel, according to %_smp_mflags Miro Hrončok 2022-12-19 15:14:32 +01:00
  • ebc517d2e5 CI tests: Assert rpmlint's python-bytecode-inconsistent-mtime is not happening Miro Hrončok 2022-12-19 15:06:03 +01:00
  • 3af689b0eb CI tests: Build pythontest.spec with and without %clamp_mtime_to_source_date_epoch Miro Hrončok 2022-12-19 14:42:54 +01:00
  • 304acae3b7 Add Python 2.7 support to clamp_source_mtime.py Miro Hrončok 2022-12-19 14:38:05 +01:00
  • 325f3ec61e Add a script to clamp source mtimes, invoke it from the bytecompilation BRP/macro Miro Hrončok 2022-12-15 21:06:17 +01:00
  • e4baf5ab7e Bytecompilation: Pass --invalidation-mode=timestamp to compileall Miro Hrončok 2022-12-15 20:24:53 +01:00
  • eb7a4fda28 Bytecompilation: Unset $SOURCE_DATE_EPOCH when %clamp_mtime_to_source_date_epoch is not set Miro Hrončok 2022-12-12 11:13:46 +01:00
  • e3494799f8 Test data: use csv which will not be removed from stdlib soon Karolina Surma 2022-12-14 15:37:02 +01:00
  • b647925300 Expose the environment variables used by %pytest via %{py3_test_envvars} Miro Hrončok 2022-10-24 17:47:59 +02:00
  • 86c391c493 Set PYTEST_XDIST_AUTO_NUM_WORKERS=%{_smp_build_ncpus} from %pytest Miro Hrončok 2022-10-24 17:34:50 +02:00
  • 14edaf699e Include pathfix.py in this package f35 Lumir Balhar 2022-10-25 10:57:44 +02:00
  • f68b0132a1 Include pathfix.py in this package f36 Lumir Balhar 2022-10-25 10:57:44 +02:00
  • bb334db9f3 Include pathfix.py in this package Lumir Balhar 2022-10-25 10:57:44 +02:00
  • 8847b3750a Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Fedora Release Engineering 2022-07-22 22:07:20 +00:00
  • b7bcd2829e Disable certain rpminspect inspections not relevant to this package Charalampos Stratakis 2022-01-28 17:04:43 +01:00
  • 24dc66a003 Define and use %{_py3_shebang_s} in the shebang macros for easier opt-out Miro Hrončok 2022-07-19 16:34:01 +02:00
  • d83a32823c Define and use %{_py3_shebang_s} in the shebang macros for easier opt-out Miro Hrončok 2022-07-19 16:34:01 +02:00
  • 4abed5f105 Use the values of %_py3_shebang_s and %_py3_shebang_P in the shebang opts/flags Miro Hrončok 2022-07-19 01:15:20 +02:00
  • 4d31ea8034 https://fedoraproject.org/wiki/Changes/PythonSafePath Miro Hrončok 2022-06-28 16:40:22 +02:00
  • bb20c6908e Define %python3_cache_tag / %python_cache_tag, e.g. cpython-311 Miro Hrončok 2022-07-19 11:14:59 +00:00
  • 3cce7271e4 Define %python3_cache_tag / %python_cache_tag, e.g. cpython-311 Miro Hrončok 2022-07-19 09:42:56 +00:00
  • 4085ef49f2 Define %python3_cache_tag / %python_cache_tag, e.g. cpython-311 Miro Hrončok 2022-06-20 15:53:20 +02:00
  • ad03609547 Update tests/tests.yml Aleksandra Fedorova 2022-06-30 12:37:57 +00:00
  • f15508286b Update tests/tests.yml Aleksandra Fedorova 2022-06-30 12:23:06 +00:00
  • 116a6c886a Do not merge: ansible vars test Aleksandra Fedorova 2022-06-30 11:57:33 +00:00
  • ada6514577 DO NOT MERGE THIS Miro Hrončok 2022-06-23 11:30:32 +02:00
  • aa8dffeb8e
    Write %__default_python3_version value from spec Maxwell G 2022-06-25 22:54:25 -05:00
  • 66a9033eb4
    Define %forgesetupargs in %pypi_source so users can call %forgeautosetup Maxwell G 2022-06-25 22:47:55 -05:00
  • b8b5cb92da Python 3.11 Tomáš Hrnčiar 2022-06-13 11:23:37 +02:00
  • d174f03f62 Merge f36 and rawhide Miro Hrončok 2022-06-09 13:48:28 +02:00
  • 546e9a3544 Support installing to %{_prefix} other than /usr Owen W. Taylor 2022-05-26 23:03:12 -04:00
  • cfa45dfdf3 Add a note: Python 3.11+ no longer needs PYTHONHASHSEED=0 Miro Hrončok 2022-05-12 11:43:00 +02:00
  • 9102e29afc Don't use ! ... as a check Miro Hrončok 2022-04-06 19:08:32 +02:00
  • fba6a77032 Proof of concept: Macros to manipulate %py3_shebang_flags Miro Hrončok 2022-02-24 12:22:20 +01:00
  • e250f28d09 %py_provides: Do not generate Obsoletes for names containing parentheses Tomas Orsava 2022-02-08 11:53:45 +01:00
  • cb6359bbdd Set $RPM_BUILD_ROOT in %{python3_...} macros, for alternate sysconfig install scheme Miro Hrončok 2021-09-03 16:06:03 +02:00
  • 99e7d8694c Explicitly opt-out from Python name-based provides and obsoletes generators Miro Hrončok 2022-01-31 12:05:30 +01:00
  • 2ebee9d4cb Disable certain rpminspect inspections not relevant to this package Charalampos Stratakis 2022-01-28 17:04:43 +01:00
  • 5547a87f0b Add eval tests to RHEL %py_provides Obsoletes functionality Miro Hrončok 2022-01-20 12:24:10 +01:00
  • 5d7727c2aa Add lua helper functions to make it possible to automatically generate Obsoletes tags Tomas Orsava 2021-11-26 12:10:52 +01:00
  • a8b26546eb Set %__python3 value according to %python3_pkgversion Miro Hrončok 2021-12-08 12:16:03 +01:00
  • b55e6151bd Move %python3_pkgversion definition earlier in the file Miro Hrončok 2021-12-08 14:37:09 +01:00
  • 81b1e19783 Move import_all_modules out of python-srpm-macros f33 Miro Hrončok 2021-11-01 16:04:22 +01:00
  • ddc1b5c5ca %py(3)_check_import: Process .pth files in site(arch|lib) Miro Hrončok 2021-11-01 15:53:43 +01:00
  • 75a3c6b647 Fix %%py_shebang_flags handling within %%py_check_import Karolina Surma 2021-11-01 13:17:42 +01:00
  • 208372b286 Allow multiline arguments processing for %%py3_check_import Karolina Surma 2021-11-01 09:42:39 +01:00
  • 65bf55d5d3 Move import_all_modules out of python-srpm-macros f34 Miro Hrončok 2021-11-01 16:04:22 +01:00
  • ebc198dc84 %py(3)_check_import: Process .pth files in site(arch|lib) Miro Hrončok 2021-11-01 15:53:43 +01:00
  • 4a65e2cfa6 Fix %%py_shebang_flags handling within %%py_check_import Karolina Surma 2021-11-01 13:17:42 +01:00
  • aa7cf4e2bd Allow multiline arguments processing for %%py3_check_import Karolina Surma 2021-11-01 09:42:39 +01:00