14
0
Commit Graph

22 Commits

Author SHA256 Message Date
4cbcfde1a4 Fix changes
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=37
2021-09-09 11:25:18 +00:00
eae407af71 Clean up the package with unresolved conflicts.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=36
2021-09-09 11:24:49 +00:00
99df61980d OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=34 2021-08-10 09:48:27 +00:00
13dca6aa37 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=32 2021-07-21 10:42:44 +00:00
Sebastian Wagner
9c23ee5809 - update to version 2.19.1
- unpack argument list comprehensions
 - revert string join for potential perf reasons
- update to version 2.19.2
 - replace open modes with string flags
- update to version 2.19.3
 - ignore unrelated calls to .encode(...)
 - fix elif -> else when indented
- update to version 2.19.4
 - fix __metaclass__ = type replacement without extra newline

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=30
2021-06-20 08:51:30 +00:00
Sebastian Wagner
b9715c3c11 - update to versio 2.18.3:
- remove trailing comma after removed list comp

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=28
2021-05-25 07:47:19 +00:00
Sebastian Wagner
42e67b43b5 - update to version 2.18.2:
-  don't rewrite list comp to generator expression in short-circuiting functions

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=27
2021-05-24 17:13:25 +00:00
Sebastian Wagner
8b110305c1 - update to version 2.18.1:
- check argument count for generator rewrite
- update to version 2.18.0:
 - use generator expressions in single arg func calls

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=26
2021-05-21 16:01:59 +00:00
Sebastian Wagner
50977608e2 - update to version 2.17.0:
- Fix typo in the "is" example of README
 - use generator to unpack list comprehension
- update to version 2.16.0:
 - don't crash on --py311-plus
 - Use more inclusive language
 - pep584-rewrite
 - note pep584 change in README

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=25
2021-05-19 07:33:56 +00:00
Sebastian Wagner
1aff9ed1f6 - update to version 2.15.0:
- only replace argument token
 - CLN only replace argument token
 - replace stdout=PIPE and stderr=PIPE with capture_output=True

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=22
2021-05-09 09:56:54 +00:00
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