Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-calmjs for openSUSE:Factory checked in at 2023-04-16 16:07:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-calmjs (Old) and /work/SRC/openSUSE:Factory/.python-calmjs.new.19717 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-calmjs" Sun Apr 16 16:07:35 2023 rev:8 rq:1079741 version:3.4.4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-calmjs/python-calmjs.changes 2023-03-02 23:04:37.216188662 +0100 +++ /work/SRC/openSUSE:Factory/.python-calmjs.new.19717/python-calmjs.changes 2023-04-16 16:07:55.061108314 +0200 @@ -1,0 +2,15 @@ +Sun Apr 16 09:24:02 UTC 2023 - Dirk Müller <dmuel...@suse.com> + +- update to 3.4.4: + * Upgrading to ``setuptools-65.6.0`` and beyond will result in + a new version of ``distutils`` that "fixed" how logging + works, but now the hooks and expected workarounds no + longer work. Given that the deprecation of ``distutils`` + is in the works, no fixes will be done until ``setuptools`` + fully replaces it beyond the release of Python 3.12, + as the author no longer trust Python to provide a + stable platform to develop software on. + Thus, any future "fixes" will only be provided on an + even more reactive (rather than proactive) basis. + +------------------------------------------------------------------- Old: ---- 3.4.3.tar.gz New: ---- 3.4.4.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-calmjs.spec ++++++ --- /var/tmp/diff_new_pack.JJFCa3/_old 2023-04-16 16:07:55.465110643 +0200 +++ /var/tmp/diff_new_pack.JJFCa3/_new 2023-04-16 16:07:55.473110689 +0200 @@ -18,7 +18,7 @@ %define skip_python2 1 Name: python-calmjs -Version: 3.4.3 +Version: 3.4.4 Release: 0 Summary: A Python framework for working with the Node.js ecosystem License: GPL-2.0-or-later ++++++ 3.4.3.tar.gz -> 3.4.4.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calmjs-3.4.3/.github/workflows/build.yml new/calmjs-3.4.4/.github/workflows/build.yml --- old/calmjs-3.4.3/.github/workflows/build.yml 2023-03-02 04:09:24.000000000 +0100 +++ new/calmjs-3.4.4/.github/workflows/build.yml 2023-03-07 06:31:57.000000000 +0100 @@ -11,6 +11,7 @@ - 3.4.1 - 3.4.2 - 3.4.3 + - 3.4.4 pull_request: branches: - master diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calmjs-3.4.3/CHANGES.rst new/calmjs-3.4.4/CHANGES.rst --- old/calmjs-3.4.3/CHANGES.rst 2023-03-02 04:09:24.000000000 +0100 +++ new/calmjs-3.4.4/CHANGES.rst 2023-03-07 06:31:57.000000000 +0100 @@ -1,6 +1,20 @@ Changelog ========= +3.4.4 (2023-03-07) +------------------ + +- Upgrading to ``setuptools-65.6.0`` and beyond will result in a new + version of ``distutils`` that "fixed" how logging works, but now the + hooks and expected workarounds no longer work. Given that the + deprecation of ``distutils`` is in the works, no fixes will be done + until ``setuptools`` fully replaces it beyond the release of Python + 3.12, as the author no longer trust Python to provide a stable + platform to develop software on. Thus, any future "fixes" will only + be provided on an even more reactive (rather than proactive) basis. [ + `#66 <https://github.com/calmjs/calmjs/issues/66>`_ + ] + 3.4.3 (2023-03-02) ------------------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calmjs-3.4.3/README.rst new/calmjs-3.4.4/README.rst --- old/calmjs-3.4.3/README.rst 2023-03-02 04:09:24.000000000 +0100 +++ new/calmjs-3.4.4/README.rst 2023-03-07 06:31:57.000000000 +0100 @@ -4,12 +4,12 @@ A Python framework for building toolchains and utilities for working with the Node.js ecosystem from within a Python environment. -.. image:: https://github.com/calmjs/calmjs/actions/workflows/build.yml/badge.svg?branch=3.4.3 - :target: https://github.com/calmjs/calmjs/actions/workflows/build.yml?query=branch:3.4.3 -.. image:: https://ci.appveyor.com/api/projects/status/45054tm9cfk7ryam/branch/3.4.3?svg=true - :target: https://ci.appveyor.com/project/metatoaster/calmjs/branch/3.4.3 -.. image:: https://coveralls.io/repos/github/calmjs/calmjs/badge.svg?branch=3.4.3 - :target: https://coveralls.io/github/calmjs/calmjs?branch=3.4.3 +.. image:: https://github.com/calmjs/calmjs/actions/workflows/build.yml/badge.svg?branch=3.4.4 + :target: https://github.com/calmjs/calmjs/actions/workflows/build.yml?query=branch:3.4.4 +.. image:: https://ci.appveyor.com/api/projects/status/45054tm9cfk7ryam/branch/3.4.4?svg=true + :target: https://ci.appveyor.com/project/metatoaster/calmjs/branch/3.4.4 +.. image:: https://coveralls.io/repos/github/calmjs/calmjs/badge.svg?branch=3.4.4 + :target: https://coveralls.io/github/calmjs/calmjs?branch=3.4.4 .. |AMD| replace:: AMD (Asynchronous Module Definition) .. |calmjs.bower| replace:: ``calmjs.bower`` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calmjs-3.4.3/setup.py new/calmjs-3.4.4/setup.py --- old/calmjs-3.4.3/setup.py 2023-03-02 04:09:24.000000000 +0100 +++ new/calmjs-3.4.4/setup.py 2023-03-07 06:31:57.000000000 +0100 @@ -1,7 +1,7 @@ from setuptools import setup from setuptools import find_packages -version = '3.4.3' +version = '3.4.4' classifiers = """ Development Status :: 5 - Production/Stable @@ -56,7 +56,7 @@ namespace_packages=['calmjs'], zip_safe=False, install_requires=[ - 'setuptools>=12', + 'setuptools>=31', 'calmjs.types', 'calmjs.parse>=1.0.0,!=1.1.0,!=1.1.1,<2', ], diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calmjs-3.4.3/src/calmjs/command.py new/calmjs-3.4.4/src/calmjs/command.py --- old/calmjs-3.4.3/src/calmjs/command.py 2023-03-02 04:09:24.000000000 +0100 +++ new/calmjs-3.4.4/src/calmjs/command.py 2023-03-07 06:31:57.000000000 +0100 @@ -43,7 +43,7 @@ try: msg = self.format(record) self.log.log(level, msg) - except Exception: + except Exception: # pragma: no cover # LogRecord.__str__ shouldn't fail... probably. self.log.warn('Failed to convert %s' % record) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calmjs-3.4.3/src/calmjs/tests/test_command.py new/calmjs-3.4.4/src/calmjs/tests/test_command.py --- old/calmjs-3.4.3/src/calmjs/tests/test_command.py 2023-03-02 04:09:24.000000000 +0100 +++ new/calmjs-3.4.4/src/calmjs/tests/test_command.py 2023-03-07 06:31:57.000000000 +0100 @@ -2,8 +2,8 @@ import logging import unittest import sys -from distutils.dist import Distribution from distutils.errors import DistutilsModuleError +from setuptools.dist import Distribution from calmjs.command import distutils_log_handler from calmjs.command import BuildArtifactCommand @@ -21,21 +21,25 @@ Test for the adapter from standard logging to the distutils version. """ + # TODO remove when distutils imports fully migrate to setuptools + # some of these tests are being broken by new setuptools; all + # assertions against sys.stdout no longer functional. + def setUp(self): stub_stdouts(self) def tearDown(self): distutils_log_handler.log.set_threshold(distutils_log_handler.log.WARN) - def test_logging_bad(self): - logger = logging.getLogger('calmjs.testing.dummy') - logger.setLevel(logging.DEBUG) - distutils_log_handler.log.set_verbosity(0) - logger.addHandler(distutils_log_handler) - logger.log(9001, 'Over 9000 will definitely not work') - self.assertEqual(sys.stdout.getvalue(), '') - self.assertTrue(sys.stderr.getvalue().startswith( - 'Failed to convert <LogRecord: calmjs.testing.dummy, 9001')) + # def test_logging_bad(self): + # logger = logging.getLogger('calmjs.testing.dummy') + # logger.setLevel(logging.DEBUG) + # distutils_log_handler.log.set_verbosity(0) + # logger.addHandler(distutils_log_handler) + # logger.log(9001, 'Over 9000 will definitely not work') + # self.assertEqual(sys.stdout.getvalue(), '') + # self.assertTrue(sys.stderr.getvalue().startswith( + # 'Failed to convert <LogRecord: calmjs.testing.dummy, 9001')) def test_logging_all(self): logger = logging.getLogger('calmjs.testing.dummy') @@ -48,7 +52,7 @@ logger.info('Information') logger.debug('Debug') self.assertEqual(sys.stderr.getvalue(), 'Critical\nError\nWarning\n') - self.assertEqual(sys.stdout.getvalue(), 'Information\nDebug\n') + # self.assertEqual(sys.stdout.getvalue(), 'Information\nDebug\n') def test_logging_info_only(self): logger = logging.getLogger('calmjs.testing.dummy') @@ -57,7 +61,7 @@ logger.addHandler(distutils_log_handler) logger.info('Information') logger.debug('Debug') - self.assertEqual(sys.stdout.getvalue(), 'Information\n') + # self.assertEqual(sys.stdout.getvalue(), 'Information\n') def test_logging_errors_only(self): logger = logging.getLogger('calmjs.testing.dummy') @@ -67,7 +71,7 @@ logger.info('Information') logger.debug('Debug') logger.warning('Warning') - self.assertEqual(sys.stdout.getvalue(), '') + # self.assertEqual(sys.stdout.getvalue(), '') self.assertEqual(sys.stderr.getvalue(), 'Warning\n') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calmjs-3.4.3/src/calmjs/tests/test_npm.py new/calmjs-3.4.4/src/calmjs/tests/test_npm.py --- old/calmjs-3.4.3/src/calmjs/tests/test_npm.py 2023-03-02 04:09:24.000000000 +0100 +++ new/calmjs-3.4.4/src/calmjs/tests/test_npm.py 2023-03-07 06:31:57.000000000 +0100 @@ -720,12 +720,12 @@ }) stdout = sys.stdout.getvalue() - self.assertTrue(stdout.startswith("running npm\n")) + # self.assertTrue(stdout.startswith("running npm\n")) target = join(tmpdir, 'package.json') self.assertIn( - "generating a flattened 'package.json' for 'foo'\n" + # "generating a flattened 'package.json' for 'foo'\n" "Generated 'package.json' differs with '%s'" % (target), stdout, ) @@ -768,8 +768,8 @@ 'name': 'foo', }) - stdout = sys.stdout.getvalue() - self.assertIn("wrote '%s'\n" % join(tmpdir, 'package.json'), stdout) + # stdout = sys.stdout.getvalue() + # self.assertIn("wrote '%s'\n" % join(tmpdir, 'package.json'), stdout) def test_init_merge(self): # --merge without --interactive implies overwrite diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/calmjs-3.4.3/src/calmjs/tests/test_yarn.py new/calmjs-3.4.4/src/calmjs/tests/test_yarn.py --- old/calmjs-3.4.3/src/calmjs/tests/test_yarn.py 2023-03-02 04:09:24.000000000 +0100 +++ new/calmjs-3.4.4/src/calmjs/tests/test_yarn.py 2023-03-07 06:31:57.000000000 +0100 @@ -640,12 +640,12 @@ }) stdout = sys.stdout.getvalue() - self.assertTrue(stdout.startswith("running yarn\n")) + # self.assertTrue(stdout.startswith("running yarn\n")) target = join(tmpdir, 'package.json') self.assertIn( - "generating a flattened 'package.json' for 'foo'\n" + # "generating a flattened 'package.json' for 'foo'\n" "Generated 'package.json' differs with '%s'" % (target), stdout, ) @@ -688,8 +688,8 @@ 'name': 'foo', }) - stdout = sys.stdout.getvalue() - self.assertIn("wrote '%s'\n" % join(tmpdir, 'package.json'), stdout) + # stdout = sys.stdout.getvalue() + # self.assertIn("wrote '%s'\n" % join(tmpdir, 'package.json'), stdout) def test_init_merge(self): # --merge without --interactive implies overwrite