forked from pool/python-WSME
* setup: Fix classifier * Drop support for Python < 3.8, use PTI test interface * setup: Update classifiers * Migrate to importlib.metadata * Remove use of deprecated APIs * Fix compatibility with recent Sphinx versions * Fix flake8 issues * tests: Migrate to pytest * Fix code to work with Sphinx>5.0 - update to 0.5b2: * Add a special type ‘HostRequest’ that allow a function to * Pecan adapter: Debug mode (which returns the exception tracebacks to the client) can be enabled by the pecan - Update to version 0.5b1: OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-WSME?expand=0&rev=44
71 lines
2.1 KiB
RPMSpec
71 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package python-WSME
|
|
#
|
|
# Copyright (c) 2023 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/
|
|
#
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-WSME
|
|
Version: 0.12.1
|
|
Release: 0
|
|
Summary: Web Services Made Easy
|
|
License: MIT
|
|
URL: https://packages.python.org/WSME/
|
|
Source: https://files.pythonhosted.org/packages/source/W/WSME/WSME-%{version}.tar.gz
|
|
# Test requirements:
|
|
BuildRequires: %{python_module WebOb >= 1.2.3}
|
|
BuildRequires: %{python_module WebTest}
|
|
BuildRequires: %{python_module netaddr >= 0.7.12}
|
|
BuildRequires: %{python_module pbr}
|
|
BuildRequires: %{python_module pecan}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module pytz}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module simplegeneric}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-WebOb >= 1.2.3
|
|
Requires: python-netaddr >= 0.7.12
|
|
Requires: python-pytz
|
|
Requires: python-simplegeneric
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
Web Service Made Easy (WSME) is a way to implement webservices
|
|
in Python web applications.
|
|
It is originally a rewrite of TGWebServices
|
|
with focus on extensibility, framework-independence and improved type handling.
|
|
|
|
%prep
|
|
%setup -q -n WSME-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest tests/pecantest
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc README.rst examples
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|