summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 17:15:05 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 17:15:05 +0000
commit03ee6a737dc60389eb9a8cf5bad0da811e9964d7 (patch)
tree363beb56b01bad9713ba5fb921e5513c3946dedc
parent921fbba22304ccfe25beb7476c57552c16801cf6 (diff)
automatic import of python-flake8-string-format
-rw-r--r--.gitignore1
-rw-r--r--python-flake8-string-format.spec91
-rw-r--r--sources1
3 files changed, 93 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..b2c9eca 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/flake8-string-format-0.3.0.tar.gz
diff --git a/python-flake8-string-format.spec b/python-flake8-string-format.spec
new file mode 100644
index 0000000..5c9f495
--- /dev/null
+++ b/python-flake8-string-format.spec
@@ -0,0 +1,91 @@
+%global _empty_manifest_terminate_build 0
+Name: python-flake8-string-format
+Version: 0.3.0
+Release: 1
+Summary: string format checker, plugin for flake8
+License: MIT License
+URL: https://github.com/xZise/flake8-string-format
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/68/db/500e114a9ee115b03a21a2581c227fd932a0f50c4ae8fee514ef9a373cf4/flake8-string-format-0.3.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-flake8
+
+%description
+An extension for `Flake8 <https://pypi.python.org/pypi/flake8>`_ to check the
+strings and parameters using ``str.format``. It checks all strings whether they
+use numbered parameters with an implicit index which isn't support in
+Python 2.6.
+In all instances of ``'…'.format(…)`` it will also check whether there are
+enough parameters given. If the format call uses variable arguments, it'll just
+check whether the right types of arguments are present.
+
+%package -n python3-flake8-string-format
+Summary: string format checker, plugin for flake8
+Provides: python-flake8-string-format
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-flake8-string-format
+An extension for `Flake8 <https://pypi.python.org/pypi/flake8>`_ to check the
+strings and parameters using ``str.format``. It checks all strings whether they
+use numbered parameters with an implicit index which isn't support in
+Python 2.6.
+In all instances of ``'…'.format(…)`` it will also check whether there are
+enough parameters given. If the format call uses variable arguments, it'll just
+check whether the right types of arguments are present.
+
+%package help
+Summary: Development documents and examples for flake8-string-format
+Provides: python3-flake8-string-format-doc
+%description help
+An extension for `Flake8 <https://pypi.python.org/pypi/flake8>`_ to check the
+strings and parameters using ``str.format``. It checks all strings whether they
+use numbered parameters with an implicit index which isn't support in
+Python 2.6.
+In all instances of ``'…'.format(…)`` it will also check whether there are
+enough parameters given. If the format call uses variable arguments, it'll just
+check whether the right types of arguments are present.
+
+%prep
+%autosetup -n flake8-string-format-0.3.0
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-flake8-string-format -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..2c4c38a
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+0feaf071c64dd79884a2c0d189c3971d flake8-string-format-0.3.0.tar.gz