Accepting request 692648 from home:jayvdb:django

- Initial spec for v0.2.2

OBS-URL: https://build.opensuse.org/request/show/692648
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-djet?expand=0&rev=1
This commit is contained in:
Tomáš Chvátal 2019-04-10 06:24:26 +00:00 committed by Git OBS Bridge
commit 27ed4c6d4d
5 changed files with 98 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
djet-0.2.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2a8cc076fb0c9c37f775f5419d554737138e0b435f69a90d872089de60d5bc00
size 26345

4
python-djet.changes Normal file
View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Tue Apr 9 12:48:27 PM UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Initial spec for v0.2.2

67
python-djet.spec Normal file
View File

@ -0,0 +1,67 @@
#
# spec file for package python-djet
#
# Copyright (c) 2019 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# 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/
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-djet
Version: 0.2.2
Release: 0
License: MIT
Summary: Set of helpers for easy testing of Django apps
Url: https://github.com/sunscrapers/djet
Group: Development/Languages/Python
Source: https://github.com/sunscrapers/djet/archive/%{version}.tar.gz#/djet-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module Django}
BuildRequires: %{python_module Pillow}
BuildRequires: %{python_module djangorestframework}
BuildRequires: %{python_module pytest-django}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
Requires: python-Django
Requires: python-Pillow
Suggests: python-djangorestframework
BuildArch: noarch
%python_subpackages
%description
Set of helpers for easy testing of Django apps.
%prep
%setup -q -n djet-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
cd testproject/
export DJANGO_SETTINGS_MODULE=settings
# test_make_inmemory_image_should_pass fails on s390x and ppc64
# PIL/ImageFile.py:496: SystemError: tile cannot extend outside image
# https://github.com/sunscrapers/djet/issues/31
%python_exec -m pytest -k 'not test_make_inmemory_image_should_pass'
%files %{python_files}
%doc LICENSE
%doc README.rst
%{python_sitelib}/*
%changelog