Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-sphinxcontrib-autoprogram for 
openSUSE:Factory checked in at 2024-07-08 19:08:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-sphinxcontrib-autoprogram (Old)
 and      /work/SRC/openSUSE:Factory/.python-sphinxcontrib-autoprogram.new.2080 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-sphinxcontrib-autoprogram"

Mon Jul  8 19:08:52 2024 rev:8 rq:1186119 version:0.1.9

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-sphinxcontrib-autoprogram/python-sphinxcontrib-autoprogram.changes
        2023-04-07 18:17:11.728845830 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-sphinxcontrib-autoprogram.new.2080/python-sphinxcontrib-autoprogram.changes
      2024-07-08 19:09:16.920982141 +0200
@@ -1,0 +2,9 @@
+Mon Jul  1 08:10:31 UTC 2024 - Dirk Müller <[email protected]>
+
+- update to 0.1.9:
+  * Test against Python 3.12.
+  * Drop support for Python 3.7.
+- drop sphinx6.patch,
+  python-sphinxcontrib-autoprogram-no-six.patch (upstream)
+
+-------------------------------------------------------------------

Old:
----
  python-sphinxcontrib-autoprogram-0.1.8.tar.gz
  python-sphinxcontrib-autoprogram-no-six.patch
  sphinx6.patch

New:
----
  python-sphinxcontrib-autoprogram-0.1.9.tar.gz

BETA DEBUG BEGIN:
  Old:- drop sphinx6.patch,
  python-sphinxcontrib-autoprogram-no-six.patch (upstream)
  Old:  * Drop support for Python 3.7.
- drop sphinx6.patch,
  python-sphinxcontrib-autoprogram-no-six.patch (upstream)
BETA DEBUG END:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-sphinxcontrib-autoprogram.spec ++++++
--- /var/tmp/diff_new_pack.U9cg8I/_old  2024-07-08 19:09:17.581006279 +0200
+++ /var/tmp/diff_new_pack.U9cg8I/_new  2024-07-08 19:09:17.581006279 +0200
@@ -1,7 +1,7 @@
 #
-# spec file
+# spec file for package python-sphinxcontrib-autoprogram
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -22,11 +22,9 @@
 %define psuffix      -%{flavor}
 %endif
 %global short_name autoprogram
-# 
https://github.com/sphinx-contrib/autoprogram/commit/457822502b71a449d97dfece63e77dbee910b581
-%define skip_python36 1
-%define skip_python2 1
+%{?sle15_python_module_pythons}
 Name:           python-sphinxcontrib-%{short_name}%{psuffix}
-Version:        0.1.8
+Version:        0.1.9
 Release:        0
 %if "%{flavor}" == "" || "%{flavor}" == "test"
 Summary:        Sphinx extension to document CLI programs
@@ -40,10 +38,6 @@
 # PATCH-FIX-UPSTREAM skip-failing-test.patch gh#sphinx-contrib/autoprogram#54 
[email protected]
 # Switch off failing tests by the environmental variable SKIPTESTS
 Patch1:         skip-failing-test.patch
-# PATCH-FIX-UPSTREAM sphinx6.patch gh#sphinx-contrib/autoprogram#62
-Patch2:         sphinx6.patch
-# https://github.com/sphinx-contrib/autoprogram/issues/63
-Patch3:         python-sphinxcontrib-autoprogram-no-six.patch
 BuildRequires:  %{python_module Sphinx >= 1.2}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes

++++++ python-sphinxcontrib-autoprogram-0.1.8.tar.gz -> 
python-sphinxcontrib-autoprogram-0.1.9.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/autoprogram-0.1.8/.github/workflows/build.yml 
new/autoprogram-0.1.9/.github/workflows/build.yml
--- old/autoprogram-0.1.8/.github/workflows/build.yml   2023-02-11 
17:56:59.000000000 +0100
+++ new/autoprogram-0.1.9/.github/workflows/build.yml   2024-03-13 
20:06:25.000000000 +0100
@@ -14,7 +14,7 @@
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
+        python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
 
     steps:
     - uses: actions/checkout@v2
@@ -25,7 +25,7 @@
     - name: Install dependencies
       run: |
         python -m pip install --upgrade pip
-        python -m pip install tox
+        python -m pip install setuptools tox
 
     # NOTE(lb): By creating a sdist and then testing/working with that, we 
ensure
     # its completeness.
@@ -60,7 +60,7 @@
       run: |
         pip install -r doc/rtd-requires.txt
         cd doc
-        make
+        make html
       working-directory: ${{ github.workspace }}/tmp/sdist
 
     - name: Install wheel
@@ -69,7 +69,7 @@
       working-directory: ${{ github.workspace }}/tmp/sdist
 
     - name: Publish package
-      if: github.event_name == 'release' && startsWith(github.ref, 
'refs/tags') && matrix.python-version == 3.11
+      if: github.event_name == 'release' && startsWith(github.ref, 
'refs/tags') && matrix.python-version == 3.12
       uses: pypa/[email protected]
       with:
         user: __token__
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/autoprogram-0.1.8/.pylintrc 
new/autoprogram-0.1.9/.pylintrc
--- old/autoprogram-0.1.8/.pylintrc     2023-02-11 17:56:59.000000000 +0100
+++ new/autoprogram-0.1.9/.pylintrc     2024-03-13 20:06:25.000000000 +0100
@@ -52,4 +52,4 @@
 
 [VARIABLES]
 
-redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io
\ No newline at end of file
+redefining-builtins-modules=builtins,io
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/autoprogram-0.1.8/doc/changelog.rst 
new/autoprogram-0.1.9/doc/changelog.rst
--- old/autoprogram-0.1.8/doc/changelog.rst     2023-02-11 17:56:59.000000000 
+0100
+++ new/autoprogram-0.1.9/doc/changelog.rst     2024-03-13 20:06:25.000000000 
+0100
@@ -1,6 +1,14 @@
 Changelog
 =========
 
+Version 0.1.9
+-------------
+
+Released on March 13, 2024.
+
+- Test against Python 3.12.
+- Drop support for Python 3.7.
+
 Version 0.1.8
 -------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/autoprogram-0.1.8/doc/conf.py 
new/autoprogram-0.1.9/doc/conf.py
--- old/autoprogram-0.1.8/doc/conf.py   2023-02-11 17:56:59.000000000 +0100
+++ new/autoprogram-0.1.9/doc/conf.py   2024-03-13 20:06:25.000000000 +0100
@@ -282,18 +282,18 @@
 extlinks = {
     'pull': (
         'https://github.com/sphinx-contrib/autoprogram/pull/%s',
-        '#'
+        '#%s'
     ),
     'issue': (
         'https://github.com/sphinx-contrib/autoprogram/issues/%s',
-        '#'
+        '#%s'
     ),
     'bbpull': (
         'https://bitbucket.org/birkenfeld/sphinx-contrib/pull-request/%s/',
-        'Bitbucket PR #',
+        'Bitbucket PR #%s',
     ),
     'bbissue': (
         'https://bitbucket.org/birkenfeld/sphinx-contrib/issue/%s/',
-        'Bitbucket issue #',
+        'Bitbucket issue #%s',
     ),
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/autoprogram-0.1.8/setup.py 
new/autoprogram-0.1.9/setup.py
--- old/autoprogram-0.1.8/setup.py      2023-02-11 17:56:59.000000000 +0100
+++ new/autoprogram-0.1.9/setup.py      2024-03-13 20:06:25.000000000 +0100
@@ -7,9 +7,9 @@
 
 
 # Do not change the variable name.  It's parsed by doc/conf.py script.
-version = '0.1.8'
+version = '0.1.9'
 
-requires = ['Sphinx >= 1.2', 'six']
+requires = ['Sphinx >= 1.2']
 
 
 def readme():
@@ -31,22 +31,23 @@
         'Development Status :: 5 - Production/Stable',
         'Environment :: Console',
         'Environment :: Web Environment',
+        'Framework :: Sphinx :: Extension',
         'Intended Audience :: Developers',
         'License :: OSI Approved :: BSD License',
         'Operating System :: OS Independent',
         'Programming Language :: Python',
-        'Programming Language :: Python :: 3.7',
         'Programming Language :: Python :: 3.8',
         'Programming Language :: Python :: 3.9',
         'Programming Language :: Python :: 3.10',
         'Programming Language :: Python :: 3.11',
+        'Programming Language :: Python :: 3.12',
         'Programming Language :: Python :: Implementation :: CPython',
         'Programming Language :: Python :: Implementation :: Stackless',
         'Topic :: Documentation',
         'Topic :: Software Development :: Documentation',
         'Topic :: Utilities'
     ],
-    python_requires='>=3.7',
+    python_requires='>=3.8',
     platforms='any',
     packages=find_packages(),
     namespace_packages=['sphinxcontrib'],
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/autoprogram-0.1.8/sphinxcontrib/autoprogram.py 
new/autoprogram-0.1.9/sphinxcontrib/autoprogram.py
--- old/autoprogram-0.1.8/sphinxcontrib/autoprogram.py  2023-02-11 
17:56:59.000000000 +0100
+++ new/autoprogram-0.1.9/sphinxcontrib/autoprogram.py  2024-03-13 
20:06:25.000000000 +0100
@@ -12,11 +12,14 @@
 
 # pylint: disable=protected-access,missing-docstring
 import argparse
+import builtins
 import collections
 import inspect
 import os
 import re
 import sys
+import tempfile
+from functools import reduce
 from typing import Any, Dict, Iterable, List, Optional, Tuple
 import unittest
 from unittest import mock
@@ -25,8 +28,6 @@
 from docutils.parsers.rst import Directive
 from docutils.parsers.rst.directives import unchanged
 from docutils.statemachine import StringList, ViewList
-from six import exec_
-from six.moves import builtins, reduce
 from sphinx.domains import std
 from sphinx.util.nodes import nested_parse_with_titles
 
@@ -144,17 +145,17 @@
         # the script, if there is a script named module_name. Otherwise, raise
         # an ImportError as it did before.
         import glob
-        import sys
         import os
-        import imp
+        import sys
+        import types
 
         for p in sys.path:
             f = glob.glob(os.path.join(p, module_name))
             if len(f) > 0:
                 with open(f[0]) as fobj:
                     codestring = fobj.read()
-                foo = imp.new_module("foo")
-                exec_(codestring, foo.__dict__)
+                foo = types.ModuleType("foo")
+                exec(codestring, foo.__dict__)
 
                 sys.modules["foo"] = foo
                 mod = __import__("foo")
@@ -590,6 +591,14 @@
         )
         self.assertIsInstance(instance, UtilTestCase)
 
+    def test_import_object_filename(self) -> None:
+        with tempfile.TemporaryDirectory() as tmpdirname:
+            filename = os.path.join(tmpdirname, 'somefile')
+            with open(filename, 'w') as fp:
+                fp.write("bar = 42\n")
+            value = import_object("{}:bar".format(filename))
+            self.assertTrue(value == 42)
+
     if not hasattr(unittest.TestCase, "assertIsInstance"):
 
         def assertIsInstance(self, instance, cls) -> None:  # type: 
ignore[override]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/autoprogram-0.1.8/tox.ini 
new/autoprogram-0.1.9/tox.ini
--- old/autoprogram-0.1.8/tox.ini       2023-02-11 17:56:59.000000000 +0100
+++ new/autoprogram-0.1.9/tox.ini       2024-03-13 20:06:25.000000000 +0100
@@ -7,7 +7,7 @@
 # them.
 
 [tox]
-envlist = 
{py37,py38,py39,py310,py311}-{sphinx34,sphinx33,sphinx32,sphinx24,sphinx18}
+envlist = 
{py38,py39,py310,py311,py312}-{sphinx34,sphinx33,sphinx32,sphinx24,sphinx18}
 minversion = 2.7.0
 
 [testenv]

Reply via email to