From 40a11c598fbda952ce23e9006c4a4a6d06f23c4353c63e740f14840dd1932b92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 14 Feb 2019 08:35:01 +0000 Subject: [PATCH] Accepting request 674780 from home:jayvdb:coala:python3-bears - Fix tests which were erroring but the error was being ignored - Remove tests from the package - Use GitHub repository for the link, as it has links to other resources - Update from v2.4.0 to v3.0.1 OBS-URL: https://build.opensuse.org/request/show/674780 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-radon?expand=0&rev=8 --- python-radon.changes | 15 +++++++++++++++ python-radon.spec | 22 +++++++++++----------- radon-2.4.0.tar.gz | 3 --- radon-3.0.1.tar.gz | 3 +++ 4 files changed, 29 insertions(+), 14 deletions(-) delete mode 100644 radon-2.4.0.tar.gz create mode 100644 radon-3.0.1.tar.gz diff --git a/python-radon.changes b/python-radon.changes index befdf20..99b65e7 100644 --- a/python-radon.changes +++ b/python-radon.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Thu Feb 14 04:42:27 UTC 2019 - John Vandenberg + +- Fix tests which were erroring but the error was being ignored +- Remove tests from the package +- Use GitHub repository for the link, as it has links to other + resources +- Update to v3.0.1 + * Automatically exclude binary files, instead of producing an error +- from 3.0.0 + * Include files with no extension but a Python shebang + * Fix calculation of total complexity for classes + * Update Colorama dependency to avoid conflicts with pytest + * Fix raw metrics, which were completely broken + ------------------------------------------------------------------- Sat Jan 19 18:22:00 UTC 2019 - Michael Ströder diff --git a/python-radon.spec b/python-radon.spec index 4bb3da6..ec6f88e 100644 --- a/python-radon.spec +++ b/python-radon.spec @@ -18,30 +18,29 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-radon -Version: 2.4.0 +Version: 3.0.1 Release: 0 Summary: Code Metrics in Python License: MIT Group: Development/Languages/Python -Url: https://radon.readthedocs.org/ +URL: https://github.com/rubik/radon Source: https://files.pythonhosted.org/packages/source/r/radon/radon-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-colorama >= 0.4 +Requires: python-flake8-polyfill +Requires: python-mando >= 0.6 +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch # SECTION test requirements -BuildRequires: %{python_module colorama >= 0.3} +BuildRequires: %{python_module colorama >= 0.4} BuildRequires: %{python_module flake8-polyfill} BuildRequires: %{python_module mando >= 0.6} BuildRequires: %{python_module pytest >= 2.7} BuildRequires: %{python_module pytest-mock} # /SECTION -Requires: python-colorama >= 0.3 -Requires: python-flake8-polyfill -Requires: python-mando >= 0.6 -BuildArch: noarch -Requires(post): update-alternatives -Requires(postun): update-alternatives - %python_subpackages %description @@ -58,6 +57,7 @@ Radon can compute: %build %python_build +rm -r */lib/radon/tests %install %python_install @@ -66,7 +66,7 @@ Radon can compute: %python_clone -a %{buildroot}%{_bindir}/radon %check -%python_exec radon/tests/run.py +%python_exec -m pytest --strict %post %python_install_alternative radon diff --git a/radon-2.4.0.tar.gz b/radon-2.4.0.tar.gz deleted file mode 100644 index 0ae2c40..0000000 --- a/radon-2.4.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:38e495a4aa4c1d7293d3c1733393961fb52209c9bc2d75163c3ba8124d8bbbaa -size 3406248 diff --git a/radon-3.0.1.tar.gz b/radon-3.0.1.tar.gz new file mode 100644 index 0000000..e66a62d --- /dev/null +++ b/radon-3.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6d8f40b02141bb94c6b87cc4fdb6ca1f8ff6ab4128f4f0b155d4bab08736ca40 +size 1614356