forked from pool/python-radon
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
This commit is contained in:
committed by
Git OBS Bridge
parent
578b9e992c
commit
40a11c598f
@@ -1,3 +1,18 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 14 04:42:27 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||||
|
|
||||||
|
- 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 <michael@stroeder.com>
|
Sat Jan 19 18:22:00 UTC 2019 - Michael Ströder <michael@stroeder.com>
|
||||||
|
|
||||||
|
@@ -18,30 +18,29 @@
|
|||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-radon
|
Name: python-radon
|
||||||
Version: 2.4.0
|
Version: 3.0.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Code Metrics in Python
|
Summary: Code Metrics in Python
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
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
|
Source: https://files.pythonhosted.org/packages/source/r/radon/radon-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
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
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module colorama >= 0.3}
|
BuildRequires: %{python_module colorama >= 0.4}
|
||||||
BuildRequires: %{python_module flake8-polyfill}
|
BuildRequires: %{python_module flake8-polyfill}
|
||||||
BuildRequires: %{python_module mando >= 0.6}
|
BuildRequires: %{python_module mando >= 0.6}
|
||||||
BuildRequires: %{python_module pytest >= 2.7}
|
BuildRequires: %{python_module pytest >= 2.7}
|
||||||
BuildRequires: %{python_module pytest-mock}
|
BuildRequires: %{python_module pytest-mock}
|
||||||
# /SECTION
|
# /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
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -58,6 +57,7 @@ Radon can compute:
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
|
rm -r */lib/radon/tests
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
@@ -66,7 +66,7 @@ Radon can compute:
|
|||||||
%python_clone -a %{buildroot}%{_bindir}/radon
|
%python_clone -a %{buildroot}%{_bindir}/radon
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%python_exec radon/tests/run.py
|
%python_exec -m pytest --strict
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative radon
|
%python_install_alternative radon
|
||||||
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:38e495a4aa4c1d7293d3c1733393961fb52209c9bc2d75163c3ba8124d8bbbaa
|
|
||||||
size 3406248
|
|
3
radon-3.0.1.tar.gz
Normal file
3
radon-3.0.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:6d8f40b02141bb94c6b87cc4fdb6ca1f8ff6ab4128f4f0b155d4bab08736ca40
|
||||||
|
size 1614356
|
Reference in New Issue
Block a user