From a335933d226d1e8f4aac34d54f83f4e320bdf7f7a2bf309ea2c97bd2f411614b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 17 Aug 2021 12:26:13 +0000 Subject: [PATCH] Accepting request 912400 from home:bnavigator:branches:devel:languages:python:jupyter required by openapi-core 0.14 OBS-URL: https://build.opensuse.org/request/show/912400 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dictpath?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + dictpath-0.1.3-gh.tar.gz | 3 ++ python-dictpath.changes | 5 ++++ python-dictpath.spec | 65 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 97 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 dictpath-0.1.3-gh.tar.gz create mode 100644 python-dictpath.changes create mode 100644 python-dictpath.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/dictpath-0.1.3-gh.tar.gz b/dictpath-0.1.3-gh.tar.gz new file mode 100644 index 0000000..d9005c0 --- /dev/null +++ b/dictpath-0.1.3-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:09d918e9d01d9354a580b68685ae13e902bcf02c6080337f454ae161c70806f1 +size 10828 diff --git a/python-dictpath.changes b/python-dictpath.changes new file mode 100644 index 0000000..291f00a --- /dev/null +++ b/python-dictpath.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon Aug 16 13:01:22 UTC 2021 - Ben Greiner + +- Initial specfile fo v0.1.3 +- Required by python-openapi-core 0.14 diff --git a/python-dictpath.spec b/python-dictpath.spec new file mode 100644 index 0000000..b273bb9 --- /dev/null +++ b/python-dictpath.spec @@ -0,0 +1,65 @@ +# +# spec file for package python-dictpath +# +# Copyright (c) 2021 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-dictpath +Version: 0.1.3 +Release: 0 +Summary: Object-oriented dictionary paths +License: Apache-2.0 +URL: https://github.com/p1c2u/dictpath +# Use the github tarball because it contains the tests +Source: https://github.com/p1c2u/dictpath/archive/refs/tags/%{version}.tar.gz#/dictpath-%{version}-gh.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module pytest} +%if %{with python2} +BuildRequires: python2-mock +%endif +# /SECTION +%python_subpackages + +%description +Object-oriented dictionary paths: + * Traverse resources like paths + * Access resources on demand with separate accessor layer + +%prep +%setup -q -n dictpath-%{version} +# remove coverage flags for pytest +sed -i '/addopts/ d' setup.cfg + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitelib}/* + +%changelog