From 54294d82aff51ce96bc724b5b9282cf072156a75b28caef5df81247efd676cf5 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 14 Aug 2020 17:03:14 +0000 Subject: [PATCH] Accepting request 824921 from home:jayvdb:py-submit dependency of https://github.com/pakal/django-compat-patcher , able to keep django apps working for longer OBS-URL: https://build.opensuse.org/request/show/824921 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-compat-patcher-core?expand=0&rev=1 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + compat-patcher-core-1.0.tar.gz | 3 ++ python-compat-patcher-core.changes | 4 ++ python-compat-patcher-core.spec | 68 ++++++++++++++++++++++++++++++ 5 files changed, 99 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 compat-patcher-core-1.0.tar.gz create mode 100644 python-compat-patcher-core.changes create mode 100644 python-compat-patcher-core.spec 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/compat-patcher-core-1.0.tar.gz b/compat-patcher-core-1.0.tar.gz new file mode 100644 index 0000000..58766ec --- /dev/null +++ b/compat-patcher-core-1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:88cf7a6b385cc7f853930ed25e44106bb672f13b4bbc9a80f0efa5dc9f5e816f +size 42550 diff --git a/python-compat-patcher-core.changes b/python-compat-patcher-core.changes new file mode 100644 index 0000000..74ee33f --- /dev/null +++ b/python-compat-patcher-core.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sat May 9 11:32:30 PM UTC 2020 - John Vandenberg + +- Initial spec for v1.0 diff --git a/python-compat-patcher-core.spec b/python-compat-patcher-core.spec new file mode 100644 index 0000000..3ae3686 --- /dev/null +++ b/python-compat-patcher-core.spec @@ -0,0 +1,68 @@ +# +# spec file for package python-compat-patcher-core +# +# Copyright (c) 2020 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-%{**}} +Name: python-compat-patcher-core +Version: 1.0 +Release: 0 +Summary: Python patcher system +License: MIT +Group: Development/Languages/Python +URL: https://github.com/pakal/compat-patcher-core +Source: https://files.pythonhosted.org/packages/source/c/compat-patcher-core/compat-patcher-core-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: cookiecutter > 1.6.0 +BuildRequires: dos2unix +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-six +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module docutils} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module six} +# /SECTION +%python_subpackages + +%description +Python patcher system to allow easy and lasting API compatibility. + +%prep +%setup -q -n compat-patcher-core-%{version} +sed -i 's/python setup/python3 setup/' tests/*.py +dos2unix CHANGELOG +# Depends on pytest-cookies, and the recipe isnt part of the core package +rm tests/test_cookiecutter_recipe.py +rm pytest.ini + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest tests + +%files %{python_files} +%doc AUTHORS CHANGELOG README.rst +%license LICENSE +%{python_sitelib}/* + +%changelog