Пакет python-module-flake8: 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 | %define _unpackaged_files_terminate_build 1 %define oname flake8 %def_without check %def_without python3 Name: python-module-%oname Version: 3.7.9 Release: alt0.p10.1 Summary: Code checking using pep8 and pyflakes Group: Development/Python License: MIT Url: http://pypi.python.org/pypi/flake8 # https://gitlab.com/pycqa/flake8.git BuildArch: noarch Source: %name-%version.tar %if_with python3 BuildRequires(pre): rpm-build-python3 %endif %if_with check BuildRequires: python2.7(configparser) BuildRequires: python2.7(coverage) BuildRequires: python2.7(entrypoints) BuildRequires: python2.7(functools32) BuildRequires: python2.7(mccabe) BuildRequires: python2.7(mock) BuildRequires: python2.7(pycodestyle) BuildRequires: python2.7(pyflakes) BuildRequires: python2.7(pytest) BuildRequires: python3(entrypoints) BuildRequires: python3(coverage) BuildRequires: python3(mccabe) BuildRequires: python3(mock) BuildRequires: python3(pycodestyle) BuildRequires: python3(pyflakes) BuildRequires: python3(tox) %endif %py_requires functools32 %py_requires mccabe %py_requires pyflakes %py_requires pycodestyle %description Flake8 is a wrapper around these tools: - PyFlakes - pep8 - Ned's McCabe script Flake8 runs all tools by launching the single 'flake8' script, but ignores pep8 and PyFlakes extended options and just uses defaults. It displays the warnings in a per-file, merged output. It also adds a few features: - files that contains with this header are skipped:: - lines that contains a "# NOQA" comment at the end will not issue a warning. - a Mercurial hook. - a McCabe complexity checker. %if_with python3 %package -n python3-module-%oname Summary: Code checking using pep8 and pyflakes Group: Development/Python3 %py3_requires mccabe %py3_requires pycodestyle %py3_requires pyflakes %description -n python3-module-%oname Flake8 is a wrapper around these tools: - PyFlakes - pep8 - Ned's McCabe script Flake8 runs all tools by launching the single 'flake8' script, but ignores pep8 and PyFlakes extended options and just uses defaults. It displays the warnings in a per-file, merged output. It also adds a few features: - files that contains with this header are skipped:: - lines that contains a "# NOQA" comment at the end will not issue a warning. - a Mercurial hook. - a McCabe complexity checker. This is version of the package running with Python 3. %endif %prep %setup %build %python_build_debug -b build2 %if_with python3 %python3_build_debug -b build3 %endif %install ln -sf build2 build %python_install mv %buildroot%_bindir/{flake8,python2-flake8} %if_with python3 ln -sf build3 build %python3_install %endif %check sed -i '/\[testenv\]$/a whitelist_externals =\ \/bin\/cp\ \/bin\/sed\ setenv =\ py%{python_version_nodots python}: _COV_BIN=%_bindir\/coverage\ py%{python_version_nodots python3}: _COV_BIN=%_bindir\/coverage3\ commands_pre =\ \/bin\/cp {env:_COV_BIN:} \{envbindir\}\/coverage\ \/bin\/sed -i \x271c #!\{envpython\}\x27 \{envbindir\}\/coverage' tox.ini export PIP_NO_INDEX=YES export TOXENV=py%{python_version_nodots python},py%{python_version_nodots python3} tox.py3 --sitepackages -p auto -o -vr %files %doc README.rst LICENSE %_bindir/python2-flake8 %python_sitelibdir/flake8/ %python_sitelibdir/flake8-*.egg-info/ %if_with python3 %files -n python3-module-%oname %doc README.rst LICENSE %_bindir/flake8 %python3_sitelibdir/flake8/ %python3_sitelibdir/flake8-*.egg-info/ %endif %changelog * Fri Feb 17 2023 Kirill Izmestev <felixz@altlinux.org> 3.7.9-alt0.p10.1 - Built for p10 branch. * Sat Nov 16 2019 Stanislav Levin <slev@altlinux.org> 3.7.9-alt1 - 3.7.8 -> 3.7.9. * Tue Aug 13 2019 Stanislav Levin <slev@altlinux.org> 3.7.8-alt1 - 3.7.7 -> 3.7.8. * Thu Aug 08 2019 Stanislav Levin <slev@altlinux.org> 3.7.7-alt2 - Fixed testing against Pytest 5. * Fri Mar 22 2019 Stanislav Levin <slev@altlinux.org> 3.7.7-alt1 - 3.6.0 -> 3.7.7. * Mon Jan 28 2019 Mikhail Gordeev <obirvalger@altlinux.org> 3.6.0-alt2 - Use executable on python3 * Sat Oct 27 2018 Stanislav Levin <slev@altlinux.org> 3.6.0-alt1 - 3.5.0 -> 3.6.0. * Fri May 25 2018 Andrey Bychkov <mrdrew@altlinux.org> 3.5.0-alt2.1 - rebuild with python3.6 * Fri Feb 16 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 3.5.0-alt2 - Updated build dependencies. * Fri Dec 01 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 3.5.0-alt1 - Updated to upstream version 3.5.0. * Sun Mar 13 2016 Ivan Zakharyaschev <imz@altlinux.org> 2.4.1-alt1.git20150710.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> 2.4.1-alt1.git20150710.1 - NMU: Use buildreq for BR. * Sun Aug 02 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.4.1-alt1.git20150710 - Snapshot from git * Fri Jul 31 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.4.1-alt1 - Version 2.4.1 * Tue Apr 28 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.4.0-alt1 - Version 2.4.0 * Mon Feb 16 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.3.0-alt1 - Version 2.3.0 * Sat Nov 08 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.2.5-alt1 - Version 2.2.5 * Fri Aug 01 2014 Lenar Shakirov <snejok@altlinux.ru> 2.1.0-alt1 - First build for ALT (based on Fedora 2.1.0-3.fc21.src) |