[packages/python3-autopep8] Initial.

arekm arekm at pld-linux.org
Fri Mar 28 15:02:02 CET 2025


commit 244c786985846893bb85f33fe2dfd32ce1b85663
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Mar 28 14:18:14 2025 +0100

    Initial.

 python3-autopep8.spec | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 62 insertions(+)
---
diff --git a/python3-autopep8.spec b/python3-autopep8.spec
new file mode 100644
index 0000000..df70ebd
--- /dev/null
+++ b/python3-autopep8.spec
@@ -0,0 +1,62 @@
+# Conditional build:
+%bcond_without	tests	# unit tests
+
+%define		module	autopep8
+Summary:	A tool that automatically formats Python code to conform to the PEP 8 style guide
+Name:		python3-%{module}
+Version:	2.3.2
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/MODULE/
+Source0:	https://pypi.debian.net/%{module}/%{module}-%{version}.tar.gz
+# Source0-md5:	ca9de3bc225f7f92b7b8e39bdd49c0a6
+URL:		https://pypi.org/project/autopep8/
+BuildRequires:	python3-build
+BuildRequires:	python3-installer
+BuildRequires:	python3-modules >= 1:3.2
+%if %{with tests}
+#BuildRequires:	python3-
+#BuildRequires:	python3-pytest
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 2.044
+Requires:	python3-modules >= 1:3.2
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Autopep8 automatically formats Python code to conform to the PEP 8
+style guide. It uses the pycodestyle utility to determine what parts
+of the code needs to be formatted. autopep8 is capable of fixing most
+of the formatting issues that can be reported by pycodestyle.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+%{__python3} -m zipfile -e build-3/*.whl build-3-test
+# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS= \
+%{__python3} -m pytest -o pythonpath="$PWD/build-3-test" test
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS.rst README.rst
+%attr(755,root,root) %{_bindir}/%{module}
+%{py3_sitescriptdir}/%{module}*.py
+%{py3_sitescriptdir}/__pycache__/%{module}*.pyc
+%{py3_sitescriptdir}/%{module}-%{version}.dist-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-autopep8.git/commitdiff/244c786985846893bb85f33fe2dfd32ce1b85663



More information about the pld-cvs-commit mailing list