Sync from SUSE:ALP:Source:Standard:1.0 python-chai revision 0bef49cfe2f9477d431164333157e38e

This commit is contained in:
Adrian Schröter 2023-06-07 08:27:48 +02:00
commit 5a3ab96773
5 changed files with 1244 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

1119
0001-Fix-tests.patch Normal file

File diff suppressed because it is too large Load Diff

BIN
chai-1.1.2.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

39
python-chai.changes Normal file
View File

@ -0,0 +1,39 @@
-------------------------------------------------------------------
Fri Apr 21 12:23:13 UTC 2023 - Dirk Müller <dmueller@suse.com>
- add sle15_python_module_pythons (jsc#PED-68)
-------------------------------------------------------------------
Thu Mar 26 09:20:19 UTC 2020 - Paolo Stivanin <info@paolostivanin.com>
- Add 0001-Fix-tests.patch
* remove deprecation warnings
* fix files name under tests folder, so that they can be executed
with unittest
-------------------------------------------------------------------
Mon Oct 14 11:44:47 UTC 2019 - Matej Cepl <mcepl@suse.com>
- Replace %fdupes -s with plain %fdupes; hardlinks are better.
-------------------------------------------------------------------
Tue Dec 4 12:49:08 UTC 2018 - Matej Cepl <mcepl@suse.com>
- Remove superfluous devel dependency for noarch package
-------------------------------------------------------------------
Mon Sep 11 18:39:32 UTC 2017 - jengelh@inai.de
- Ensure neutrality of description.
-------------------------------------------------------------------
Sat Jul 15 18:37:48 UTC 2017 - aloisio@gmx.com
- Update to version 1.1.2
- Converted to singlespec
-------------------------------------------------------------------
Wed Aug 6 08:12:32 UTC 2014 - toddrme2178@gmail.com
- Initial version

60
python-chai.spec Normal file
View File

@ -0,0 +1,60 @@
#
# spec file for package python-chai
#
# Copyright (c) 2023 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons}
Name: python-chai
Version: 1.1.2
Release: 0
Summary: Mocking/stub framework for Python
License: BSD-3-Clause
URL: https://github.com/agoragames/chai
Source: https://files.pythonhosted.org/packages/source/c/chai/chai-%{version}.tar.gz
# https://github.com/agoragames/chai/pull/37
Patch0: 0001-Fix-tests.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
Chai provides an API for mocking/stubbing Python
objects, patterned after the Mocha library for Ruby.
%prep
%setup -q -n chai-%{version}
rm -rf chai.egg-info
%patch0 -p1
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec -m unittest discover -s tests/ -v
%files %{python_files}
%license LICENSE.txt
%doc README.rst
%{python_sitelib}/*
%changelog