14
0

84 Commits

Author SHA256 Message Date
0365149614 Accepting request 1299213 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1299213
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyupgrade?expand=0&rev=37
2025-08-13 14:31:17 +00:00
Sebastian Wagner
f21062de55 - Update to 3.20.0
* upgrade asottile/workflows
  * pyupgrade fixes for python 3.14

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=85
2025-08-06 09:51:38 +00:00
b3cc3c26e6 Accepting request 1273175 from devel:languages:python
- update to 3.19.1:
  * pyupgrade support for 3.13
  * run pyupgrade on itself for removal of 3.13 deprecated
    constructs

OBS-URL: https://build.opensuse.org/request/show/1273175
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyupgrade?expand=0&rev=36
2025-04-29 14:40:08 +00:00
872ae32b11 - update to 3.19.1:
* pyupgrade support for 3.13
  * run pyupgrade on itself for removal of 3.13 deprecated
    constructs

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=83
2025-04-28 14:15:56 +00:00
c0c7369d54 Accepting request 1198060 from devel:languages:python
- update to 3.17.0:
  * remove python 3.8 support
  * rewrite TypeVar defaults for Generator / AsyncGenerator
  * run pyupgrade on itself

OBS-URL: https://build.opensuse.org/request/show/1198060
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyupgrade?expand=0&rev=35
2024-09-02 11:14:26 +00:00
15a074579f - update to 3.17.0:
* remove python 3.8 support
  * rewrite TypeVar defaults for Generator / AsyncGenerator
  * run pyupgrade on itself

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=81
2024-08-31 12:17:47 +00:00
4b09aa73bf Accepting request 1183038 from devel:languages:python
- update to 3.16.0:
  * rewrite pep 646 Unpack to splat in *args
  * CI updates

OBS-URL: https://build.opensuse.org/request/show/1183038
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyupgrade?expand=0&rev=34
2024-06-24 18:57:00 +00:00
743f98e190 - update to 3.16.0:
* rewrite pep 646 Unpack to splat in *args
  * CI updates

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=79
2024-06-24 15:44:50 +00:00
1de4e11496 Accepting request 1161394 from devel:languages:python
- update to 3.15.2:
  * only replace to shlex.join if joined with a space

OBS-URL: https://build.opensuse.org/request/show/1161394
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyupgrade?expand=0&rev=33
2024-03-25 20:12:41 +00:00
19251cb303 - update to 3.15.2:
* only replace to shlex.join if joined with a space

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=77
2024-03-25 13:05:19 +00:00
f5423419e9 Accepting request 1160038 from devel:languages:python
- update to 3.15.1:
  * handle constant folding with comments on multilines better

OBS-URL: https://build.opensuse.org/request/show/1160038
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyupgrade?expand=0&rev=32
2024-03-21 16:01:04 +00:00
7f70b8c9df - update to 3.15.1:
* handle constant folding with comments on multilines better

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=75
2024-03-21 08:56:24 +00:00
c71922379f Accepting request 1135194 from devel:languages:python
- update to 3.15.0:
  * Implement defaultdict lambda fixer
  * update import symbols for 3.12 release
  * constant fold isinstance / issubclass / except
  * slight improvement to except fix
  * document TimeoutError rewrites
  * also rewrite os.error -> OSError
  * prevent rewriting unittest module functions with additional
    arguments
  * fix string formatting with named escape adjacent to placeholder
  * regenerate with latest reorder-python-imports
  * slightly cleaner plugin union registering
  * remove python 2 notes about invalid escapes
  * correct minimum requirement
  * fix weird-ws empty set literals
  * automatically rewrite to shlex.join in --py38-plus
  * posonlyargs are always present in 3.8+
  * updates for add-trailing-comma 3.x
  * 3.12 TypeVar bounds are always unquotable
  * support PEP 563 rewrites for 3.12+ TypeVar bounds

- Update to version 3.2.1
- Update to version 3.2.0
 - upgrade mypy to get typeshed fix

OBS-URL: https://build.opensuse.org/request/show/1135194
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyupgrade?expand=0&rev=31
2023-12-28 22:00:50 +00:00
ecb62c350c - update to 3.15.0:
* Implement defaultdict lambda fixer
  * update import symbols for 3.12 release
  * constant fold isinstance / issubclass / except
  * slight improvement to except fix
  * document TimeoutError rewrites
  * also rewrite os.error -> OSError
  * prevent rewriting unittest module functions with additional
    arguments
  * fix string formatting with named escape adjacent to placeholder
  * regenerate with latest reorder-python-imports
  * slightly cleaner plugin union registering
  * remove python 2 notes about invalid escapes
  * correct minimum requirement
  * fix weird-ws empty set literals
  * automatically rewrite to shlex.join in --py38-plus
  * posonlyargs are always present in 3.8+
  * updates for add-trailing-comma 3.x
  * 3.12 TypeVar bounds are always unquotable
  * support PEP 563 rewrites for 3.12+ TypeVar bounds
- Update to version 3.2.1
- Update to version 3.2.0
 - upgrade mypy to get typeshed fix

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=73
2023-12-26 20:25:16 +00:00
9125fa9f3b Accepting request 1090388 from devel:languages:python
- update to 3.4.0:
  * drop python37 support
  * remove use of deprecated ast

OBS-URL: https://build.opensuse.org/request/show/1090388
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyupgrade?expand=0&rev=30
2023-06-02 22:07:25 +00:00
6af7840f98 - update to 3.4.0:
* drop python37 support
  * remove use of deprecated ast

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=71
2023-06-01 20:20:09 +00:00
6c07e274f9 Accepting request 1039759 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1039759
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyupgrade?expand=0&rev=29
2022-12-03 11:48:32 +00:00
Sebastian Wagner
a907fc0677 Accepting request 1039690 from home:yarunachalam:branches:devel:languages:python
- Update to version 3.3.0
  * rewrite to datetime.UTC
- Update to version 3.2.3
  * fix rewrite of u strings to f strings
- Update to version 3.2.2
  * remove abspath(__file__) rewrite
- Update to version 3.2.1 
  * Fix `Optional["ForwardRef"]` rewriting

OBS-URL: https://build.opensuse.org/request/show/1039690
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=69
2022-12-03 08:23:16 +00:00
d328cf9055 Accepting request 1036282 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1036282
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyupgrade?expand=0&rev=28
2022-11-17 16:24:40 +00:00
Sebastian Wagner
6017c7ac99 Accepting request 1034919 from home:yarunachalam:branches:devel:languages:python
- Update to version 3.2.0 
  * Merge pull request #747 from asottile/pre-commit-ci-update-config
  * Merge pull request #745 from tusharsadhwani/unpack
  * Add PEP646 Unpack plugin
  * Merge pull request #741 from asottile/py311-release
  * regenerate import symbols
  * Merge pull request #738 from asottile/pre-commit-ci-update-config
  * Merge pull request #734 from asottile/pre-commit-ci-update-config

OBS-URL: https://build.opensuse.org/request/show/1034919
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=67
2022-11-09 20:19:29 +00:00
b936cfe6ff Accepting request 1034313 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1034313
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyupgrade?expand=0&rev=27
2022-11-08 09:54:30 +00:00
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
bf54205cb2 Accepting request 1007627 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1007627
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyupgrade?expand=0&rev=26
2022-10-03 11:46:48 +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
4c42bd8090 Accepting request 985525 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/985525
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyupgrade?expand=0&rev=25
2022-06-28 13:22:56 +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
44bf690fdd Accepting request 979648 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/979648
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyupgrade?expand=0&rev=24
2022-05-30 10:43:36 +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
de80c71375 Accepting request 970417 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/970417
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyupgrade?expand=0&rev=23
2022-04-17 21:50:13 +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
b483599fb1 Accepting request 961980 from devel:languages:python
- - 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
- update to version 2.31.0:
 - rewrite string formatting with **locals()

OBS-URL: https://build.opensuse.org/request/show/961980
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyupgrade?expand=0&rev=22
2022-03-15 20:00:56 +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
e38ef1c9fe Accepting request 944190 from devel:languages:python
- - update to version 2.31.0:
 - rewrite string formatting with **locals()
- update to version 2.30.1:
 - don't rewrite six.reraise with named args
- update to version 2.30.0:
 - rewrite abspath(__file__) to __file__ in py39+
 - fix __path__ type annotation
 - fix the diff output of `forced str("native") literals` section
 - improve coverage pragmas with covdefaults 2.1
 - Use org-default .github/FUNDING.yml
   Committed via https://github.com/asottile/all-repos
 - Rewrite docs examples with commented code to use diffs
- - update to version 2.30.0:
 - rewrite abspath(__file__) to __file__ in py39+
 - fix __path__ type annotation
 - fix the diff output of `forced str("native") literals` section
 - improve coverage pragmas with covdefaults 2.1
 - Use org-default .github/FUNDING.yml
   Committed via https://github.com/asottile/all-repos
 - Rewrite docs examples with commented code to use diffs
- update to version 2.29.1:
 - prevent rewriting union types with forward annotations
 - replace exit(main()) with raise SystemExit(main())
   Committed via https://github.com/asottile/all-repos

OBS-URL: https://build.opensuse.org/request/show/944190
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyupgrade?expand=0&rev=21
2022-01-06 14:51:19 +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
e58d296654 Accepting request 932268 from devel:languages:python
- - update to version 2.29.1:
 - prevent rewriting union types with forward annotations
 - replace exit(main()) with raise SystemExit(main())
   Committed via https://github.com/asottile/all-repos

OBS-URL: https://build.opensuse.org/request/show/932268
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyupgrade?expand=0&rev=20
2021-11-20 01:38:53 +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
290a7ce254 Accepting request 928868 from devel:languages:python
- update to version 2.29.0:
 - Revert "Merge pull request #320 from asottile/new_class_super_v2"
   This reverts commit b3f8c7b2e9ccb06c6028d5dd90c8f5490a49e95b, reversing
   changes made to 41308214566af7c5589ebc7e8a760522c82dc3bc.
 - Revert "Merge pull request #545 from asottile/skip-staticmethod"
   This reverts commit 8768d42facdaa1ef771a5a689b11329a54afd00a, reversing
   changes made to a2f517f0103c1f74bffbc06be510bcec4cd181ec.
- update to version 2.28.1:
 - don't rewrite old-super for staticmethods

OBS-URL: https://build.opensuse.org/request/show/928868
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyupgrade?expand=0&rev=19
2021-11-03 16:25:51 +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
cb3a4f84b1 Accepting request 927577 from devel:languages:python
- update to version 2.28.0:
 - don't rewrite old super calls for __new__
 - fix super replacement of multiple lines
 - Fix bug with calling different superclass method
 - Revert "Revert "Merge pull request #317 from asottile/old_super""
   This reverts commit 2719335fa7bdb582b35ac90547a0f763d4225036.
 - fix raise_from with multi lines / trailing commas
 - fix rewrite causing syntax error when the first arg has newlines
 - fix invalid dedent with comment after block

OBS-URL: https://build.opensuse.org/request/show/927577
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyupgrade?expand=0&rev=18
2021-10-26 18:14:17 +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
0881530fae Accepting request 921380 from devel:languages:python
- update to version 2.27.0:
 - handle named escape sequences in format upgrades
 - remove splatting of listcomp -> splat of generator
- update to version 2.26.0.post1:
 - BUG: fix broken tests for versioned_branches feature
- update to version 2.26.0:
 - ENH: expand versioned_branches feature to Python 3 minor version comparison (<, >, <=, >= with else)
- update to version 2.25.1:
 - don't rewrite %-format with width+s
 - update timidity docs for f-strings
- update to version 2.25.0:
 - revert pep584 rewrite
- update to version 2.24.0:
 - Rewrite unittest deprecated aliases
   Fixes #519
- update to version 2.23.3:
 - can't splat async generators
 - cannot unpack async generators
 - add extra test for pep584
- update to version 2.23.2:
 - correctly compute indent for typeddict after dedent
- update to version 2.23.1:
 - fix bug in merge dicts: look for comma backwards
- update to version 2.23.0:
 - rewrite type of primitive
- update to version 2.22.0:
 - rewrite six.moves.range
 - rewrite lru_cache with maxsize=None and typed=False
   Co-authored-by: Max Rozentsveyg <maxr@outlook.com>
- update to version 2.21.2:
 - dont do generator rewrite if list comp contains await
- update to version 2.21.1:
 - fix breakage from async generator
 - Fix etree heading, non-breaking space to space
- update to version 2.21.0:
 - remove redunant encoding even for f-strings
- update to version 2.20.1:
 - dont rewrite fstring if await in py3
- Update to version 2.20.0:
 - stricter mypy settings
 - remove unused type ignore
 - fix six.with_metaclass and trailing commas
 - rewrite cElementTree to ElementTree
- 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
- update to versio 2.18.3:
 - remove trailing comma after removed list comp
- update to version 2.18.2:
 -  don't rewrite list comp to generator expression in short-circuiting functions
- 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
- 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
- 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
- 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
- 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
- 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
- Disable build on Python 2 as the build fails with the latest version.
- Update to version 1.10.0:
 - lru_cache(maxsize=None) => functools.cache
- Update to version 2.9.0:
 - Document correct minimum version for PEP 604
 - fix propagation of --keep-mock
 - Add --keep-runtime-typing
- 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
- Use python_clone and alternatives to provide the executable.
- Update to version 2.7.4:
 - parenthesize expressions when replacing six calls when needed
- Update to 2.7.3:
 - fix off-by-one in encode() call fixer
 - upgrade mypy to get typeshed fix 
- update to 2.7.2
  * fix any call with *sys.exc_info()
  * leave f'string'.format(...) alone
  * `reraise` and `raise_from` doc examples
- initial package for version 2.6.2.

OBS-URL: https://build.opensuse.org/request/show/921380
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyupgrade?expand=0&rev=17
2021-09-25 20:51:24 +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
28349f5ea5 Accepting request 921122 from devel:languages:python
- update to version 2.26.0.post1:
 - BUG: fix broken tests for versioned_branches feature
- update to version 2.26.0:
 - ENH: expand versioned_branches feature to Python 3 minor version comparison (<, >, <=, >= with else)
- update to version 2.25.1:
 - don't rewrite %-format with width+s
 - update timidity docs for f-strings
- update to version 2.25.0:
 - revert pep584 rewrit

OBS-URL: https://build.opensuse.org/request/show/921122
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyupgrade?expand=0&rev=16
2021-09-23 21:04:07 +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
7d144cf3ce Accepting request 917719 from devel:languages:python
- update to version 2.24.0:
 - Rewrite unittest deprecated aliases
   Fixes #519

OBS-URL: https://build.opensuse.org/request/show/917719
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyupgrade?expand=0&rev=15
2021-09-09 21:07:45 +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
Richard Brown
c105ed968d Accepting request 911250 from devel:languages:python
- update to version 2.23.3:
 - can't splat async generators
 - cannot unpack async generators
 - add extra test for pep584
- update to version 2.23.2:
 - correctly compute indent for typeddict after dedent
- update to version 2.23.1:
 - fix bug in merge dicts: look for comma backwards
- update to version 2.23.0:
 - rewrite type of primitive
- update to version 2.22.0:
 - rewrite six.moves.range
 - rewrite lru_cache with maxsize=None and typed=False
   Co-authored-by: Max Rozentsveyg <maxr@outlook.com>
- update to version 2.21.2:
 - dont do generator rewrite if list comp contains await
- update to version 2.21.1:
 - fix breakage from async generator
 - Fix etree heading, non-breaking space to space
- update to version 2.21.0:
 - remove redunant encoding even for f-strings
- update to version 2.20.1:
 - dont rewrite fstring if await in py3

OBS-URL: https://build.opensuse.org/request/show/911250
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyupgrade?expand=0&rev=14
2021-08-11 09:47:15 +00:00