Package python3-module-mypy: 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 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 | %define _unpackaged_files_terminate_build 1 %define pypi_name mypy %def_with check # mypyc doesn't work on 32bit arches # https://github.com/mypyc/mypyc/issues/760 %ifarch %ix86 armh %def_without mypyc %else %def_with mypyc %endif Name: python3-module-%pypi_name Version: 1.10.0 Release: alt1 Summary: Optional static typing for Python 3 and 2 (PEP 484) License: MIT Group: Development/Python3 Url: https://pypi.org/project/mypy/ VCS: https://github.com/python/mypy Source: %name-%version.tar Source1: %pyproject_deps_config_name Patch0: %name-%version-alt.patch %pyproject_runtimedeps_metadata BuildRequires(pre): rpm-build-pyproject %add_pyproject_deps_build_filter types- %pyproject_builddeps_build %if_with check BuildRequires: /proc BuildRequires: gcc-c++ %pyproject_builddeps_metadata %pyproject_builddeps_check # required for mypy/test/testpep561.py BuildRequires: python3-module-hatchling BuildRequires: python3-module-editables %endif # Needed to generate the man pages BuildRequires: help2man %description Mypy is an optional static type checker for Python. You can add type hints to your Python programs using the upcoming standard for type annotations introduced in Python 3.5 beta 1 (PEP 484), and use mypy to type check them statically. Find bugs in your programs without even running them! %if_with mypyc %package -n python3-module-mypyc Summary: Mypy to Python C Extension Compiler Group: Development/Python3 Requires: python3-module-%pypi_name = %EVR Requires: python3-dev %description -n python3-module-mypyc Mypyc is a compiler that compiles mypy-annotated, statically typed Python modules into CPython C extensions. Currently our primary focus is on making mypy faster through compilation -- the default mypy wheels are compiled with mypyc. Compiled mypy is about 4x faster than without compilation. %endif %prep %setup %autopatch -p1 %pyproject_deps_resync_build %pyproject_deps_resync_metadata %if_with check %pyproject_deps_resync_check_pipreqfile test-requirements.in %endif %build %pyproject_build %install %pyproject_install %if "%python3_sitelibdir" != "%python3_sitelibdir_noarch" mkdir -p %buildroot%python3_sitelibdir mv %buildroot%python3_sitelibdir_noarch/* %buildroot%python3_sitelibdir/ %endif mv %buildroot%python3_sitelibdir/mypy/{typeshed,mypy_typeshed} ln -sr %buildroot%python3_sitelibdir/mypy/{mypy_typeshed,typeshed} # Generate man pages mkdir -p %buildroot%_man1dir PYTHONPATH=%buildroot%python3_sitelibdir \ help2man --no-info --version-string 'mypy %version-dev' \ --no-discard-stderr -o %buildroot%_man1dir/mypy.1 \ %buildroot%_bindir/mypy PYTHONPATH=%buildroot%python3_sitelibdir \ help2man --no-info --version-string 'mypy stubgen %version-dev' \ --no-discard-stderr -o %buildroot%_man1dir/stubgen.1 \ %buildroot%_bindir/stubgen # don't package tests rm -r %buildroot%python3_sitelibdir/%pypi_name/test/ rm -r %buildroot%python3_sitelibdir/mypyc/external/googletest/ rm -r %buildroot%python3_sitelibdir/mypyc/test/ rm -r %buildroot%python3_sitelibdir/mypyc/test-data/ %if_without mypyc rm %buildroot%_bindir/mypyc rm -r %buildroot%python3_sitelibdir/mypyc/ %endif %check # https://github.com/mypyc/mypyc/issues/760 %ifarch %ix86 armh %define pytest_args --ignore mypyc/test %endif %pyproject_run_pytest -ra %{?pytest_args} %files %doc README.md %python3_sitelibdir/mypy/ %python3_sitelibdir/%{pyproject_distinfo %pypi_name}/ %_bindir/mypy %_bindir/dmypy %_bindir/stubgen %_bindir/stubtest %_man1dir/mypy.1* %_man1dir/stubgen.1* %if_with mypyc %files -n python3-module-mypyc %python3_sitelibdir/mypyc/ %_bindir/mypyc # Build script for mypyc C runtime library unit tests %exclude %python3_sitelibdir/mypyc/lib-rt/setup.py %exclude %python3_sitelibdir/mypyc/lib-rt/__pycache__/setup.* %endif %changelog * Thu Apr 25 2024 Stanislav Levin <slev@altlinux.org> 1.10.0-alt1 - 1.9.0 -> 1.10.0. * Mon Mar 18 2024 Stanislav Levin <slev@altlinux.org> 1.9.0-alt2 - Fixed FTBFS (hatchling 1.22.0). * Mon Mar 11 2024 Stanislav Levin <slev@altlinux.org> 1.9.0-alt1 - 1.8.0 -> 1.9.0. * Thu Feb 29 2024 Stanislav Levin <slev@altlinux.org> 1.8.0-alt3 - Fixed FTBFS (typing_extensions 4.10.0). * Tue Feb 20 2024 Stanislav Levin <slev@altlinux.org> 1.8.0-alt2 - Fixed FTBFS (hatchling 1.21.0). * Fri Dec 22 2023 Stanislav Levin <slev@altlinux.org> 1.8.0-alt1 - 1.7.1 -> 1.8.0. * Fri Dec 08 2023 Stanislav Levin <slev@altlinux.org> 1.7.1-alt1 - 1.7.0 -> 1.7.1. * Tue Nov 14 2023 Stanislav Levin <slev@altlinux.org> 1.7.0-alt1 - 1.6.1 -> 1.7.0. * Fri Oct 27 2023 Stanislav Levin <slev@altlinux.org> 1.6.1-alt1 - 1.5.1 -> 1.6.1. * Thu Aug 17 2023 Stanislav Levin <slev@altlinux.org> 1.5.1-alt1 - 1.5.0 -> 1.5.1. * Fri Aug 11 2023 Stanislav Levin <slev@altlinux.org> 1.5.0-alt1 - 1.4.1 -> 1.5.0. * Fri Jul 21 2023 Stanislav Levin <slev@altlinux.org> 1.4.1-alt1 - 1.3.0 -> 1.4.1. * Thu Jun 15 2023 Stanislav Levin <slev@altlinux.org> 1.3.0-alt2 - Fixed FTBFS (typing-extensions 4.6.3). * Thu May 11 2023 Stanislav Levin <slev@altlinux.org> 1.3.0-alt1 - 1.2.0 -> 1.3.0. * Tue Apr 25 2023 Stanislav Levin <slev@altlinux.org> 1.2.0-alt1 - 1.1.1 -> 1.2.0. * Tue Mar 07 2023 Stanislav Levin <slev@altlinux.org> 1.1.1-alt1 - 1.0.1 -> 1.1.1. * Tue Feb 21 2023 Stanislav Levin <slev@altlinux.org> 1.0.1-alt1 - 0.991 -> 1.0.1. * Tue Nov 15 2022 Stanislav Levin <slev@altlinux.org> 0.991-alt1 - 0.990 -> 0.991. * Wed Nov 09 2022 Stanislav Levin <slev@altlinux.org> 0.990-alt1 - 0.982 -> 0.990. * Tue Oct 04 2022 Stanislav Levin <slev@altlinux.org> 0.982-alt1 - 0.981 -> 0.982. * Tue Sep 27 2022 Stanislav Levin <slev@altlinux.org> 0.981-alt1 - 0.971 -> 0.981. * Fri Sep 23 2022 Stanislav Levin <slev@altlinux.org> 0.971-alt2 - Removed build dependency on nonexistent typeshed. * Thu Aug 18 2022 Stanislav Levin <slev@altlinux.org> 0.971-alt1 - 0.942 -> 0.971. * Fri Mar 25 2022 Stanislav Levin <slev@altlinux.org> 0.942-alt1 - 0.931 -> 0.942. * Thu Mar 03 2022 Stanislav Levin <slev@altlinux.org> 0.931-alt2 - Fixed FTBFS (pytest-xdist 2.5.0). * Wed Jan 26 2022 Stanislav Levin <slev@altlinux.org> 0.931-alt1 - 0.910 -> 0.931. * Wed Oct 20 2021 Stanislav Levin <slev@altlinux.org> 0.910-alt2 - Fixed FTBFS (pip 21.3). * Wed Jun 23 2021 Stanislav Levin <slev@altlinux.org> 0.910-alt1 - 0.812 -> 0.910. * Thu May 20 2021 Fr. Br. George <george@altlinux.ru> 0.812-alt2 - Fix tempfile.TemporaryDirectory() naming in tests * Tue Mar 23 2021 Stanislav Levin <slev@altlinux.org> 0.812-alt1 - 0.790 -> 0.812. * Wed Oct 28 2020 Stanislav Levin <slev@altlinux.org> 0.790-alt2 - Fixed FTBFS(virtualenv 20.1.0). * Wed Oct 14 2020 Stanislav Levin <slev@altlinux.org> 0.790-alt1 - 0.782 -> 0.790. * Tue Sep 15 2020 Stanislav Levin <slev@altlinux.org> 0.782-alt1 - 0.701 -> 0.782. * Wed Apr 24 2019 Grigory Ustinov <grenka@altlinux.org> 0.701-alt1 - Initial build for Sisyphus |