14
0
Commit Graph

12 Commits

Author SHA256 Message Date
Sebastian Wagner
3859900713 - update to version 2.14.0:
- replace universal_newlines with text if py37+
 - upgrade subprocess.run(universal_newlines=True) to subprocess.run(text=True) in --py37-plus
 - reorder_python_imports: v2.4.0 → v2.5.0

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=20
2021-05-02 07:40:11 +00:00
Sebastian Wagner
7efdadfcb7 - Update to version 2.13.0:
- move pep563 rewrite to py311
- Update to version 2.12.0:
 - document annotation unquote
 - use dict comprehension
 - rewrite typeddict even with total= option
 - Update azure-pipelines template repositories
 - _to_fstring: Use original token stream instead of unparsed AST

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=19
2021-04-24 18:18:47 +00:00
Sebastian Wagner
f824f66f87 - Update to version 2.10.1
- fix nested union replaces
- Update to version 2.11.0
 - dequote annotations: quoted annotations + `from __future__ import annotations`
 - rewrite open even with mode=: Rewrite open_mode even if mode is passed by name

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=17
2021-03-22 21:06:39 +00:00
Sebastian Wagner
1ec1e28b21 - Disable build on Python 2 as the build fails with the latest version.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=15
2021-02-13 18:23:06 +00:00
Sebastian Wagner
985d3d58e2 - Update to version 1.10.0:
- lru_cache(maxsize=None) => functools.cache

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=14
2021-02-09 06:48:22 +00:00
Sebastian Wagner
8d8d93e0cf - Update to version 2.9.0:
- Document correct minimum version for PEP 604
 - fix propagation of --keep-mock
 - Add --keep-runtime-typing

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=13
2021-02-03 16:49:04 +00:00
Sebastian Wagner
9783f48fc6 - Update to version 2.8.0:
- genericize future import detection
 - rewrite pep585 generic builtins
 - move py2 compat fixer to plugins
 - move %-format rewrite to a plugin
 - move py3+ base class removal to plugins
 - move lru_cache rewrite to a plugin
 - move six decorator removal to a plugin
 - move six.b / six.ensure_binary to a plugin
 - move __metaclass__ = test checker to a plugin
 - move io.open rewriting to a plugin
 - move simple six attrs to a plugin
 - move typing pep585 rewrite to a plugin
 - move default encoding to a plugin
 - move native literals to a plugin
 - move versioned branches rewrite to a plugin
 - move open mode fix to a plugin
 - move os error alias rename to a plugin
 - move six calls / metaclass rewrites to plugins
 - settings in separate class
 - move mock rewrite to a plugin
 - refactor Py3Plus scope management
 - move super and yield from to a legacy plugin
 - combine six_b into six_calls plugin
 - replace typing.Text with str
 - rewrite pep604 (+ add --py310-plus)
 - document PEP 604 rewrites

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=12
2021-01-31 17:52:15 +00:00
Sebastian Wagner
5479b404ce - Use python_clone and alternatives to provide the executable.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=10
2021-01-23 15:26:19 +00:00
Sebastian Wagner
661bb22e77 - Update to version 2.7.4:
- parenthesize expressions when replacing six calls when needed

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=8
2020-11-25 20:50:18 +00:00
Sebastian Wagner
56f6b80876 - Update to 2.7.3:
- fix off-by-one in encode() call fixer
 - upgrade mypy to get typeshed fix

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=6
2020-11-01 18:33:10 +00:00
Sebastian Wagner
ca5a64c368 Accepting request 824152 from home:mcalabkova:branches:devel:languages:python
- update to 2.7.2
  * fix any call with *sys.exc_info()
  * leave f'string'.format(...) alone
  * `reraise` and `raise_from` doc examples

OBS-URL: https://build.opensuse.org/request/show/824152
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=4
2020-08-03 18:08:36 +00:00
Tomáš Chvátal
e199c04adc Accepting request 818765 from home:sebix
can also maintain it
now uses github tarball to run tests

OBS-URL: https://build.opensuse.org/request/show/818765
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=1
2020-07-07 07:43:27 +00:00