Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-fissix for openSUSE:Factory checked in at 2024-04-28 21:49:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-fissix (Old)
and /work/SRC/openSUSE:Factory/.python-fissix.new.1880 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-fissix"
Sun Apr 28 21:49:31 2024 rev:5 rq:1170444 version:24.4.24
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-fissix/python-fissix.changes 2021-12-27 16:07:25.369701547 +0100
+++ /work/SRC/openSUSE:Factory/.python-fissix.new.1880/python-fissix.changes 2024-04-29 08:56:30.272490488 +0200
@@ -1,0 +2,8 @@
+Sat Apr 27 08:55:59 UTC 2024 - Dirk Müller
+
+- update to 24.4.24:
+ * Maintenance release
+ * Updated project metadata
+ * Tested on Python 3.8 - 3.12
+
+-------------------------------------------------------------------
Old:
----
fissix-21.11.13.tar.gz
New:
----
fissix-24.4.24.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-fissix.spec ++++++
--- /var/tmp/diff_new_pack.u8XSpG/_old 2024-04-29 08:56:30.708506290 +0200
+++ /var/tmp/diff_new_pack.u8XSpG/_new 2024-04-29 08:56:30.712506435 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-fissix
#
-# Copyright (c) 2021 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
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
Name: python-fissix
-Version: 21.11.13
+Version: 24.4.24
Release: 0
Summary: Backport of lib2to3, with enhancements
License: Python-2.0
++++++ fissix-21.11.13.tar.gz -> fissix-24.4.24.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/.readthedocs.yml new/fissix-24.4.24/.readthedocs.yml
--- old/fissix-21.11.13/.readthedocs.yml 2021-06-07 02:05:30.710302600 +0200
+++ new/fissix-24.4.24/.readthedocs.yml 2024-04-24 09:56:37.237729500 +0200
@@ -1,9 +1,14 @@
version: 2
sphinx:
configuration: docs/conf.py
+build:
+ os: ubuntu-22.04
+ tools:
+ python: "3.10"
python:
- version: 3.7
install:
- - requirements: requirements-dev.txt
- method: pip
path: .
+ extra_requirements:
+ - dev
+ - docs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/CHANGELOG.md new/fissix-24.4.24/CHANGELOG.md
--- old/fissix-21.11.13/CHANGELOG.md 2021-11-14 00:21:42.044196100 +0100
+++ new/fissix-24.4.24/CHANGELOG.md 2024-04-24 10:08:35.946750400 +0200
@@ -1,21 +1,25 @@
fissix
======
-v21.11.13
----------
+[![Generated by attribution][attribution-badge]][attribution-url]
-Bug fix release:
-* Fix: except fixer checks against the value of a node (#42, #43)
-* Improved urllib fixer to include `__version__` (#44)
-* Tested against Python 3.9 (#32, #45)
+v24.4.24
+--------
-```
-$ git shortlog -s v21.6.6...v21.11.13
+Maintenance release
+
+- Updated project metadata (#51)
+- Tested on Python 3.8 - 3.12 (#51)
+
+```text
+$ git shortlog -s v21.6.6...v24.4.24
+ 3 Amethyst Reese
1 Chris Elion
3 David Grant
5 John Reese
2 Thomas Grainger
+ 4 dependabot[bot]
```
@@ -31,7 +35,7 @@
- Support for running tests outside of source tree (#31)
- Documentation for fixers, general API, and usage (#23, #24, #29)
-```
+```text
$ git shortlog -s v20.8.0...v21.6.6
1 Ashley Whetter
1 David Grant
@@ -53,7 +57,7 @@
- Better testing (#14, #21)
- Clarified license permissions (#11)
-```
+```text
$ git shortlog -s v20.5.1...v20.8.0
1 Ashley Whetter
8 John Reese
@@ -69,7 +73,7 @@
- Imported upstream changes from 3.9
- Support for 3.8 syntax changes
-```
+```text
$ git shortlog -s v19.2b1...v20.5.1
19 John Reese
1 Thomas Grainger
@@ -85,7 +89,7 @@
- Imported upstream changes from 3.9
- Support for 3.8 syntax changes
-```
+```text
$ git shortlog -s v19.2b1...v20.5.0
19 John Reese
1 Thomas Grainger
@@ -100,7 +104,7 @@
- Merge upstream v3.8.0a2-22-ged1deb0719
-```
+```text
$ git shortlog -s v19.1b1...v19.2b1
4 John Reese
```
@@ -113,7 +117,7 @@
- Merged lib2to3 v3.7.0a4-1294-ge0b5b2096e
-```
+```text
$ git shortlog -s v18.6a6...v19.1b1
7 John Reese
```
@@ -126,7 +130,7 @@
- Base/Leaf/Node now all share the same type information for `.children`
-```
+```text
$ git shortlog -s v18.6a5...v18.6a6
1 John Reese
```
@@ -139,7 +143,7 @@
- Include grammar text files in source distribution
-```
+```text
$ git shortlog -s v18.6a4...v18.6a5
1 John Reese
```
@@ -152,7 +156,7 @@
- generated pickle helper now returns string instead of Path object
-```
+```text
$ git shortlog -s v18.6a3...v18.6a4
1 John Reese
```
@@ -163,7 +167,7 @@
Fix MANIFEST
-```
+```text
$ git shortlog -s v18.6a2...v18.6a3
1 John Reese
```
@@ -176,7 +180,7 @@
- Add manifest file to include readme/license/requirements
-```
+```text
$ git shortlog -s v18.6a1...v18.6a2
2 John Reese
```
@@ -190,7 +194,7 @@
- store grammar pickles in user cache dir
- smoke tests
-```
+```text
$ git shortlog -s v18.6a0...v18.6a1
13 John Reese
```
@@ -203,8 +207,11 @@
- straight import of lib2to3, renamed to fissix
-```
+```text
$ git shortlog -s v18.6a0
5 John Reese
```
+[attribution-badge]:
+ https://img.shields.io/badge/generated%20by-attribution-informational
+[attribution-url]: https://attribution.omnilib.dev
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/PKG-INFO new/fissix-24.4.24/PKG-INFO
--- old/fissix-21.11.13/PKG-INFO 1970-01-01 01:00:00.000000000 +0100
+++ new/fissix-24.4.24/PKG-INFO 1970-01-01 01:00:00.000000000 +0100
@@ -1,26 +1,34 @@
Metadata-Version: 2.1
Name: fissix
-Version: 21.11.13
+Version: 24.4.24
Summary: Monkeypatches to override default behavior of lib2to3.
-Home-page: https://github.com/jreese/fissix
-Author: John Reese
-Author-email: john@noswap.com
-Requires-Python: >=3.6
+Author-email: Amethyst Reese
+Requires-Python: >=3.8
Description-Content-Type: text/markdown
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Python Software Foundation License
Classifier: Topic :: Software Development :: Libraries
-Requires-Dist: appdirs
+Requires-Dist: appdirs >= 1.4.4
+Requires-Dist: attribution==1.7.1 ; extra == "dev"
+Requires-Dist: black==24.4.0 ; extra == "dev"
+Requires-Dist: flit==3.9.0 ; extra == "dev"
+Requires-Dist: isort==5.8.0 ; extra == "dev"
+Requires-Dist: pytest==8.1.1 ; extra == "dev"
+Requires-Dist: sphinx==7.3.7 ; extra == "docs"
+Requires-Dist: sphinx-mdinclude==0.6.0 ; extra == "docs"
+Project-URL: Github, https://github.com/amyreese/fissix
+Provides-Extra: dev
+Provides-Extra: docs
fissix
======
Backport of latest lib2to3, with enhancements.
-[![build status](https://travis-ci.org/jreese/fissix.svg?branch=master)](https://travis-ci.org/jreese/fissix)
+[![build status](https://travis-ci.org/amyreese/fissix.svg?branch=master)](https://travis-ci.org/amyreese/fissix)
[![version](https://img.shields.io/pypi/v/fissix.svg)](https://pypi.org/project/fissix)
-[![license](https://img.shields.io/pypi/l/fissix.svg)](https://github.com/jreese/fissix/blob/master/LICENSE)
+[![license](https://img.shields.io/pypi/l/fissix.svg)](https://github.com/amyreese/fissix/blob/master/LICENSE)
[![code style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/README.md new/fissix-24.4.24/README.md
--- old/fissix-21.11.13/README.md 2021-06-07 02:05:30.710900300 +0200
+++ new/fissix-24.4.24/README.md 2024-04-24 08:58:00.315004600 +0200
@@ -3,9 +3,9 @@
Backport of latest lib2to3, with enhancements.
-[![build status](https://travis-ci.org/jreese/fissix.svg?branch=master)](https://travis-ci.org/jreese/fissix)
+[![build status](https://travis-ci.org/amyreese/fissix.svg?branch=master)](https://travis-ci.org/amyreese/fissix)
[![version](https://img.shields.io/pypi/v/fissix.svg)](https://pypi.org/project/fissix)
-[![license](https://img.shields.io/pypi/l/fissix.svg)](https://github.com/jreese/fissix/blob/master/LICENSE)
+[![license](https://img.shields.io/pypi/l/fissix.svg)](https://github.com/amyreese/fissix/blob/master/LICENSE)
[![code style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/docs/conf.py new/fissix-24.4.24/docs/conf.py
--- old/fissix-21.11.13/docs/conf.py 2021-06-07 02:05:30.711652300 +0200
+++ new/fissix-24.4.24/docs/conf.py 2024-04-24 09:56:37.238386600 +0200
@@ -20,8 +20,8 @@
import datetime
project = "fissix"
-copyright = f"{datetime.date.today().year}, John Reese, PSF"
-author = "John Reese"
+copyright = f"{datetime.date.today().year}, Amethyst Reese, PSF"
+author = "Amethyst Reese"
# -- General configuration ---------------------------------------------------
@@ -29,7 +29,7 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
-extensions = ["m2r", "sphinx.ext.autodoc", "sphinx.ext.intersphinx"]
+extensions = ["sphinx_mdinclude", "sphinx.ext.autodoc", "sphinx.ext.intersphinx"]
# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
@@ -61,11 +61,11 @@
"fixed_sidebar": True,
"badge_branch": "master",
"github_button": False,
- "github_user": "jreese",
+ "github_user": "amyreese",
"github_repo": "fissix",
"show_powered_by": False,
"sidebar_collapse": False,
- "extra_nav_links": {"Report Issues": "https://github.com/jreese/fissix/issues"},
+ "extra_nav_links": {"Report Issues": "https://github.com/amyreese/fissix/issues"},
}
html_sidebars = {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/fissix/__init__.py new/fissix-24.4.24/fissix/__init__.py
--- old/fissix-21.11.13/fissix/__init__.py 2021-06-07 04:47:46.468632000 +0200
+++ new/fissix-24.4.24/fissix/__init__.py 2024-04-24 08:58:00.316422200 +0200
@@ -1,4 +1,4 @@
-# copyright 2018 John Reese
+# copyright 2022 Amethyst Reese
# Licensed under the PSF license V2
"""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/fissix/__version__.py new/fissix-24.4.24/fissix/__version__.py
--- old/fissix-21.11.13/fissix/__version__.py 2021-11-14 00:21:42.052686000 +0100
+++ new/fissix-24.4.24/fissix/__version__.py 2024-04-24 10:08:35.956091000 +0200
@@ -1 +1,7 @@
-__version__ = "21.11.13"
+"""
+This file is automatically generated by attribution.
+
+Do not edit manually. Get more info at https://attribution.omnilib.dev
+"""
+
+__version__ = "24.4.24"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/fissix/fixer_base.py new/fissix-24.4.24/fissix/fixer_base.py
--- old/fissix-21.11.13/fissix/fixer_base.py 2021-06-07 04:27:43.677241800 +0200
+++ new/fissix-24.4.24/fissix/fixer_base.py 2024-04-24 09:56:37.238622200 +0200
@@ -13,7 +13,6 @@
class BaseFix(object):
-
"""Optional base class for fixers.
The subclass name must be FixFooBar where FooBar is the result of
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/fissix/fixer_util.py new/fissix-24.4.24/fissix/fixer_util.py
--- old/fissix-21.11.13/fissix/fixer_util.py 2021-06-07 04:23:30.942293600 +0200
+++ new/fissix-24.4.24/fissix/fixer_util.py 2024-04-24 09:56:37.238877500 +0200
@@ -1,4 +1,5 @@
"""Utility functions, node construction macros, etc."""
+
# Author: Collin Winter
# Local imports
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/fissix/fixes/fix_basestring.py new/fissix-24.4.24/fissix/fixes/fix_basestring.py
--- old/fissix-21.11.13/fissix/fixes/fix_basestring.py 2021-06-07 02:05:30.713559400 +0200
+++ new/fissix-24.4.24/fissix/fixes/fix_basestring.py 2024-04-24 09:56:37.239083500 +0200
@@ -1,4 +1,5 @@
"""Fixer for basestring -> str."""
+
# Author: Christian Heimes
# Local imports
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/fissix/fixes/fix_except.py new/fissix-24.4.24/fissix/fixes/fix_except.py
--- old/fissix-21.11.13/fissix/fixes/fix_except.py 2021-11-14 00:01:28.426040200 +0100
+++ new/fissix-24.4.24/fissix/fixes/fix_except.py 2024-04-24 09:56:37.239311000 +0200
@@ -19,6 +19,7 @@
except E as t:
T = t.args
"""
+
# Author: Collin Winter
# Local imports
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/fissix/fixes/fix_funcattrs.py new/fissix-24.4.24/fissix/fixes/fix_funcattrs.py
--- old/fissix-21.11.13/fissix/fixes/fix_funcattrs.py 2021-06-07 02:05:30.714551400 +0200
+++ new/fissix-24.4.24/fissix/fixes/fix_funcattrs.py 2024-04-24 09:56:37.239546300 +0200
@@ -1,4 +1,5 @@
"""Fix function attribute names (f.func_x -> f.__x__)."""
+
# Author: Collin Winter
# Local imports
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/fissix/fixes/fix_future.py new/fissix-24.4.24/fissix/fixes/fix_future.py
--- old/fissix-21.11.13/fissix/fixes/fix_future.py 2021-06-07 02:05:30.714658300 +0200
+++ new/fissix-24.4.24/fissix/fixes/fix_future.py 2024-04-24 09:56:37.239762800 +0200
@@ -2,6 +2,7 @@
from __future__ import foo is replaced with an empty line.
"""
+
# Author: Christian Heimes
# Local imports
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/fissix/fixes/fix_getcwdu.py new/fissix-24.4.24/fissix/fixes/fix_getcwdu.py
--- old/fissix-21.11.13/fissix/fixes/fix_getcwdu.py 2021-06-07 02:05:30.714761500 +0200
+++ new/fissix-24.4.24/fissix/fixes/fix_getcwdu.py 2024-04-24 09:56:37.239966400 +0200
@@ -1,6 +1,7 @@
"""
Fixer that changes os.getcwdu() to os.getcwd().
"""
+
# Author: Victor Stinner
# Local imports
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/fissix/fixes/fix_idioms.py new/fissix-24.4.24/fissix/fixes/fix_idioms.py
--- old/fissix-21.11.13/fissix/fixes/fix_idioms.py 2021-06-07 02:05:30.715016600 +0200
+++ new/fissix-24.4.24/fissix/fixes/fix_idioms.py 2024-04-24 09:56:37.240186700 +0200
@@ -25,6 +25,7 @@
v = sorted(EXPR)
foo(v)
"""
+
# Author: Jacques Frechet, Collin Winter
# Local imports
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/fissix/fixes/fix_imports.py new/fissix-24.4.24/fissix/fixes/fix_imports.py
--- old/fissix-21.11.13/fissix/fixes/fix_imports.py 2021-06-07 02:05:30.715290500 +0200
+++ new/fissix-24.4.24/fissix/fixes/fix_imports.py 2024-04-24 09:56:37.240409400 +0200
@@ -1,4 +1,5 @@
"""Fix incompatible imports and module references."""
+
# Authors: Collin Winter, Nick Edds
# Local imports
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/fissix/fixes/fix_imports2.py new/fissix-24.4.24/fissix/fixes/fix_imports2.py
--- old/fissix-21.11.13/fissix/fixes/fix_imports2.py 2021-06-07 02:05:30.715394700 +0200
+++ new/fissix-24.4.24/fissix/fixes/fix_imports2.py 2024-04-24 09:56:37.240610100 +0200
@@ -1,5 +1,6 @@
"""Fix incompatible imports and module references that must be fixed after
fix_imports."""
+
from . import fix_imports
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/fissix/fixes/fix_input.py new/fissix-24.4.24/fissix/fixes/fix_input.py
--- old/fissix-21.11.13/fissix/fixes/fix_input.py 2021-06-07 04:23:30.944143000 +0200
+++ new/fissix-24.4.24/fissix/fixes/fix_input.py 2024-04-24 09:56:37.240817800 +0200
@@ -1,4 +1,5 @@
"""Fixer that changes input(...) into eval(input(...))."""
+
# Author: Andre Roberge
# Local imports
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/fissix/fixes/fix_metaclass.py new/fissix-24.4.24/fissix/fixes/fix_metaclass.py
--- old/fissix-21.11.13/fissix/fixes/fix_metaclass.py 2021-06-07 04:23:30.944607700 +0200
+++ new/fissix-24.4.24/fissix/fixes/fix_metaclass.py 2024-04-24 09:56:37.241041700 +0200
@@ -15,6 +15,7 @@
in all those corner cases.
"""
+
# Author: Jack Diederich
# Local imports
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/fissix/fixes/fix_methodattrs.py new/fissix-24.4.24/fissix/fixes/fix_methodattrs.py
--- old/fissix-21.11.13/fissix/fixes/fix_methodattrs.py 2021-06-07 02:05:30.716476000 +0200
+++ new/fissix-24.4.24/fissix/fixes/fix_methodattrs.py 2024-04-24 09:56:37.241245300 +0200
@@ -1,5 +1,6 @@
"""Fix bound method attributes (method.im_? -> method.__?__).
"""
+
# Author: Christian Heimes
# Local imports
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/fissix/fixes/fix_next.py new/fissix-24.4.24/fissix/fixes/fix_next.py
--- old/fissix-21.11.13/fissix/fixes/fix_next.py 2021-06-07 04:23:30.945032600 +0200
+++ new/fissix-24.4.24/fissix/fixes/fix_next.py 2024-04-24 09:56:37.241456300 +0200
@@ -1,4 +1,5 @@
"""Fixer for it.next() -> next(it), per PEP 3114."""
+
# Author: Collin Winter
# Things that currently aren't covered:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/fissix/fixes/fix_nonzero.py new/fissix-24.4.24/fissix/fixes/fix_nonzero.py
--- old/fissix-21.11.13/fissix/fixes/fix_nonzero.py 2021-06-07 02:05:30.716785000 +0200
+++ new/fissix-24.4.24/fissix/fixes/fix_nonzero.py 2024-04-24 09:56:37.241653700 +0200
@@ -1,4 +1,5 @@
"""Fixer for __nonzero__ -> __bool__ methods."""
+
# Author: Collin Winter
# Local imports
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/fissix/fixes/fix_numliterals.py new/fissix-24.4.24/fissix/fixes/fix_numliterals.py
--- old/fissix-21.11.13/fissix/fixes/fix_numliterals.py 2021-06-07 04:23:30.945221700 +0200
+++ new/fissix-24.4.24/fissix/fixes/fix_numliterals.py 2024-04-24 09:56:37.241879700 +0200
@@ -1,5 +1,6 @@
"""Fixer that turns 1L into 1, 0755 into 0o755.
"""
+
# Copyright 2007 Georg Brandl.
# Licensed to PSF under a Contributor Agreement.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/fissix/fixes/fix_paren.py new/fissix-24.4.24/fissix/fixes/fix_paren.py
--- old/fissix-21.11.13/fissix/fixes/fix_paren.py 2021-06-07 02:05:30.717137000 +0200
+++ new/fissix-24.4.24/fissix/fixes/fix_paren.py 2024-04-24 09:56:37.242081600 +0200
@@ -8,6 +8,7 @@
from .. import fixer_base
from ..fixer_util import LParen, RParen
+
# XXX This doesn't support nested for loops like [x for x in 1, 2 for x in 1, 2]
class FixParen(fixer_base.BaseFix):
BM_compatible = True
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/fissix/fixes/fix_raise.py new/fissix-24.4.24/fissix/fixes/fix_raise.py
--- old/fissix-21.11.13/fissix/fixes/fix_raise.py 2021-06-07 04:23:30.945643000 +0200
+++ new/fissix-24.4.24/fissix/fixes/fix_raise.py 2024-04-24 09:56:37.242293100 +0200
@@ -20,6 +20,7 @@
any client code would have to be changed as well, we don't automate
this.
"""
+
# Author: Collin Winter
# Local imports
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/fissix/fixes/fix_raw_input.py new/fissix-24.4.24/fissix/fixes/fix_raw_input.py
--- old/fissix-21.11.13/fissix/fixes/fix_raw_input.py 2021-06-07 02:05:30.717485400 +0200
+++ new/fissix-24.4.24/fissix/fixes/fix_raw_input.py 2024-04-24 09:56:37.242524100 +0200
@@ -1,4 +1,5 @@
"""Fixer that changes raw_input(...) into input(...)."""
+
# Author: Andre Roberge
# Local imports
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/fissix/fixes/fix_renames.py new/fissix-24.4.24/fissix/fixes/fix_renames.py
--- old/fissix-21.11.13/fissix/fixes/fix_renames.py 2021-06-07 02:05:30.717799000 +0200
+++ new/fissix-24.4.24/fissix/fixes/fix_renames.py 2024-04-24 09:56:37.242746600 +0200
@@ -3,6 +3,7 @@
Fixes:
* sys.maxint -> sys.maxsize
"""
+
# Author: Christian Heimes
# based on Collin Winter's fix_import
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/fissix/fixes/fix_throw.py new/fissix-24.4.24/fissix/fixes/fix_throw.py
--- old/fissix-21.11.13/fissix/fixes/fix_throw.py 2021-06-07 04:23:30.945849200 +0200
+++ new/fissix-24.4.24/fissix/fixes/fix_throw.py 2024-04-24 09:56:37.243145000 +0200
@@ -5,6 +5,7 @@
g.throw(E, V, T) -> g.throw(E(V).with_traceback(T))
g.throw("foo"[, V[, T]]) will warn about string exceptions."""
+
# Author: Collin Winter
# Local imports
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/fissix/fixes/fix_tuple_params.py new/fissix-24.4.24/fissix/fixes/fix_tuple_params.py
--- old/fissix-21.11.13/fissix/fixes/fix_tuple_params.py 2021-06-07 04:23:30.946088800 +0200
+++ new/fissix-24.4.24/fissix/fixes/fix_tuple_params.py 2024-04-24 09:56:37.243298500 +0200
@@ -16,6 +16,7 @@
# The parens are a syntax error in Python 3
lambda (x): x + y -> lambda x: x + y
"""
+
# Author: Collin Winter
# Local imports
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/fissix/fixes/fix_urllib.py new/fissix-24.4.24/fissix/fixes/fix_urllib.py
--- old/fissix-21.11.13/fissix/fixes/fix_urllib.py 2021-11-14 00:01:28.426383000 +0100
+++ new/fissix-24.4.24/fissix/fixes/fix_urllib.py 2024-04-24 09:56:37.243571000 +0200
@@ -2,6 +2,7 @@
This is rather similar to fix_imports, but because of the more
complex nature of the fixing for urllib, it has its own fixer.
"""
+
# Author: Nick Edds
# Local imports
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/fissix/fixes/fix_xreadlines.py new/fissix-24.4.24/fissix/fixes/fix_xreadlines.py
--- old/fissix-21.11.13/fissix/fixes/fix_xreadlines.py 2021-06-07 02:05:30.719327700 +0200
+++ new/fissix-24.4.24/fissix/fixes/fix_xreadlines.py 2024-04-24 09:56:37.243793200 +0200
@@ -1,6 +1,7 @@
"""Fix "for x in f.xreadlines()" -> "for x in f".
This fixer will also convert g(f.xreadlines) into g(f.__iter__)."""
+
# Author: Collin Winter
# Local imports
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/fissix/pgen2/tokenize.py new/fissix-24.4.24/fissix/pgen2/tokenize.py
--- old/fissix-21.11.13/fissix/pgen2/tokenize.py 2021-06-07 04:49:46.157734900 +0200
+++ new/fissix-24.4.24/fissix/pgen2/tokenize.py 2024-04-24 09:56:37.244363800 +0200
@@ -262,7 +262,7 @@
cookie_re = re.compile(r"^[ \t\f]*#.*?coding[:=][ \t]*([-\w.]+)", re.ASCII)
-blank_re = re.compile(br"^[ \t\f]*(?:[#\r\n]|$)", re.ASCII)
+blank_re = re.compile(rb"^[ \t\f]*(?:[#\r\n]|$)", re.ASCII)
def _get_normal_name(orig_enc):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/fissix/pytree.py new/fissix-24.4.24/fissix/pytree.py
--- old/fissix-21.11.13/fissix/pytree.py 2021-06-07 02:05:30.721599800 +0200
+++ new/fissix-24.4.24/fissix/pytree.py 2024-04-24 09:56:37.244745500 +0200
@@ -34,7 +34,6 @@
class Base(object):
-
"""
Abstract base class for Node and Leaf.
@@ -212,7 +211,6 @@
class Node(Base):
-
"""Concrete implementation for interior nodes."""
def __init__(self, type, children, context=None, prefix=None, fixers_applied=None):
@@ -324,7 +322,6 @@
class Leaf(Base):
-
"""Concrete implementation for leaf nodes."""
# Default values for instance variables
@@ -420,7 +417,6 @@
class BasePattern(object):
-
"""
A pattern is a tree matching pattern.
@@ -610,7 +606,6 @@
class WildcardPattern(BasePattern):
-
"""
A wildcard pattern can match zero or more nodes.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/fissix/tests/support.py new/fissix-24.4.24/fissix/tests/support.py
--- old/fissix-21.11.13/fissix/tests/support.py 2021-06-07 04:23:30.950334800 +0200
+++ new/fissix-24.4.24/fissix/tests/support.py 2024-04-24 09:56:37.245010400 +0200
@@ -1,4 +1,5 @@
"""Support code for test_*.py files"""
+
# Author: Collin Winter
# Python imports
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/fissix/tests/test_all_fixers.py new/fissix-24.4.24/fissix/tests/test_all_fixers.py
--- old/fissix-21.11.13/fissix/tests/test_all_fixers.py 2021-06-07 04:23:30.950571800 +0200
+++ new/fissix-24.4.24/fissix/tests/test_all_fixers.py 2024-04-24 09:56:37.245240700 +0200
@@ -3,6 +3,7 @@
This has been broken out into its own test module because of its
running time.
"""
+
# Author: Collin Winter
# Python imports
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/fissix/tests/test_parser.py new/fissix-24.4.24/fissix/tests/test_parser.py
--- old/fissix-21.11.13/fissix/tests/test_parser.py 2021-06-07 04:23:30.950970600 +0200
+++ new/fissix-24.4.24/fissix/tests/test_parser.py 2024-04-24 09:56:37.245444300 +0200
@@ -639,7 +639,6 @@
class TestParserIdempotency(support.TestCase):
-
"""A cut-down version of pytree_idempotency.py."""
def test_all_project_files(self):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/fissix/tests/test_pytree.py new/fissix-24.4.24/fissix/tests/test_pytree.py
--- old/fissix-21.11.13/fissix/tests/test_pytree.py 2021-06-07 04:23:30.951292000 +0200
+++ new/fissix-24.4.24/fissix/tests/test_pytree.py 2024-04-24 09:56:37.245748800 +0200
@@ -25,7 +25,6 @@
class TestNodes(support.TestCase):
-
"""Unit tests for nodes (Base, Leaf, Node)."""
def test_instantiate_base(self):
@@ -359,7 +358,6 @@
class TestPatterns(support.TestCase):
-
"""Unit tests for tree matching patterns."""
def test_basic_patterns(self):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/makefile new/fissix-24.4.24/makefile
--- old/fissix-21.11.13/makefile 2021-06-07 04:27:55.807138000 +0200
+++ new/fissix-24.4.24/makefile 2024-04-24 10:02:40.091822400 +0200
@@ -1,14 +1,13 @@
+EXTRAS:=dev,docs
.venv:
python -m venv .venv
- source .venv/bin/activate && make setup
+ source .venv/bin/activate && make install
venv: .venv
-setup:
+install:
python -m pip install -U pip
- python -m pip install -r requirements.txt
- python -m pip install -r requirements-dev.txt
- python -m flit install --symlink
+ python -m pip install -Ue .[$(EXTRAS)]
.PHONY: cpython
cpython:
@@ -26,10 +25,10 @@
.PHONY: html
html: .venv
- .venv/bin/sphinx-build -b html docs html
+ .venv/bin/sphinx-build -ab html docs html
release: lint test clean
- flit publish
+ python -m flit publish
format:
python -m black fissix tests
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/pyproject.toml new/fissix-24.4.24/pyproject.toml
--- old/fissix-21.11.13/pyproject.toml 2021-06-07 04:29:32.138959600 +0200
+++ new/fissix-24.4.24/pyproject.toml 2024-04-24 10:02:40.091994000 +0200
@@ -2,20 +2,39 @@
requires = ["flit_core >=2,<4"]
build-backend = "flit_core.buildapi"
-[tool.flit.metadata]
-module = "fissix"
-author = "John Reese"
-author-email = "john@noswap.com"
-description-file = "README.md"
-home-page = "https://github.com/jreese/fissix"
-requires = ["appdirs"]
-requires-python = ">=3.6"
+[project]
+name = "fissix"
+dynamic = ["description", "version"]
+readme = "README.md"
+authors = [
+ {name = "Amethyst Reese", email="amethyst@n7.gg"},
+]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Python Software Foundation License",
"Topic :: Software Development :: Libraries",
]
+requires-python = ">=3.8"
+dependencies = [
+ "appdirs >= 1.4.4",
+]
+
+[project.optional-dependencies]
+dev = [
+ "attribution==1.7.1",
+ "black==24.4.0",
+ "flit==3.9.0",
+ "isort==5.8.0",
+ "pytest==8.1.1",
+]
+docs = [
+ "sphinx==7.3.7",
+ "sphinx-mdinclude==0.6.0",
+]
+
+[project.urls]
+Github = "https://github.com/amyreese/fissix"
[tool.flit.sdist]
include = [
@@ -30,7 +49,7 @@
[tool.black]
# try to remove this after future black updates
-exclude = "py3_test_grammar.py"
+exclude = "tests/data/"
[tool.pytest.ini_options]
minversion = "6.0"
@@ -43,3 +62,4 @@
package = "fissix"
signed_tags = true
version_file = true
+ignored_authors = ["dependabot", "pyup.io"]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/requirements-dev.txt new/fissix-24.4.24/requirements-dev.txt
--- old/fissix-21.11.13/requirements-dev.txt 2021-06-07 04:29:01.869306800 +0200
+++ new/fissix-24.4.24/requirements-dev.txt 1970-01-01 01:00:00.000000000 +0100
@@ -1,7 +0,0 @@
-attribution==1.5.2
-black==21.5b2
-flit==3.2.0
-isort==5.8.0
-pytest==6.0.2
-sphinx==3.5.4
-git+https://github.com/miyakogi/m2r
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/requirements.txt new/fissix-24.4.24/requirements.txt
--- old/fissix-21.11.13/requirements.txt 2021-06-07 04:28:43.791071700 +0200
+++ new/fissix-24.4.24/requirements.txt 1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-appdirs==1.4.4
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fissix-21.11.13/setup.py new/fissix-24.4.24/setup.py
--- old/fissix-21.11.13/setup.py 1970-01-01 01:00:00.000000000 +0100
+++ new/fissix-24.4.24/setup.py 1970-01-01 01:00:00.000000000 +0100
@@ -1,29 +0,0 @@
-#!/usr/bin/env python
-# setup.py generated by flit for tools that don't yet use PEP 517
-
-from distutils.core import setup
-
-packages = \
-['fissix',
- 'fissix.fixes',
- 'fissix.pgen2',
- 'fissix.tests',
- 'fissix.tests.data.fixers.myfixes']
-
-package_data = \
-{'': ['*'], 'fissix.tests': ['data/*', 'data/fixers/*']}
-
-install_requires = \
-['appdirs']
-
-setup(name='fissix',
- version='21.11.13',
- description='Monkeypatches to override default behavior of lib2to3.',
- author='John Reese',
- author_email='john@noswap.com',
- url='https://github.com/jreese/fissix',
- packages=packages,
- package_data=package_data,
- install_requires=install_requires,
- python_requires='>=3.6',
- )