Package python3-module-mock: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | %define _unpackaged_files_terminate_build 1 %define pypi_name mock %define mod_name %pypi_name %def_with check Name: python3-module-%pypi_name Version: 5.1.0 Release: alt1 Summary: Rolling backport of unittest.mock for all Pythons License: BSD-2-Clause Group: Development/Python3 Url: https://pypi.org/project/mock/ Vcs: https://github.com/testing-cabal/mock BuildArch: noarch Source: %name-%version.tar Source1: %pyproject_deps_config_name %pyproject_runtimedeps_metadata BuildRequires(pre): rpm-build-pyproject %pyproject_builddeps_build %if_with check %pyproject_builddeps_metadata_extra test %endif %description mock is a library for testing in Python. It allows you to replace parts of your system under test with mock objects and make assertions about how they have been used. mock is now part of the Python standard library, available as unittest.mock in Python 3.3 onwards. This package contains a rolling backport of the standard library mock code compatible with Python 3.6 and up. %prep %setup %pyproject_deps_resync_build %pyproject_deps_resync_metadata %build %pyproject_build %install %pyproject_install %check %pyproject_run_pytest -ra -Wignore %files %doc README.rst %python3_sitelibdir/%mod_name/ %python3_sitelibdir/%{pyproject_distinfo %pypi_name}/ %changelog * Wed Jul 26 2023 Stanislav Levin <slev@altlinux.org> 5.1.0-alt1 - 5.0.2 -> 5.1.0. * Mon May 22 2023 Stanislav Levin <slev@altlinux.org> 5.0.2-alt1 - 4.0.3 -> 5.0.2. * Sat Mar 05 2022 Stanislav Levin <slev@altlinux.org> 4.0.3-alt2 - Fixed FTBFS (Python 3.10). * Sun Aug 15 2021 Vitaly Lipatov <lav@altlinux.ru> 4.0.3-alt1 - new version 4.0.3 (with rpmrb script) * Sun Nov 08 2020 Vitaly Lipatov <lav@altlinux.ru> 4.0.2-alt1 - new version 4.0.2 (with rpmrb script) * Sun Nov 08 2020 Vitaly Lipatov <lav@altlinux.ru> 2.0.0-alt2 - build python3 package separately, cleanup spec * Mon Oct 17 2016 Alexey Shabalin <shaba@altlinux.ru> 2.0.0-alt1 - 2.0.0 * Sun Mar 13 2016 Ivan Zakharyaschev <imz@altlinux.org> 1.3.0-alt1.git20150731.1.1 - (NMU) rebuild with rpm-build-python3-0.1.9 (for common python3/site-packages/ and auto python3.3-ABI dep when needed) * Thu Jan 28 2016 Mikhail Efremov <sem@altlinux.org> 1.3.0-alt1.git20150731.1 - NMU: Use buildreq for BR. * Sun Aug 02 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.3.0-alt1.git20150731 - Snapshot from git * Sat Jul 25 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.3.0-alt1 - Version 1.3.0 * Fri Aug 29 2014 Lenar Shakirov <snejok@altlinux.ru> 1.0.1-alt1 - 1.0.1 * Wed Jan 02 2013 Igor Vlasenko <viy@altlinux.ru> 0.8.0-alt1 - 0.8.0 * Thu Oct 20 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 0.7.2-alt2 - Rebuild with Python-2.7 * Mon Oct 17 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 0.7.2-alt1 - 0.7.2 * Mon Mar 14 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 0.7.0-alt1 - Initial |