commit e199c04adc35e6d38d8e40f97fb4e9b85f373bb4de01a880000db6e952f05b62 Author: Tomáš Chvátal Date: Tue Jul 7 07:43:27 2020 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-pyupgrade-2.6.2.tar.gz b/python-pyupgrade-2.6.2.tar.gz new file mode 100644 index 0000000..5128d17 --- /dev/null +++ b/python-pyupgrade-2.6.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cc50909b49221739b25b74bf5792b33db3703965ca912de0d51f613c4e4c7a2f +size 41680 diff --git a/python-pyupgrade.changes b/python-pyupgrade.changes new file mode 100644 index 0000000..9910229 --- /dev/null +++ b/python-pyupgrade.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sat Jul 4 09:50:49 UTC 2020 - Sebastian Wagner + +- initial package for version 2.6.2. diff --git a/python-pyupgrade.spec b/python-pyupgrade.spec new file mode 100644 index 0000000..d327c74 --- /dev/null +++ b/python-pyupgrade.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-pyupgrade +# +# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-pyupgrade +Version: 2.6.2 +Release: 0 +License: MIT +Summary: A tool to automatically upgrade syntax for newer versions +Url: https://github.com/asottile/pyupgrade +Group: Development/Languages/Python +# pypi tarball does not include tests, use github instead. PR for inclusion: 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-rpm-macros +BuildRequires: %{python_module setuptools} +# SECTION test requirements +BuildRequires: %{python_module tokenize-rt >= 3.2.0} +BuildRequires: %{python_module pytest} +# /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