14
0
Files
python-pyupgrade/python-pyupgrade.spec
Dirk Mueller 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

75 lines
2.2 KiB
RPMSpec

#
# spec file for package python-pyupgrade
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-pyupgrade
Version: 3.15.0
Release: 0
Summary: A tool to automatically upgrade syntax for newer versions
License: MIT
Group: Development/Languages/Python
URL: https://github.com/asottile/pyupgrade
# pypi tarball does not include tests, use github instead. PR for inclusion was denied https://github.com/asottile/pyupgrade/pull/326
Source: https://github.com/asottile/pyupgrade/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
#Source: https://files.pythonhosted.org/packages/source/p/pyupgrade/pyupgrade-%%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module tokenize-rt >= 3.2.0}
# /SECTION
BuildRequires: fdupes
Requires: python-tokenize-rt >= 3.2.0
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
%python_subpackages
%description
A tool to automatically upgrade syntax for newer versions of the Python
programming language.
%prep
%setup -q -n pyupgrade-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/pyupgrade
%check
%pytest
%post
%python_install_alternative pyupgrade
%postun
%python_uninstall_alternative pyupgrade
%files %{python_files}
%doc README.md
%license LICENSE
%python_alternative %{_bindir}/pyupgrade
%{python_sitelib}/*
%changelog