[packages/python3-pytest-freezegun] - python-pytest-freezegun.spec updated to 0.4.2 for python 3.5+

qboosh qboosh at pld-linux.org
Sun Feb 14 17:11:26 CET 2021


commit abfce1d64a7f041b835afbcfd8b7dac8e26e7526
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Feb 14 17:11:58 2021 +0100

    - python-pytest-freezegun.spec updated to 0.4.2 for python 3.5+

 python-pytest-freezegun.spec  | 104 ------------------------------------------
 python3-pytest-freezegun.spec |  54 ++++++++++++++++++++++
 2 files changed, 54 insertions(+), 104 deletions(-)
---
diff --git a/python-pytest-freezegun.spec b/python-pytest-freezegun.spec
deleted file mode 100644
index 7ef8f81..0000000
--- a/python-pytest-freezegun.spec
+++ /dev/null
@@ -1,104 +0,0 @@
-#
-# Conditional build:
-%bcond_with	tests	# unit tests (not included in sdist)
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-
-Summary:	Wrap tests with fixtures in freeze_time
-Summary(pl.UTF-8):	Obudowywanie testów z wyposażeniem w zamrożonym czasie
-Name:		python-pytest-freezegun
-# keep 0.3.x here for python2 support
-Version:	0.3.0.post1
-Release:	1
-License:	MIT
-Group:		Libraries/Python
-#Source0Download: https://pypi.org/simple/pytest-freezegun/
-Source0:	https://files.pythonhosted.org/packages/source/p/pytest-freezegun/pytest-freezegun-%{version}.zip
-# Source0-md5:	2bf9d50fa0c78d20c193e7ded635bc2f
-URL:		https://pypi.org/project/pytest-freezegun/
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-freezegun >= 0.3
-BuildRequires:	python-pytest >= 3.0.0
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.4
-BuildRequires:	python3-setuptools
-%if %{with tests}
-BuildRequires:	python3-freezegun >= 0.3
-BuildRequires:	python3-pytest >= 3.0.0
-%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
-Wrap tests with fixtures in freeze_time.
-
-%description -l pl.UTF-8
-Obudowywanie testów z wyposażeniem w czasie zamrożonym przez
-freeze_time.
-
-%package -n python3-pytest-freezegun
-Summary:	Wrap tests with fixtures in freeze_time
-Summary(pl.UTF-8):	Obudowywanie testów z wyposażeniem w zamrożonym czasie
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.4
-
-%description -n python3-pytest-freezegun
-Wrap tests with fixtures in freeze_time.
-
-%description -n python3-pytest-freezegun -l pl.UTF-8
-Obudowywanie testów z wyposażeniem w czasie zamrożonym przez
-freeze_time.
-
-%prep
-%setup -q -n pytest-freezegun-%{version}
-
-%build
-%if %{with python2}
-%py_build
-%endif
-
-%if %{with python3}
-%py3_build
-%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.rst
-%{py_sitescriptdir}/pytest_freezegun.py[co]
-%{py_sitescriptdir}/pytest_freezegun-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-pytest-freezegun
-%defattr(644,root,root,755)
-%doc LICENSE README.rst
-%{py3_sitescriptdir}/pytest_freezegun.py
-%{py3_sitescriptdir}/__pycache__/pytest_freezegun.cpython-*.py[co]
-%{py3_sitescriptdir}/pytest_freezegun-%{version}-py*.egg-info
-%endif
diff --git a/python3-pytest-freezegun.spec b/python3-pytest-freezegun.spec
new file mode 100644
index 0000000..87a5dfa
--- /dev/null
+++ b/python3-pytest-freezegun.spec
@@ -0,0 +1,54 @@
+#
+# Conditional build:
+%bcond_with	tests	# unit tests (not included in sdist)
+
+Summary:	Wrap tests with fixtures in freeze_time
+Summary(pl.UTF-8):	Obudowywanie testów z wyposażeniem w zamrożonym czasie
+Name:		python3-pytest-freezegun
+Version:	0.4.2
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/pytest-freezegun/
+Source0:	https://files.pythonhosted.org/packages/source/p/pytest-freezegun/pytest-freezegun-%{version}.zip
+# Source0-md5:	ab9915f280a4e37fafc118af1311cc41
+URL:		https://pypi.org/project/pytest-freezegun/
+BuildRequires:	python3-modules >= 1:3.5
+BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-freezegun >= 0.3
+BuildRequires:	python3-pytest >= 3.0.0
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python3-modules >= 1:3.5
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Wrap tests with fixtures in freeze_time.
+
+%description -l pl.UTF-8
+Obudowywanie testów z wyposażeniem w czasie zamrożonym przez
+freeze_time.
+
+%prep
+%setup -q -n pytest-freezegun-%{version}
+
+%build
+%py3_build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.rst
+%{py3_sitescriptdir}/pytest_freezegun.py
+%{py3_sitescriptdir}/__pycache__/pytest_freezegun.cpython-*.py[co]
+%{py3_sitescriptdir}/pytest_freezegun-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pytest-freezegun.git/commitdiff/abfce1d64a7f041b835afbcfd8b7dac8e26e7526



More information about the pld-cvs-commit mailing list