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

65 lines
2.0 KiB
RPMSpec

#
# spec file for package python-pyupgrade
#
# Copyright (c) 2020 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pyupgrade
Version: 2.7.2
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/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
BuildArch: noarch
%python_subpackages
%description
A tool to automatically upgrade syntax for newer versions.
%prep
%setup -q -n pyupgrade-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.md
%license LICENSE
%python3_only %{_bindir}/pyupgrade
%{python_sitelib}/*
%changelog