[packages/python3-makefun] - python-makefun.spec updated to 1.16.0 for python 3.9+

qboosh qboosh at pld-linux.org
Mon Jun 23 21:22:00 CEST 2025


commit 02161331ae41c7f2b0dbc3dfd60c8c0cb79448b7
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Jun 23 21:23:19 2025 +0200

    - python-makefun.spec updated to 1.16.0 for python 3.9+

 python-makefun.spec  | 116 ---------------------------------------------------
 python3-makefun.spec |  68 ++++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+), 116 deletions(-)
---
diff --git a/python-makefun.spec b/python-makefun.spec
deleted file mode 100644
index 274223c..0000000
--- a/python-makefun.spec
+++ /dev/null
@@ -1,116 +0,0 @@
-#
-# Conditional build:
-%bcond_without	doc	# Sphinx documentation
-%bcond_without	tests	# unit tests
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-
-Summary:	Small library to dynamically create Python functions
-Summary(pl.UTF-8):	Mała biblioteka do dynamicznego tworzenia funkcji w Pythonie
-Name:		python-makefun
-Version:	1.15.6
-Release:	1
-License:	BSD
-Group:		Libraries/Python
-#Source0Download: https://pypi.org/simple/makefun/
-Source0:	https://files.pythonhosted.org/packages/source/m/makefun/makefun-%{version}.tar.gz
-# Source0-md5:	5ceb672609f44b348ca3370d995e74f8
-URL:		https://pypi.org/project/makefun/
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-pytest-runner
-BuildRequires:	python-setuptools >= 1:39.2
-BuildRequires:	python-setuptools_scm
-%if %{with tests}
-BuildRequires:	python-funcsigs
-BuildRequires:	python-pytest
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.5
-BuildRequires:	python3-pytest-runner
-BuildRequires:	python3-setuptools >= 1:39.2
-BuildRequires:	python3-setuptools_scm
-%if %{with tests}
-BuildRequires:	python3-pytest
-%endif
-%endif
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-Requires:	python-modules >= 1:2.7
-BuildArch:	noarch
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Small library to dynamically create Python functions.
-
-%description -l pl.UTF-8
-Mała biblioteka do dynamicznego tworzenia funkcji w Pythonie.
-
-%package -n python3-makefun
-Summary:	Small library to dynamically create Python functions
-Summary(pl.UTF-8):	Mała biblioteka do dynamicznego tworzenia funkcji w Pythonie
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.5
-
-%description -n python3-makefun
-Small library to dynamically create Python functions.
-
-%description -n python3-makefun -l pl.UTF-8
-Mała biblioteka do dynamicznego tworzenia funkcji w Pythonie.
-
-%prep
-%setup -q -n makefun-%{version}
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTHONPATH=$(pwd)/src \
-%{__python} -m pytest tests
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTHONPATH=$(pwd)/src \
-%{__python3} -m pytest tests
-%endif
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc LICENSE README.md docs/*.md
-%{py_sitescriptdir}/makefun
-%{py_sitescriptdir}/makefun-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-makefun
-%defattr(644,root,root,755)
-%doc LICENSE README.md docs/*.md
-%{py3_sitescriptdir}/makefun
-%{py3_sitescriptdir}/makefun-%{version}-py*.egg-info
-%endif
diff --git a/python3-makefun.spec b/python3-makefun.spec
new file mode 100644
index 0000000..fde7986
--- /dev/null
+++ b/python3-makefun.spec
@@ -0,0 +1,68 @@
+# TODO: run mkdocs
+#
+# Conditional build:
+%bcond_with	doc	# mkdocs documentation
+%bcond_without	tests	# unit tests
+
+Summary:	Small library to dynamically create Python functions
+Summary(pl.UTF-8):	Mała biblioteka do dynamicznego tworzenia funkcji w Pythonie
+Name:		python3-makefun
+Version:	1.16.0
+Release:	1
+License:	BSD
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/makefun/
+Source0:	https://files.pythonhosted.org/packages/source/m/makefun/makefun-%{version}.tar.gz
+# Source0-md5:	1d836c3a07619fcc951b1ea02ceab179
+URL:		https://pypi.org/project/makefun/
+BuildRequires:	python3-modules >= 1:3.9
+BuildRequires:	python3-pytest-runner
+BuildRequires:	python3-setuptools >= 1:39.2
+BuildRequires:	python3-setuptools_scm
+%if %{with tests}
+BuildRequires:	python3-pytest
+BuildRequires:	python3-pytest-asyncio
+%endif
+%if %{with doc}
+BuildRequires:	python3-mkdocs
+BuildRequires:	python3-mkdocs-material
+BuildRequires:	python3-pygments
+BuildRequires:	python3-pymdown-extensions
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python3-modules >= 1:3.9
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Small library to dynamically create Python functions.
+
+%description -l pl.UTF-8
+Mała biblioteka do dynamicznego tworzenia funkcji w Pythonie.
+
+%prep
+%setup -q -n makefun-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(pwd)/src \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md docs/*.md
+%{py3_sitescriptdir}/makefun
+%{py3_sitescriptdir}/makefun-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-makefun.git/commitdiff/02161331ae41c7f2b0dbc3dfd60c8c0cb79448b7



More information about the pld-cvs-commit mailing list