[packages/python3-pyfakefs] - python-pyfakefs updated to 4.0.2 for python 3.5+

qboosh qboosh at pld-linux.org
Sun May 31 17:21:30 CEST 2020


commit 25d317d0d386bdb678cd0e3a4196857359f3fdbf
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun May 31 17:22:14 2020 +0200

    - python-pyfakefs updated to 4.0.2 for python 3.5+

 python-pyfakefs.spec => python3-pyfakefs.spec | 100 +++-----------------------
 1 file changed, 11 insertions(+), 89 deletions(-)
---
diff --git a/python-pyfakefs.spec b/python3-pyfakefs.spec
similarity index 53%
rename from python-pyfakefs.spec
rename to python3-pyfakefs.spec
index d50073c..fb3cd1d 100644
--- a/python-pyfakefs.spec
+++ b/python3-pyfakefs.spec
@@ -2,34 +2,19 @@
 # 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:	Fake file system that mocks the Python 2 file system modules
-Summary(pl.UTF-8):	Fałszywy system plików będący atrapą modułów systemowych Pythona 2 dla plików
-Name:		python-pyfakefs
-Version:	3.7.2
+Summary:	Fake file system that mocks the Python 3 file system modules
+Summary(pl.UTF-8):	Fałszywy system plików będący atrapą modułów systemowych Pythona 3 dla plików
+Name:		python3-pyfakefs
+Version:	4.0.2
 Release:	1
 License:	Apache v2.0
 Group:		Libraries/Python
 #Source0Download: https://github.com/jmcgeheeiv/pyfakefs/releases
 Source0:	https://github.com/jmcgeheeiv/pyfakefs/archive/v%{version}/pyfakefs-%{version}.tar.gz
-# Source0-md5:	e34234db867202b035d48a77d1c78d82
+# Source0-md5:	82a7decddd919da996b34d4a8de4ca72
 URL:		http://pyfakefs.org/
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-%{?with_doc:BuildRequires:	sphinx-pdg >= 1.0}
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-pathlib2 >= 2.3.2
-BuildRequires:	python-pytest >= 2.8.6
-BuildRequires:	python-scandir >= 1.8
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.4
+BuildRequires:	python3-modules >= 1:3.5
 BuildRequires:	python3-setuptools
 %if %{with tests}
 BuildRequires:	python3-pytest >= 2.8.6
@@ -38,8 +23,10 @@ BuildRequires:	python3-pathlib2 >= 2.3.2
 BuildRequires:	python3-scandir >= 1.8
 %endif
 %endif
-%endif
-Requires:	python-modules >= 1:2.7
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+%{?with_doc:BuildRequires:	sphinx-pdg >= 1.0}
+Requires:	python3-modules >= 1:3.5
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -56,25 +43,6 @@ operują na fałszywym systemie plików w pamięci, bez dotykania
 prawdziwego dysku. Testowane oprogramowanie nie wymaga modyfikacji,
 aby działało z pyfakefs.
 
-%package -n python3-pyfakefs
-Summary:	Fake file system that mocks the Python 3 file system modules
-Summary(pl.UTF-8):	Fałszywy system plików będący atrapą modułów systemowych Pythona 3 dla plików
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.4
-
-%description -n python3-pyfakefs
-pyfakefs implements a fake file system that mocks the Python file
-system modules. Using pyfakefs, your tests operate on a fake file
-system in memory without touching the real disk. The software under
-test requires no modification to work with pyfakefs.
-
-%description -n python3-pyfakefs -l pl.UTF-8
-pyfakefs implementuje fałszywy system plików, będący atrapą dla
-modułów systemowych Pythona dla plików. Przy użyciu pyfakefs testy
-operują na fałszywym systemie plików w pamięci, bez dotykania
-prawdziwego dysku. Testowane oprogramowanie nie wymaga modyfikacji,
-aby działało z pyfakefs.
-
 %package apidocs
 Summary:	API documentation for Python pyfakefs module
 Summary(pl.UTF-8):	Dokumentacja API modułu Pythona pyfakefs
@@ -90,34 +58,7 @@ Dokumentacja API modułu Pythona pyfakefs.
 %setup -q -n pyfakefs-%{version}
 
 %build
-export LC_ALL=C.UTF-8
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-%{__python} -m pyfakefs.tests.all_tests
-# fails on pathlib
-#%{__python} -m pyfakefs.tests.all_tests_without_extra_packages
-
-PYTHONPATH=$(pwd) \
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTEST_PLUGINS=pyfakefs.pytest_plugin \
-%{__python} -m pytest \
-	pyfakefs/pytest_tests/pytest_plugin_test.py
-# fails with python2 (any < 3.6?)
-#pyfakefs/pytest_tests/pytest_fixture_test.py
-
-PYTHONPATH=$(pwd) \
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTEST_PLUGINS=pyfakefs.pytest_plugin \
-%{__python} -m pytest \
-	pyfakefs/pytest_tests/pytest_plugin_failing_test.py > testresult.txt || :
-%{__python} -m pytest \
-	pyfakefs/pytest_tests/pytest_check_failed_plugin_test.py
-%endif
-%endif
-
-%if %{with python3}
+#export LC_ALL=C.UTF-8
 %py3_build
 
 %if %{with tests}
@@ -139,7 +80,6 @@ PYTEST_PLUGINS=pyfakefs.pytest_plugin \
 %{__python3} -m pytest \
 	pyfakefs/pytest_tests/pytest_check_failed_plugin_test.py
 %endif
-%endif
 
 %if %{with doc}
 %{__make} -C docs html
@@ -148,34 +88,16 @@ PYTEST_PLUGINS=pyfakefs.pytest_plugin \
 %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 CHANGES.md README.md
-%{py_sitescriptdir}/pyfakefs
-%{py_sitescriptdir}/pyfakefs-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-pyfakefs
-%defattr(644,root,root,755)
-%doc CHANGES.md README.md
 %{py3_sitescriptdir}/pyfakefs
 %{py3_sitescriptdir}/pyfakefs-%{version}-py*.egg-info
-%endif
 
 %if %{with doc}
 %files apidocs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pyfakefs.git/commitdiff/25d317d0d386bdb678cd0e3a4196857359f3fdbf



More information about the pld-cvs-commit mailing list