14
0
Commit Graph

38 Commits

Author SHA256 Message Date
Sebastian Wagner
f862a19c61 Accepting request 1032250 from home:yarunachalam:branches:devel:languages:python
- Update to version 3.1.0
 - regenerate import symbols
 - sync import rewrites from latest reorder-python-imports
 - there is a comment in the code about this causing a SyntaxError but as far as I can tell that is incorrect
- Update to version 3.0.0
  - Merge pull request #718 from asottile/py3-plus
  - remove python-2-compatible rewriting mode
- Update to version 2.38.4
  - Merge pull request #716 from asottile/lt-5
- Update to version 2.38.3
  - Merge pull request #715 from asottile/limit-tokenize-rt-before-break
  - limit tokenize-rt to <4 before breaks
  - tokenze-rt will remove python2-compat parsing
  - Merge pull request #711 from asottile/pre-commit-ci-update-config

OBS-URL: https://build.opensuse.org/request/show/1032250
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=65
2022-10-29 19:25:55 +00:00
Sebastian Wagner
f0573c21c8 update to version 2.38.2:
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=63
2022-09-26 06:07:46 +00:00
Sebastian Wagner
f2f657bb38 - update to version 2.33.0:
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=61
2022-06-21 08:52:59 +00:00
Sebastian Wagner
f664a4d42d - update to version 2.33.0:
- feat: rewrite deprecated unittest methods
 - Fix typos
   * README.md
   * tests/features/typing_classes_test.py
   * tests/features/yield_from_test.py

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=60
2022-06-21 08:52:30 +00:00
Sebastian Wagner
ec59c9d93a - update to version 2.32.1:
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=58
2022-05-22 10:41:05 +00:00
Sebastian Wagner
c1e61f03f6 - update to version 2.32.1:
- Do not remove quoted annotations on 3.11
   `from __future__ import annotations` will not be the default
   behavior on 3.11.
   Fixes #637.
- update to version 2.32.0:
 - rewrite check_output(...) universal_newlines -> text
 - convert fstring rewriter to a plugin
 - move typed class rewrite to a plugin
 - change is_name_attr to accept multiple modules
 - reorder pre-commit config
   Committed via https://github.com/asottile/all-repos
 - Update default branch to main
   Committed via https://github.com/asottile/all-repos
 - remove unneeded gitignore lines
   - coverage-html: coverage>=6.2 writes a .gitignore file
   - mypy_cache: mypy>=0.770 writes a .gitignore file
   - pytest_cache: pytest>=3.8.1 writes a .gitignore file
   - venv: virtualenv>=20.0.21 writes a .gitignore file
   Committed via https://github.com/asottile/all-repos

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=57
2022-05-22 10:39:59 +00:00
Sebastian Wagner
4b9afff1f1 - update to version 2.32.0:
- rewrite check_output(...) universal_newlines -> text
 - convert fstring rewriter to a plugin
 - move typed class rewrite to a plugin
 - change is_name_attr to accept multiple modules
 - reorder pre-commit config
   Committed via https://github.com/asottile/all-repos
 - Update default branch to main
   Committed via https://github.com/asottile/all-repos
 - remove unneeded gitignore lines
   - coverage-html: coverage>=6.2 writes a .gitignore file
   - mypy_cache: mypy>=0.770 writes a .gitignore file
   - pytest_cache: pytest>=3.8.1 writes a .gitignore file
   - venv: virtualenv>=20.0.21 writes a .gitignore file
   Committed via https://github.com/asottile/all-repos
- update to version 2.31.1:
 - dont rewrite universal_newlines if text or **kwargs present
 - upgrade flake8-typing-imports
   Committed via https://github.com/asottile/all-repos
 - drop python3.6 support
   python 3.6 reached end of life on 2021-12-23
   Committed via https://github.com/asottile/all-repos
 - remove --fail-under from tox (covdefaults handles this)
   Committed via https://github.com/asottile/all-repos
 - Use diff syntax in more places in the docs

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=55
2022-04-09 07:32:01 +00:00
d9de9d703a OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=53 2022-03-15 17:49:22 +00:00
ce963b6a93 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=51 2022-01-06 08:48:37 +00:00
d680bcc22c OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=48 2021-11-18 13:46:34 +00:00
43dcb2abe1 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=46 2021-11-02 21:30:26 +00:00
4f4a875d94 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=44 2021-10-26 13:49:29 +00:00
2d87dd8f9a Fix Source URL in the SPEC file.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=42
2021-09-24 22:43:38 +00:00
6dbaf146dc OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=39 2021-09-23 10:00:20 +00:00
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
Sebastian Wagner
49ae79c5c0 small spec comment update
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=2
2020-07-12 16:09:32 +00:00
c6ed09c0fd Accepting request 819135 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/819135
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyupgrade?expand=0&rev=1
2020-07-17 18:47:35 +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