Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-docutils-ast-writer for 
openSUSE:Factory checked in at 2022-02-27 22:43:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-docutils-ast-writer (Old)
 and      /work/SRC/openSUSE:Factory/.python-docutils-ast-writer.new.1958 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-docutils-ast-writer"

Sun Feb 27 22:43:10 2022 rev:3 rq:957880 version:0.1.2

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-docutils-ast-writer/python-docutils-ast-writer.changes
    2020-05-28 09:17:52.957043465 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-docutils-ast-writer.new.1958/python-docutils-ast-writer.changes
  2022-02-27 22:44:17.938651463 +0100
@@ -1,0 +2,5 @@
+Sun Feb 27 07:37:35 UTC 2022 - John Vandenberg <jay...@gmail.com>
+
+- Add pr_5.patch to fix Python 3.10
+
+-------------------------------------------------------------------

New:
----
  pr_5.patch

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

Other differences:
------------------
++++++ python-docutils-ast-writer.spec ++++++
--- /var/tmp/diff_new_pack.nbCCx9/_old  2022-02-27 22:44:18.322651575 +0100
+++ /var/tmp/diff_new_pack.nbCCx9/_new  2022-02-27 22:44:18.326651576 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-docutils-ast-writer
 #
-# Copyright (c) 2020 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
@@ -26,6 +26,7 @@
 URL:            https://github.com/jimo1001/docutils-ast-writer
 Source:         
https://files.pythonhosted.org/packages/source/d/docutils-ast-writer/docutils-ast-writer-%{version}.tar.gz
 Source1:        
https://raw.githubusercontent.com/jimo1001/docutils-ast-writer/master/LICENSE
+Patch0:         
https://patch-diff.githubusercontent.com/raw/jimo1001/docutils-ast-writer/pull/5.patch#/pr_5.patch
 BuildRequires:  %{python_module docutils >= 0.12}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
@@ -42,6 +43,7 @@
 %prep
 %setup -q -n docutils-ast-writer-%{version}
 cp %{SOURCE1} .
+%patch0 -p1 
 
 %build
 %python_build

++++++ pr_5.patch ++++++
>From f06dccb62cec60f4c950893861f27b39531d50da Mon Sep 17 00:00:00 2001
From: Torbjorn Sorby <torbjorn.so...@zivid.com>
Date: Tue, 7 Sep 2021 15:26:31 +0200
Subject: [PATCH] Remove use_2to3

use_2to3 is no longer supported by setuptools. Let's deprecate Python 2
support, and remove the types `unicode` and `long`.

@graingert suggested adding `python_requires`, thanks!

Closes #4
---
 rst2ast/writer.py | 2 +-
 setup.py          | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/rst2ast/writer.py b/rst2ast/writer.py
index 1e2e30c..59a675b 100644
--- a/rst2ast/writer.py
+++ b/rst2ast/writer.py
@@ -47,7 +47,7 @@ def walk(self, node, line=1):
         # Attributes
         for k, v in node.__dict__.items():
             try:
-                if not k.startswith('__') and isinstance(v, (str, int, float, 
bool, unicode, long,)):
+                if not k.startswith('__') and isinstance(v, (str, int, float, 
bool,)):
                     result[k] = v
             except NameError as e:
                 pass
diff --git a/setup.py b/setup.py
index 0314cbb..84b4396 100755
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@
 setup(
     name='docutils-ast-writer',
     description='AST Writer for docutils',
-    version='0.1.2',
+    version='0.1.3',
     author='jimo1001',
     author_email='jimo1...@gmail.com',
     license='MIT',
@@ -19,5 +19,5 @@
         [console_scripts]
         rst2ast = rst2ast.cmd:run
     """,
-    use_2to3 = True
+    python_requires=">=3.6",
 )

Reply via email to