From 917835e4a03adb38069187313008b8322deac7d4b7b904821a0eccee7d1f4b86 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Thu, 13 Dec 2018 18:48:20 +0000 Subject: [PATCH] Accepting request 656867 from devel:languages:python:django - Version update to 3.4.4: * Many many changes to list properly - Drop obsolete patch python-pytest-django-dependency.patch OBS-URL: https://build.opensuse.org/request/show/656867 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-django?expand=0&rev=3 --- pytest-django-3.1.2.tar.gz | 3 --- pytest-django-3.4.4.tar.gz | 3 +++ python-pytest-django-dependency.patch | 11 --------- python-pytest-django.changes | 7 ++++++ python-pytest-django.spec | 33 +++++++++++++++++---------- 5 files changed, 31 insertions(+), 26 deletions(-) delete mode 100644 pytest-django-3.1.2.tar.gz create mode 100644 pytest-django-3.4.4.tar.gz delete mode 100644 python-pytest-django-dependency.patch diff --git a/pytest-django-3.1.2.tar.gz b/pytest-django-3.1.2.tar.gz deleted file mode 100644 index 4857d01..0000000 --- a/pytest-django-3.1.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:038ccc5a9daa1b1b0eb739ab7dce54e495811eca5ea3af4815a2a3ac45152309 -size 60225 diff --git a/pytest-django-3.4.4.tar.gz b/pytest-django-3.4.4.tar.gz new file mode 100644 index 0000000..06d10bc --- /dev/null +++ b/pytest-django-3.4.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe1f71a0171f6b7edac37654da0904c9bd5ffba5221ab5a76779ab870611f41f +size 66962 diff --git a/python-pytest-django-dependency.patch b/python-pytest-django-dependency.patch deleted file mode 100644 index 0e21488..0000000 --- a/python-pytest-django-dependency.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/setup.py -+++ b/setup.py -@@ -28,7 +28,7 @@ - license='BSD-3-Clause', - packages=['pytest_django'], - long_description=read('README.rst'), -- setup_requires=['setuptools_scm==1.11.1'], -+ setup_requires=['setuptools_scm'], - install_requires=['pytest>=2.9'], - classifiers=['Development Status :: 5 - Production/Stable', - 'Framework :: Django', diff --git a/python-pytest-django.changes b/python-pytest-django.changes index 32bd476..c72b081 100644 --- a/python-pytest-django.changes +++ b/python-pytest-django.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Dec 10 15:17:57 UTC 2018 - Tomáš Chvátal + +- Version update to 3.4.4: + * Many many changes to list properly +- Drop obsolete patch python-pytest-django-dependency.patch + ------------------------------------------------------------------- Thu Oct 12 14:06:41 UTC 2017 - jengelh@inai.de diff --git a/python-pytest-django.spec b/python-pytest-django.spec index b3df99b..6ce9915 100644 --- a/python-pytest-django.spec +++ b/python-pytest-django.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytest-django # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,28 +12,34 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pytest-django -Version: 3.1.2 +Version: 3.4.4 Release: 0 Summary: A Django plugin for py.test License: BSD-3-Clause Group: Development/Languages/Python -Url: http://pytest-django.readthedocs.org/ +URL: https://github.com/pytest-dev/pytest-django Source: https://files.pythonhosted.org/packages/source/p/pytest-django/pytest-django-%{version}.tar.gz -Patch: python-pytest-django-dependency.patch -BuildRequires: %{python_module devel} -BuildRequires: %{python_module pytest >= 2.9.2} -BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module Django} +BuildRequires: %{python_module pytest >= 3.6} +BuildRequires: %{python_module setuptools_scm >= 1.11.1} BuildRequires: %{python_module setuptools} +# Used for tests BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: python2-pathlib2 +BuildRequires: sqlite3 +Requires: python-Django +Requires: python-pytest >= 3.6 BuildArch: noarch +%ifpython2 +Requires: python-pathlib2 +%endif %python_subpackages %description @@ -53,7 +59,6 @@ that are already present in pytest: %prep %setup -q -n pytest-django-%{version} -%patch -p1 %build %python_build @@ -62,9 +67,13 @@ that are already present in pytest: %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +# memory operations failed in OBS not localy, thus skip them +export DJANGO_SETTINGS_MODULE=pytest_django_test.settings_sqlite +%python_expand PYTHONPATH=$(pwd) py.test-%{$python_bin_suffix} tests/ -k 'not test_sqlite_in_memory_used' + %files %{python_files} -%defattr(-,root,root,-) -%doc LICENSE +%license LICENSE %{python_sitelib}/* %changelog