From b13e68fc287fc6015d9f572ab14bf5f717ec1857d140942e2fed5151328f35fa Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sat, 4 Dec 2021 15:24:23 +0000 Subject: [PATCH] Accepting request 935450 from home:sebix initial package OBS-URL: https://build.opensuse.org/request/show/935450 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cornice?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + python-cornice-6.0.0.tar.gz | 3 ++ python-cornice.changes | 4 +++ python-cornice.spec | 71 +++++++++++++++++++++++++++++++++++++ 5 files changed, 102 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-cornice-6.0.0.tar.gz create mode 100644 python-cornice.changes create mode 100644 python-cornice.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/python-cornice-6.0.0.tar.gz b/python-cornice-6.0.0.tar.gz new file mode 100644 index 0000000..36414df --- /dev/null +++ b/python-cornice-6.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2c0996eeca26c81fd96919913e7a1ea4633c2b473eaa3e5e6b8aa6bf8015c04c +size 137321 diff --git a/python-cornice.changes b/python-cornice.changes new file mode 100644 index 0000000..3ce9fe0 --- /dev/null +++ b/python-cornice.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Dec 3 12:57:44 UTC 2021 - Sebastian Wagner + +- initial package for version 6.0.0. diff --git a/python-cornice.spec b/python-cornice.spec new file mode 100644 index 0000000..69d0541 --- /dev/null +++ b/python-cornice.spec @@ -0,0 +1,71 @@ +# +# spec file for package python-cornice +# +# 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-cornice +Version: 6.0.0 +Release: 0 +Summary: Define Web Services in Pyramid +License: MPL-2.0 +URL: https://cornice.readthedocs.io/ +# use github URL for docs and tests +Source: https://github.com/Cornices/cornice/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz +#Source: https://files.pythonhosted.org/packages/source/c/cornice/cornice-%%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +# SECTION tests +BuildRequires: %{python_module Sphinx} +BuildRequires: %{python_module WebTest} +BuildRequires: %{python_module colander >= 1.0~b1} +BuildRequires: %{python_module marshmallow >= 3.0.0} +BuildRequires: %{python_module coverage} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytest-cov} +BuildRequires: %{python_module simplejson} +BuildRequires: %{python_module pyramid >= 1.7} +# /SECTION +Requires: python-pyramid >= 1.7 +Requires: python-venusian +BuildArch: noarch +%python_subpackages + +%description +Provides helpers to build & document Web Services with Pyramid. + +%prep +%setup -q -n cornice-%{version} +chmod -x docs/source/tutorial.rst + +%build +%python_build +# building docs requires unavailable mozilla-sphinx-theme + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%{python_sitelib}/* +%doc README.rst CHANGES.txt docs/ +%license LICENSE + +%changelog