commit 99d2da8cca8b38be8fc4773393537f1362a110d87eb2aadd9b6fd7161bf24015 Author: Tomáš Chvátal Date: Mon Mar 11 11:31:52 2019 +0000 - Initial commit, needed by python-shoudlbe OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-forbiddenfruit?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/0.1.2.tar.gz b/0.1.2.tar.gz new file mode 100644 index 0000000..7aa932a --- /dev/null +++ b/0.1.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c90147d7d51e57a036aaf6982c0b2ef77d37ffcdb0a44db9142f7ac75313b216 +size 13121 diff --git a/python-forbiddenfruit.changes b/python-forbiddenfruit.changes new file mode 100644 index 0000000..d6486aa --- /dev/null +++ b/python-forbiddenfruit.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon Mar 11 11:23:28 UTC 2019 - Tomáš Chvátal + +- Initial commit, needed by python-shoudlbe diff --git a/python-forbiddenfruit.spec b/python-forbiddenfruit.spec new file mode 100644 index 0000000..f350d2c --- /dev/null +++ b/python-forbiddenfruit.spec @@ -0,0 +1,61 @@ +# +# spec file for package python-forbiddenfruit +# +# 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 https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-forbiddenfruit +Version: 0.1.2 +Release: 0 +Summary: Patch python built-in objects +License: LGPL-3.0-or-later +Group: Development/Languages/Python +Url: https://github.com/clarete/forbiddenfruit +Source: https://github.com/clarete/forbiddenfruit/archive/%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +%python_subpackages + +%description +This project aims to help you reach heaven while writing tests, but it +may lead you to hell if used on production code. + +It basically allows you to patch built-in objects, declared in C through +python. + +%prep +%setup -q -n forbiddenfruit-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%check +# imports fail +#%%python_expand PYTHONPATH=$PYTHONPATH:%{buildroot}%{$python_sitearch} py.test-%{$python_bin_suffix} -v + +%files %{python_files} +%license COPYING +%doc README.md +%{python_sitearch}/* + +%changelog