Package python3-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 | %define _unpackaged_files_terminate_build 1 %define oname flake8 %def_with check Name: python3-module-%oname Version: 4.0.1 Release: alt2 Summary: Code checking using pep8 and pyflakes Group: Development/Python3 License: MIT Url: http://pypi.python.org/pypi/flake8 # https://gitlab.com/pycqa/flake8.git BuildArch: noarch Source: %name-%version.tar Patch0: %name-%version-alt.patch BuildRequires(pre): rpm-build-python3 %if_with check # install_requires= BuildRequires: python3(mccabe) BuildRequires: python3(pycodestyle) BuildRequires: python3(pyflakes) # tests BuildRequires: python3(tox) BuildRequires: python3(tox_no_deps) BuildRequires: python3(tox_console_scripts) %endif %py3_requires mccabe %py3_requires pycodestyle %py3_requires pyflakes %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. %prep %setup %autopatch -p1 %build %python3_build %install %python3_install %check export PIP_NO_INDEX=YES export TOXENV=py3 tox.py3 --sitepackages --console-scripts --no-deps -vvr %files %doc README.rst LICENSE %_bindir/flake8 %python3_sitelibdir/flake8/ %python3_sitelibdir/%oname-%version-py%_python3_version.egg-info/ %changelog * Wed Apr 06 2022 Stanislav Levin <slev@altlinux.org> 4.0.1-alt2 - Fixed FTBFS (mccabe 0.7). * Wed Jan 26 2022 Stanislav Levin <slev@altlinux.org> 4.0.1-alt1 - 3.9.2 -> 4.0.1. * Tue Sep 07 2021 Stanislav Levin <slev@altlinux.org> 3.9.2-alt1 - 3.9.1 -> 3.9.2. * Tue Apr 20 2021 Stanislav Levin <slev@altlinux.org> 3.9.1-alt1 - 3.8.4 -> 3.9.1. * Mon Oct 19 2020 Stanislav Levin <slev@altlinux.org> 3.8.4-alt1 - 3.7.9 -> 3.8.4. * 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) |