Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-radon for openSUSE:Factory checked in at 2022-08-27 11:49:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-radon (Old) and /work/SRC/openSUSE:Factory/.python-radon.new.2083 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-radon" Sat Aug 27 11:49:44 2022 rev:12 rq:999355 version:5.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-radon/python-radon.changes 2021-06-11 22:29:52.070046387 +0200 +++ /work/SRC/openSUSE:Factory/.python-radon.new.2083/python-radon.changes 2022-08-27 11:49:45.341799972 +0200 @@ -1,0 +2,11 @@ +Thu Aug 25 09:53:13 UTC 2022 - Ben Greiner <[email protected]> + +- Update to 5.1.0 + * Allow forcing colored output on/off, thanks @msabramo: #218 + * Synchronize trove classifiers with tested versions, thanks + @D3X: #222 +- Release 5.0.1 + * Drop support for flake8 < 3.x (removes `flake8-polyfill` + dependency), by @joxl: #219 + +------------------------------------------------------------------- Old: ---- radon-4.5.2.tar.gz New: ---- radon-5.1.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-radon.spec ++++++ --- /var/tmp/diff_new_pack.lZkIN7/_old 2022-08-27 11:49:45.957801295 +0200 +++ /var/tmp/diff_new_pack.lZkIN7/_new 2022-08-27 11:49:45.957801295 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-radon # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-radon -Version: 4.5.2 +Version: 5.1.0 Release: 0 Summary: Code Metrics in Python License: MIT @@ -28,16 +28,14 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-colorama >= 0.4 -Requires: python-flake8-polyfill +Requires: python-colorama >= 0.4.1 Requires: python-future Requires: python-mando >= 0.6 Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module colorama >= 0.4.1} -BuildRequires: %{python_module flake8-polyfill} BuildRequires: %{python_module future} BuildRequires: %{python_module mando >= 0.6} BuildRequires: %{python_module pytest >= 2.7} @@ -56,10 +54,11 @@ %prep %setup -q -n radon-%{version} +# unpin mando +sed -i -E 's/(mando.*),<0\.7/\1/' setup.py %build %python_build -rm -r */lib/radon/tests %install %python_install @@ -80,6 +79,7 @@ %doc CHANGELOG README.rst %license LICENSE %python_alternative %{_bindir}/radon -%{python_sitelib}/* +%{python_sitelib}/radon +%{python_sitelib}/radon-%{version}*-info %changelog ++++++ radon-4.5.2.tar.gz -> radon-5.1.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/radon-4.5.2/CHANGELOG new/radon-5.1.0/CHANGELOG --- old/radon-4.5.2/CHANGELOG 2021-05-23 09:25:39.000000000 +0200 +++ new/radon-5.1.0/CHANGELOG 2021-08-08 15:22:30.000000000 +0200 @@ -1,3 +1,15 @@ +5.1.0 (Aug 08, 2021) +-------------------- + +- Allow forcing colored output on/off, thanks @msabramo: #218 +- Synchronize trove classifiers with tested versions, thanks @D3X: #222 + +5.0.1 (Jun 08, 2021) +-------------------- + +- Drop support for flake8 < 3.x (removes `flake8-polyfill` dependency), by + @joxl: #219 + 4.5.2 (May 23, 2021) -------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/radon-4.5.2/PKG-INFO new/radon-5.1.0/PKG-INFO --- old/radon-4.5.2/PKG-INFO 2021-05-23 09:39:58.631387700 +0200 +++ new/radon-5.1.0/PKG-INFO 2021-08-08 15:25:05.495589500 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: radon -Version: 4.5.2 +Version: 5.1.0 Summary: Code Metrics in Python Home-page: https://radon.readthedocs.org/ Author: Michele Lacchia @@ -239,12 +239,10 @@ Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.1 -Classifier: Programming Language :: Python :: 3.2 -Classifier: Programming Language :: Python :: 3.3 -Classifier: Programming Language :: Python :: 3.4 -Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 +Classifier: Programming Language :: Python :: 3.7 +Classifier: Programming Language :: Python :: 3.8 +Classifier: Programming Language :: Python :: 3.9 Classifier: Topic :: Software Development Classifier: Topic :: Software Development :: Libraries :: Python Modules Classifier: Topic :: Software Development :: Quality Assurance diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/radon-4.5.2/radon/__init__.py new/radon-5.1.0/radon/__init__.py --- old/radon-4.5.2/radon/__init__.py 2021-05-23 09:38:51.000000000 +0200 +++ new/radon-5.1.0/radon/__init__.py 2021-08-08 15:22:38.000000000 +0200 @@ -1,7 +1,7 @@ '''This module contains the main() function, which is the entry point for the command line interface.''' -__version__ = '4.5.2' +__version__ = '5.1.0' def main(): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/radon-4.5.2/radon/cli/colors.py new/radon-5.1.0/radon/cli/colors.py --- old/radon-4.5.2/radon/cli/colors.py 2020-09-28 18:14:30.000000000 +0200 +++ new/radon-5.1.0/radon/cli/colors.py 2021-08-08 15:20:39.000000000 +0200 @@ -2,12 +2,23 @@ terminal. ''' +import os import sys + +def color_enabled(): + COLOR_ENV = os.getenv('COLOR', 'auto') + if COLOR_ENV == 'auto' and sys.stdout.isatty(): + return True + if COLOR_ENV == 'yes': + return True + return False + + try: import colorama - colorama.init(strip=(not sys.stdout.isatty())) + colorama.init(strip=not color_enabled()) GREEN, YELLOW, RED = ( colorama.Fore.GREEN, colorama.Fore.YELLOW, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/radon-4.5.2/radon/contrib/flake8.py new/radon-5.1.0/radon/contrib/flake8.py --- old/radon-4.5.2/radon/contrib/flake8.py 2020-09-28 18:14:30.000000000 +0200 +++ new/radon-5.1.0/radon/contrib/flake8.py 2021-08-08 15:20:39.000000000 +0200 @@ -1,5 +1,3 @@ -from flake8_polyfill import options - from radon.complexity import add_inner_blocks from radon.visitors import ComplexityVisitor @@ -20,19 +18,17 @@ self.tree = tree @classmethod - def add_options(cls, parser): # pragma: no cover + def add_options(cls, option_manager): # pragma: no cover '''Add custom options to the global parser.''' - options.register( - parser, + option_manager.add_option( '--radon-max-cc', default=-1, action='store', - type='int', + type=int, help='Radon complexity threshold', parse_from_config=True, ) - options.register( - parser, + option_manager.add_option( '--radon-no-assert', dest='no_assert', action='store_true', @@ -40,8 +36,7 @@ help='Radon will ignore assert statements', parse_from_config=True, ) - options.register( - parser, + option_manager.add_option( '--radon-show-closures', dest='show_closures', action='store_true', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/radon-4.5.2/radon/tests/run.py new/radon-5.1.0/radon/tests/run.py --- old/radon-4.5.2/radon/tests/run.py 2020-09-28 18:14:30.000000000 +0200 +++ new/radon-5.1.0/radon/tests/run.py 2021-08-08 15:20:39.000000000 +0200 @@ -1,5 +1,14 @@ if __name__ == '__main__': import pytest - ret = pytest.main(['--strict']) + # see: https://docs.pytest.org/en/6.2.x/deprecations.html#the-strict-command-line-option + # This check can be removed once Python 2.x support is dropped as the new + # pytest option (--strict-markers) is available in pytest for all Python 3.x + from packaging import version + if version.parse(pytest.__version__) < version.parse('6.2'): + pytest_args = ['--strict'] + else: + pytest_args = ['--strict-markers'] + + ret = pytest.main(pytest_args) exit(ret) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/radon-4.5.2/radon/tests/test_cli_colors.py new/radon-5.1.0/radon/tests/test_cli_colors.py --- old/radon-4.5.2/radon/tests/test_cli_colors.py 1970-01-01 01:00:00.000000000 +0100 +++ new/radon-5.1.0/radon/tests/test_cli_colors.py 2021-08-08 15:20:39.000000000 +0200 @@ -0,0 +1,22 @@ +import radon.cli.colors as colors + + +def test_color_enabled_yes(monkeypatch): + monkeypatch.setenv("COLOR", "yes") + assert colors.color_enabled() + + +def test_color_enabled_no(monkeypatch): + monkeypatch.setenv("COLOR", "no") + assert not colors.color_enabled() + + +def test_color_enabled_auto(monkeypatch, mocker): + monkeypatch.setenv("COLOR", "auto") + isatty_mock = mocker.patch('sys.stdout.isatty') + + isatty_mock.return_value = True + assert colors.color_enabled() + + isatty_mock.return_value = False + assert not colors.color_enabled() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/radon-4.5.2/radon.egg-info/PKG-INFO new/radon-5.1.0/radon.egg-info/PKG-INFO --- old/radon-4.5.2/radon.egg-info/PKG-INFO 2021-05-23 09:39:58.000000000 +0200 +++ new/radon-5.1.0/radon.egg-info/PKG-INFO 2021-08-08 15:25:05.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: radon -Version: 4.5.2 +Version: 5.1.0 Summary: Code Metrics in Python Home-page: https://radon.readthedocs.org/ Author: Michele Lacchia @@ -239,12 +239,10 @@ Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.1 -Classifier: Programming Language :: Python :: 3.2 -Classifier: Programming Language :: Python :: 3.3 -Classifier: Programming Language :: Python :: 3.4 -Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 +Classifier: Programming Language :: Python :: 3.7 +Classifier: Programming Language :: Python :: 3.8 +Classifier: Programming Language :: Python :: 3.9 Classifier: Topic :: Software Development Classifier: Topic :: Software Development :: Libraries :: Python Modules Classifier: Topic :: Software Development :: Quality Assurance diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/radon-4.5.2/radon.egg-info/SOURCES.txt new/radon-5.1.0/radon.egg-info/SOURCES.txt --- old/radon-4.5.2/radon.egg-info/SOURCES.txt 2021-05-23 09:39:58.000000000 +0200 +++ new/radon-5.1.0/radon.egg-info/SOURCES.txt 2021-08-08 15:25:05.000000000 +0200 @@ -280,6 +280,7 @@ radon/tests/conftest.py radon/tests/run.py radon/tests/test_cli.py +radon/tests/test_cli_colors.py radon/tests/test_cli_harvest.py radon/tests/test_cli_tools.py radon/tests/test_complexity_utils.py diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/radon-4.5.2/radon.egg-info/requires.txt new/radon-5.1.0/radon.egg-info/requires.txt --- old/radon-4.5.2/radon.egg-info/requires.txt 2021-05-23 09:39:58.000000000 +0200 +++ new/radon-5.1.0/radon.egg-info/requires.txt 2021-08-08 15:25:05.000000000 +0200 @@ -1,6 +1,5 @@ mando<0.7,>=0.6 future -flake8-polyfill [:python_version <= "3.4"] colorama==0.4.1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/radon-4.5.2/requirements.txt new/radon-5.1.0/requirements.txt --- old/radon-4.5.2/requirements.txt 2020-09-28 18:14:30.000000000 +0200 +++ new/radon-5.1.0/requirements.txt 2021-08-08 15:20:39.000000000 +0200 @@ -1,5 +1,4 @@ mando>=0.6,<0.7 colorama==0.4.1;python_version<='3.4' colorama>=0.4.1;python_version>'3.4' -flake8_polyfill future diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/radon-4.5.2/setup.py new/radon-5.1.0/setup.py --- old/radon-4.5.2/setup.py 2021-05-23 09:23:28.000000000 +0200 +++ new/radon-5.1.0/setup.py 2021-08-08 15:20:39.000000000 +0200 @@ -23,7 +23,6 @@ 'colorama==0.4.1;python_version<="3.4"', 'colorama>=0.4.1;python_version>"3.4"', 'future', - 'flake8-polyfill', ], entry_points={ 'console_scripts': ['radon = radon:main'], @@ -45,12 +44,10 @@ 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.1', - 'Programming Language :: Python :: 3.2', - 'Programming Language :: Python :: 3.3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', 'Topic :: Software Development', 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: Software Development :: Quality Assurance',
