commit python-astor for openSUSE:Factory

2020-06-02 Thread root
Hello community,

here is the log from the commit of package python-astor for openSUSE:Factory 
checked in at 2020-06-02 14:39:40

Comparing /work/SRC/openSUSE:Factory/python-astor (Old)
 and  /work/SRC/openSUSE:Factory/.python-astor.new.3606 (New)


Package is "python-astor"

Tue Jun  2 14:39:40 2020 rev:8 rq:810588 version:0.8.1

Changes:

--- /work/SRC/openSUSE:Factory/python-astor/python-astor.changes
2020-04-05 20:53:48.801202472 +0200
+++ /work/SRC/openSUSE:Factory/.python-astor.new.3606/python-astor.changes  
2020-06-02 14:40:25.335859591 +0200
@@ -1,0 +2,13 @@
+Mon Jun  1 09:54:30 UTC 2020 - Tomáš Chvátal 
+
+- Remove patch remove_unittest2.patch as we use pytest to load
+  stuff it is no longer really needed
+
+---
+Fri May 29 12:49:31 UTC 2020 - pgaj...@suse.com
+
+- for python3, drop dependency on unittest2
+- added patches
+  + remove_unittest2.patch
+
+---



Other differences:
--
++ python-astor.spec ++
--- /var/tmp/diff_new_pack.kCdjvU/_old  2020-06-02 14:40:25.911861411 +0200
+++ /var/tmp/diff_new_pack.kCdjvU/_new  2020-06-02 14:40:25.915861424 +0200
@@ -17,6 +17,7 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%bcond_without python2
 Name:   python-astor
 Version:0.8.1
 Release:0
@@ -27,12 +28,15 @@
 Source: 
https://github.com/berkerpeksag/astor/archive/%{version}.tar.gz#/astor-%{version}.tar.gz
 # https://github.com/berkerpeksag/astor/pull/177
 Patch0: remove_nose.patch
+BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 BuildArch:  noarch
 # SECTION test requirements
-BuildRequires:  %{python_module unittest2}
+%if %{with python2}
+BuildRequires:  python-unittest2
+%endif
 # /SECTION
 %python_subpackages
 
@@ -77,7 +81,7 @@
 %python_expand chmod 755 %{buildroot}%{$python_sitelib}/astor/rtrip.py
 
 %check
-%python_exec -m unittest2 discover -v
+%pytest tests
 
 %files %{python_files}
 %doc AUTHORS README.rst docs/*.rst




commit python-astor for openSUSE:Factory

2020-04-05 Thread root
Hello community,

here is the log from the commit of package python-astor for openSUSE:Factory 
checked in at 2020-04-05 20:53:41

Comparing /work/SRC/openSUSE:Factory/python-astor (Old)
 and  /work/SRC/openSUSE:Factory/.python-astor.new.3248 (New)


Package is "python-astor"

Sun Apr  5 20:53:41 2020 rev:7 rq:791387 version:0.8.1

Changes:

--- /work/SRC/openSUSE:Factory/python-astor/python-astor.changes
2020-03-26 23:33:25.634778357 +0100
+++ /work/SRC/openSUSE:Factory/.python-astor.new.3248/python-astor.changes  
2020-04-05 20:53:48.801202472 +0200
@@ -1,0 +2,6 @@
+Fri Apr  3 21:34:35 UTC 2020 - Marcus Rueckert 
+
+- remove the shebang line from the rtrip.py otherwise the python3
+  package will require /usr/bin/python. 
+
+---



Other differences:
--
++ python-astor.spec ++
--- /var/tmp/diff_new_pack.phlhpm/_old  2020-04-05 20:53:49.557203283 +0200
+++ /var/tmp/diff_new_pack.phlhpm/_new  2020-04-05 20:53:49.557203283 +0200
@@ -63,10 +63,11 @@
 %prep
 %setup -q -n astor-%{version}
 %patch0 -p1
-# ugly fix for the use of /usr/bin/env
-sed -i 's@env @@' astor/rtrip.py
 
 %build
+# ugly fix for the use of /usr/bin/env
+sed -i 's@#!.*@@' astor/rtrip.py
+chmod a-x astor/rtrip.py
 %python_build
 
 %install




commit python-astor for openSUSE:Factory

2020-03-26 Thread root
Hello community,

here is the log from the commit of package python-astor for openSUSE:Factory 
checked in at 2020-03-26 23:33:20

Comparing /work/SRC/openSUSE:Factory/python-astor (Old)
 and  /work/SRC/openSUSE:Factory/.python-astor.new.3160 (New)


Package is "python-astor"

Thu Mar 26 23:33:20 2020 rev:6 rq:788380 version:0.8.1

Changes:

--- /work/SRC/openSUSE:Factory/python-astor/python-astor.changes
2020-01-18 12:19:08.171171249 +0100
+++ /work/SRC/openSUSE:Factory/.python-astor.new.3160/python-astor.changes  
2020-03-26 23:33:25.634778357 +0100
@@ -1,0 +2,9 @@
+Wed Mar 25 15:11:49 UTC 2020 - Paolo Stivanin 
+
+- Add remove_nose.patch
+  * test suite runs fine without nose, because it was written for unittest2
+and, because nose won't work with Python 3.9/3.10, this patch removes
+the requirement from setup.cfg and use unittest2 in the spec file
+instead of nose
+
+---

New:

  remove_nose.patch



Other differences:
--
++ python-astor.spec ++
--- /var/tmp/diff_new_pack.OIYKSy/_old  2020-03-26 23:33:26.074778516 +0100
+++ /var/tmp/diff_new_pack.OIYKSy/_new  2020-03-26 23:33:26.078778517 +0100
@@ -25,13 +25,14 @@
 Group:  Development/Languages/Python
 URL:https://github.com/berkerpeksag/astor
 Source: 
https://github.com/berkerpeksag/astor/archive/%{version}.tar.gz#/astor-%{version}.tar.gz
+# https://github.com/berkerpeksag/astor/pull/177
+Patch0: remove_nose.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 BuildArch:  noarch
 # SECTION test requirements
-BuildRequires:  %{python_module nose}
-BuildRequires:  python2-unittest2
+BuildRequires:  %{python_module unittest2}
 # /SECTION
 %python_subpackages
 
@@ -61,7 +62,7 @@
 
 %prep
 %setup -q -n astor-%{version}
-%autopatch -p1
+%patch0 -p1
 # ugly fix for the use of /usr/bin/env
 sed -i 's@env @@' astor/rtrip.py
 
@@ -75,7 +76,7 @@
 %python_expand chmod 755 %{buildroot}%{$python_sitelib}/astor/rtrip.py
 
 %check
-%python_expand nosetests-%{$python_bin_suffix} -v
+%python_exec -m unittest2 discover -v
 
 %files %{python_files}
 %doc AUTHORS README.rst docs/*.rst

++ remove_nose.patch ++
--- a/setup.cfg.orig2020-03-25 16:06:14.496510596 +0100
+++ b/setup.cfg 2020-03-25 16:08:28.672752421 +0100
@@ -35,8 +35,7 @@
 include_package_data = True
 packages = find:
 python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
-tests_requires = ["nose", "astunparse"]
-test_suite = nose.collector
+tests_requires = ["astunparse"]
 
 [options.packages.find]
 exclude = tests



commit python-astor for openSUSE:Factory

2020-01-18 Thread root
Hello community,

here is the log from the commit of package python-astor for openSUSE:Factory 
checked in at 2020-01-18 12:18:22

Comparing /work/SRC/openSUSE:Factory/python-astor (Old)
 and  /work/SRC/openSUSE:Factory/.python-astor.new.26092 (New)


Package is "python-astor"

Sat Jan 18 12:18:22 2020 rev:5 rq:765352 version:0.8.1

Changes:

--- /work/SRC/openSUSE:Factory/python-astor/python-astor.changes
2019-11-22 10:27:32.133236196 +0100
+++ /work/SRC/openSUSE:Factory/.python-astor.new.26092/python-astor.changes 
2020-01-18 12:19:08.171171249 +0100
@@ -1,0 +2,8 @@
+Fri Jan 17 12:59:09 UTC 2020 - Marketa Calabkova 
+
+- update to 0.8.1
+  * Create sdist before making a test release too
+  * remove expr_text handler from fstrings
+- Drop obsolete python38.patch and setuptools-gt-41_1.patch
+
+---

Old:

  astor-0.8.tar.gz
  python38.patch
  setuptools-gt-41_1.patch

New:

  astor-0.8.1.tar.gz



Other differences:
--
++ python-astor.spec ++
--- /var/tmp/diff_new_pack.Zd852y/_old  2020-01-18 12:19:08.771171570 +0100
+++ /var/tmp/diff_new_pack.Zd852y/_new  2020-01-18 12:19:08.775171572 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-astor
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,17 +18,13 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-astor
-Version:0.8
+Version:0.8.1
 Release:0
 Summary:Read/rewrite/write Python ASTs
 License:BSD-3-Clause
 Group:  Development/Languages/Python
 URL:https://github.com/berkerpeksag/astor
 Source: 
https://github.com/berkerpeksag/astor/archive/%{version}.tar.gz#/astor-%{version}.tar.gz
-Patch0: python38.patch
-# PATCH-FIX-UPSTREAM setuptools-gt-41_1.patch gh#berkerpeksag/astor#163 
mc...@suse.com
-# Remove weird acrobatics in setup.py and prefer proper use of setup.cfg.
-Patch1: setuptools-gt-41_1.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros

++ astor-0.8.tar.gz -> astor-0.8.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/astor-0.8/.travis.yml new/astor-0.8.1/.travis.yml
--- old/astor-0.8/.travis.yml   2019-05-19 18:51:56.0 +0200
+++ new/astor-0.8.1/.travis.yml 2019-12-10 02:48:43.0 +0100
@@ -5,18 +5,15 @@
   - 3.4
   - 3.5
   - 3.6
+  - 3.7
+  - 3.8
+  - 3.9-dev
   - pypy
   - pypy3.5
 matrix:
-  include:
-  # See https://github.com/travis-ci/travis-ci/issues/9069
-  # for more information.
-  - python: 3.7
-sudo: required
-dist: xenial
-  - python: 3.8-dev
-sudo: required
-dist: xenial
+  fast_finish: true
+  allow_failures:
+- python: 3.9-dev
 cache: pip
 install:
   - pip install tox-travis
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/astor-0.8/MANIFEST.in new/astor-0.8.1/MANIFEST.in
--- old/astor-0.8/MANIFEST.in   2019-05-19 18:51:56.0 +0200
+++ new/astor-0.8.1/MANIFEST.in 2019-12-10 02:48:43.0 +0100
@@ -1,3 +1,4 @@
 include README.rst AUTHORS LICENSE CHANGES
 include setuputils.py
+include astor/VERSION
 recursive-include tests *.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/astor-0.8/Makefile new/astor-0.8.1/Makefile
--- old/astor-0.8/Makefile  2019-05-19 18:51:56.0 +0200
+++ new/astor-0.8.1/Makefile2019-12-10 02:48:43.0 +0100
@@ -1,12 +1,14 @@
 testenv:
pip install -e .
 
-release:
+create-sdist:
python setup.py sdist bdist_wheel
+
+release: create-sdist
twine upload dist/*
 
 # Test it via `pip install -i https://test.pypi.org/simple/ `
-test-release:
+test-release: create-sdist
twine upload -r test dist/*
 
 clean:
@@ -14,4 +16,4 @@
rm -rf *.egg-info
rm -rf build/ dist/ __pycache__/
 
-.PHONY: clean release
+.PHONY: clean release test-release create-sdist
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/astor-0.8/astor/VERSION new/astor-0.8.1/astor/VERSION
--- old/astor-0.8/astor/VERSION 1970-01-01 01:00:00.0 +0100
+++ new/astor-0.8.1/astor/VERSION   2019-12-10 02:48:43.0 +0100
@@ -0,0 +1 @@
+0.8.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/astor-0.8/astor/__init__.py 
new/astor-0.8.1/astor/__init__.py
--- 

commit python-astor for openSUSE:Factory

2019-11-22 Thread root
Hello community,

here is the log from the commit of package python-astor for openSUSE:Factory 
checked in at 2019-11-22 10:27:20

Comparing /work/SRC/openSUSE:Factory/python-astor (Old)
 and  /work/SRC/openSUSE:Factory/.python-astor.new.26869 (New)


Package is "python-astor"

Fri Nov 22 10:27:20 2019 rev:4 rq:750111 version:0.8

Changes:

--- /work/SRC/openSUSE:Factory/python-astor/python-astor.changes
2019-09-11 10:39:58.703224488 +0200
+++ /work/SRC/openSUSE:Factory/.python-astor.new.26869/python-astor.changes 
2019-11-22 10:27:32.133236196 +0100
@@ -1,0 +2,6 @@
+Thu Nov 14 14:30:21 CET 2019 - Matej Cepl 
+
+- Add patch to build with setuptools >= 41.4:
+  * setuptools-gt-41_1.patch
+
+---

New:

  setuptools-gt-41_1.patch



Other differences:
--
++ python-astor.spec ++
--- /var/tmp/diff_new_pack.qJkk9n/_old  2019-11-22 10:27:33.965235656 +0100
+++ /var/tmp/diff_new_pack.qJkk9n/_new  2019-11-22 10:27:33.965235656 +0100
@@ -26,6 +26,9 @@
 URL:https://github.com/berkerpeksag/astor
 Source: 
https://github.com/berkerpeksag/astor/archive/%{version}.tar.gz#/astor-%{version}.tar.gz
 Patch0: python38.patch
+# PATCH-FIX-UPSTREAM setuptools-gt-41_1.patch gh#berkerpeksag/astor#163 
mc...@suse.com
+# Remove weird acrobatics in setup.py and prefer proper use of setup.cfg.
+Patch1: setuptools-gt-41_1.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -62,7 +65,7 @@
 
 %prep
 %setup -q -n astor-%{version}
-%patch0 -p1
+%autopatch -p1
 # ugly fix for the use of /usr/bin/env
 sed -i 's@env @@' astor/rtrip.py
 

++ setuptools-gt-41_1.patch ++
>From 30059dac4eb832e58ab2109db84508b294ba366d Mon Sep 17 00:00:00 2001
From: Jonathan Ringer 
Date: Thu, 17 Oct 2019 16:54:16 -0700
Subject: [PATCH] Fix packaging for setuptools>=41.4

---
 MANIFEST.in   |  1 +
 astor/VERSION |  1 +
 astor/__init__.py |  5 -
 setup.cfg |  3 ++-
 setup.py  | 16 +---
 5 files changed, 9 insertions(+), 17 deletions(-)
 create mode 100644 astor/VERSION

diff --git a/MANIFEST.in b/MANIFEST.in
index b12a6fe..81e72d5 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,3 +1,4 @@
 include README.rst AUTHORS LICENSE CHANGES
 include setuputils.py
+include astor/VERSION
 recursive-include tests *.py
diff --git a/astor/VERSION b/astor/VERSION
new file mode 100644
index 000..a3df0a6
--- /dev/null
+++ b/astor/VERSION
@@ -0,0 +1 @@
+0.8.0
diff --git a/astor/__init__.py b/astor/__init__.py
index 3b02983..bdedaef 100644
--- a/astor/__init__.py
+++ b/astor/__init__.py
@@ -9,6 +9,7 @@
 
 """
 
+import os
 import warnings
 
 from .code_gen import SourceGenerator, to_source  # NOQA
@@ -19,7 +20,9 @@
 from .op_util import symbol_data  # NOQA
 from .tree_walk import TreeWalk  # NOQA
 
-__version__ = '0.8.0'
+ROOT = os.path.dirname(__file__)
+with open(os.path.join(ROOT, 'VERSION')) as version_file:
+__version__ = version_file.read().strip()
 
 parse_file = code_to_ast.parse_file
 
diff --git a/setup.cfg b/setup.cfg
index 1baf6fc..a43634f 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -2,6 +2,7 @@
 name = astor
 description = Read/rewrite/write Python ASTs
 long_description = file:README.rst
+version = file: astor/VERSION
 author = Patrick Maupin
 author_email = pmau...@gmail.com
 platforms = Independent
@@ -40,7 +41,7 @@ test_suite = nose.collector
 [options.packages.find]
 exclude = tests
 
-[wheel]
+[bdist_wheel]
 universal = 1
 
 [build-system]
diff --git a/setup.py b/setup.py
index 4a111b5..6068493 100644
--- a/setup.py
+++ b/setup.py
@@ -1,17 +1,3 @@
-import os
-import sys
-
 from setuptools import setup
-from setuptools.config import read_configuration
-
-from setuputils import find_version
-
-
-def here(*paths):
-return os.path.join(os.path.dirname(__file__), *paths)
-
-config = read_configuration(here('setup.cfg'))
-config['metadata']['version'] = find_version(here('astor', '__init__.py'))
-config['options'].update(config['metadata'])
 
-setup(**config['options'])
+setup()



commit python-astor for openSUSE:Factory

2019-09-11 Thread root
Hello community,

here is the log from the commit of package python-astor for openSUSE:Factory 
checked in at 2019-09-11 10:39:58

Comparing /work/SRC/openSUSE:Factory/python-astor (Old)
 and  /work/SRC/openSUSE:Factory/.python-astor.new.7948 (New)


Package is "python-astor"

Wed Sep 11 10:39:58 2019 rev:3 rq:729897 version:0.8

Changes:

--- /work/SRC/openSUSE:Factory/python-astor/python-astor.changes
2019-06-03 18:56:40.876399680 +0200
+++ /work/SRC/openSUSE:Factory/.python-astor.new.7948/python-astor.changes  
2019-09-11 10:39:58.703224488 +0200
@@ -1,0 +2,6 @@
+Tue Sep 10 13:45:54 UTC 2019 - Tomáš Chvátal 
+
+- Add patch to build with py 3.8:
+  * python38.patch
+
+---

New:

  python38.patch



Other differences:
--
++ python-astor.spec ++
--- /var/tmp/diff_new_pack.SV4VH6/_old  2019-09-11 10:39:59.127224413 +0200
+++ /var/tmp/diff_new_pack.SV4VH6/_new  2019-09-11 10:39:59.131224412 +0200
@@ -17,24 +17,23 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
-
 Name:   python-astor
 Version:0.8
 Release:0
 Summary:Read/rewrite/write Python ASTs
 License:BSD-3-Clause
 Group:  Development/Languages/Python
-Url:https://github.com/berkerpeksag/astor
+URL:https://github.com/berkerpeksag/astor
 Source: 
https://github.com/berkerpeksag/astor/archive/%{version}.tar.gz#/astor-%{version}.tar.gz
+Patch0: python38.patch
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+BuildArch:  noarch
 # SECTION test requirements
 BuildRequires:  %{python_module nose}
 BuildRequires:  python2-unittest2
 # /SECTION
-BuildRequires:  fdupes
-BuildRequires:  python-rpm-macros
-BuildArch:  noarch
-
 %python_subpackages
 
 %description
@@ -63,6 +62,7 @@
 
 %prep
 %setup -q -n astor-%{version}
+%patch0 -p1
 # ugly fix for the use of /usr/bin/env
 sed -i 's@env @@' astor/rtrip.py
 

++ python38.patch ++
>From ab682f6ded42f0a779986a31d8bc033e4d8ae909 Mon Sep 17 00:00:00 2001
From: isidentical 
Date: Mon, 2 Sep 2019 20:07:41 +0300
Subject: [PATCH] put 2 newlines between func defs, resolves #156

---
 tests/test_code_gen.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/test_code_gen.py b/tests/test_code_gen.py
index 3cb7e64..c4935ae 100644
--- a/tests/test_code_gen.py
+++ b/tests/test_code_gen.py
@@ -171,9 +171,11 @@ def test_positional_only_arguments(self):
 def test(a, b, /, c, *, d, **kwargs):
 pass
 
+
 def test(a=3, b=4, /, c=7):
 pass
 
+
 def test(a, b=4, /, c=8, d=9):
 pass
 """



commit python-astor for openSUSE:Factory

2019-06-03 Thread root
Hello community,

here is the log from the commit of package python-astor for openSUSE:Factory 
checked in at 2019-06-03 18:56:38

Comparing /work/SRC/openSUSE:Factory/python-astor (Old)
 and  /work/SRC/openSUSE:Factory/.python-astor.new.5148 (New)


Package is "python-astor"

Mon Jun  3 18:56:38 2019 rev:2 rq:707079 version:0.8

Changes:

--- /work/SRC/openSUSE:Factory/python-astor/python-astor.changes
2018-11-12 09:41:47.529157517 +0100
+++ /work/SRC/openSUSE:Factory/.python-astor.new.5148/python-astor.changes  
2019-06-03 18:56:40.876399680 +0200
@@ -1,0 +2,23 @@
+Mon Jun  3 08:18:07 UTC 2019 - pgaj...@suse.com
+
+- version update to 0.8
+  * Support ``ast.Constant`` nodes being emitted by Python 3.8 (and initially
+created in Python 3.6).
+(Reported and fixed by Chris Rink in `Issue 120`_ and `PR 121`_.)
+  * Support Python 3.8's assignment expressions.
+(Reported and fixed by Kodi Arfer in `Issue 126`_ and `PR 134`_.)
+  * Support Python 3.8's f-string debugging syntax.
+(Reported and fixed by Batuhan Taskaya in `Issue 138`_ and `PR 139`_.)
+  * :func:`astor.to_source` now has a *source_generator_class* parameter to
+customize source code generation.
+(Reported and fixed by matham in `Issue 113`_ and `PR 114`_.)
+  * The :class:`~SourceGenerator` class can now be imported from the
+:mod:`astor` package directly. Previously, the ``astor.code_gen``
+submodule was needed to be imported.
+  * Support Python 3.8's positional only arguments. See :pep:`570` for
+more details.
+(Reported and fixed by Batuhan Taskaya in `Issue 142`_ and `PR 143`_.)
+  * bug fixes, see changelog.rst
+- run the testsuite
+
+---

Old:

  astor-0.7.1.tar.gz

New:

  astor-0.8.tar.gz



Other differences:
--
++ python-astor.spec ++
--- /var/tmp/diff_new_pack.8ULWju/_old  2019-06-03 18:56:41.852399318 +0200
+++ /var/tmp/diff_new_pack.8ULWju/_new  2019-06-03 18:56:41.856399317 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-astor
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 
 Name:   python-astor
-Version:0.7.1
+Version:0.8
 Release:0
 Summary:Read/rewrite/write Python ASTs
 License:BSD-3-Clause
@@ -27,6 +27,10 @@
 Url:https://github.com/berkerpeksag/astor
 Source: 
https://github.com/berkerpeksag/astor/archive/%{version}.tar.gz#/astor-%{version}.tar.gz
 BuildRequires:  %{python_module setuptools}
+# SECTION test requirements
+BuildRequires:  %{python_module nose}
+BuildRequires:  python2-unittest2
+# /SECTION
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 BuildArch:  noarch
@@ -70,8 +74,12 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 # fix executeable bits
 %python_expand chmod 755 %{buildroot}%{$python_sitelib}/astor/rtrip.py
+
+%check
+%python_expand nosetests-%{$python_bin_suffix} -v
+
 %files %{python_files}
-%doc AUTHORS README.rst
+%doc AUTHORS README.rst docs/*.rst
 %license LICENSE 
 %{python_sitelib}/*
 

++ astor-0.7.1.tar.gz -> astor-0.8.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/astor-0.7.1/.coveragerc new/astor-0.8/.coveragerc
--- old/astor-0.7.1/.coveragerc 1970-01-01 01:00:00.0 +0100
+++ new/astor-0.8/.coveragerc   2019-05-19 18:51:56.0 +0200
@@ -0,0 +1,8 @@
+[run]
+branch = True
+omit = 
+# omit the codegen because of deprecation
+astor/codegen.py
+.tox/*
+[report]
+show_missing = True
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/astor-0.7.1/.gitignore new/astor-0.8/.gitignore
--- old/astor-0.7.1/.gitignore  2018-07-06 10:03:51.0 +0200
+++ new/astor-0.8/.gitignore2019-05-19 18:51:56.0 +0200
@@ -43,3 +43,5 @@
 
 # Sphinx documentation
 docs/_build/
+
+all_expr_*.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/astor-0.7.1/.travis.yml new/astor-0.8/.travis.yml
--- old/astor-0.7.1/.travis.yml 2018-07-06 10:03:51.0 +0200
+++ new/astor-0.8/.travis.yml   2019-05-19 18:51:56.0 +0200
@@ -7,6 +7,16 @@
   - 3.6
   - pypy
   - pypy3.5
+matrix:
+  include:
+  # See https://github.com/travis-ci/travis-ci/issues/9069
+  # for more information.
+  - python: 3.7
+sudo: required
+dist: xenial
+  - python: