From 03ee6a737dc60389eb9a8cf5bad0da811e9964d7 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 10 Apr 2023 17:15:05 +0000 Subject: automatic import of python-flake8-string-format --- .gitignore | 1 + python-flake8-string-format.spec | 91 ++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 93 insertions(+) create mode 100644 python-flake8-string-format.spec create mode 100644 sources 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 `_ 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 `_ 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 `_ 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 - 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 -- cgit v1.2.3