commit b5bfd03c2a71f248480157513a1e833d19dd46d0a80bec56857570de70fd06df Author: Todd R Date: Fri Aug 3 03:56:13 2018 +0000 Required by python-python-gitlab which is required by python-PsychoPy OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httmock?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/httmock-1.2.6.tar.gz b/httmock-1.2.6.tar.gz new file mode 100644 index 0000000..7abe81d --- /dev/null +++ b/httmock-1.2.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4696306d1ff835c3ca865fdef2684d7e130b4120cc00126f862ba4797b1602ac +size 4399 diff --git a/python-httmock.changes b/python-httmock.changes new file mode 100644 index 0000000..05fe97e --- /dev/null +++ b/python-httmock.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Aug 3 03:52:59 UTC 2018 - toddrme2178@gmail.com + +- Initial version diff --git a/python-httmock.spec b/python-httmock.spec new file mode 100644 index 0000000..ae68aab --- /dev/null +++ b/python-httmock.spec @@ -0,0 +1,62 @@ +# +# spec file for package python-httmock +# +# 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 +# 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-httmock +Version: 1.2.6 +Release: 0 +Summary: A mocking library for requests +License: Apache-2.0 +Group: Development/Languages/Python +Url: https://github.com/patrys/httmock +Source: https://files.pythonhosted.org/packages/source/h/httmock/httmock-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +# SECTION test requirements +BuildRequires: %{python_module requests >= 1.0.0} +# /SECTION +Requires: python-requests >= 1.0.0 +BuildArch: noarch + +%python_subpackages + +%description +A mocking library for requests. + +You can use it to mock third-party APIs and test libraries that use +`requests` internally, conditionally using mocked replies with the +`urlmatch` decorator. + +%prep +%setup -q -n httmock-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/* + +%changelog