1
0
Files
python-coreapi/python-coreapi.spec
Tomáš Chvátal 823b4b5136 Accepting request 677644 from home:jayvdb:django
- Update to v2.3.3
  * Fix the encoding/decoding of Enum types
  * Fix typos
  * Update transport docs to add 'auth', and deprecate 'credentials'
- Use GitHub tarball to activate test suite
- Remove unnecessary build dependencies and add runtime dependencies

OBS-URL: https://build.opensuse.org/request/show/677644
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-coreapi?expand=0&rev=1
2019-02-20 09:59:17 +00:00

64 lines
2.0 KiB
RPMSpec

#
# spec file for package python-coreapi
#
# 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-coreapi
Version: 2.3.3
Release: 0
Summary: Python client library for Core API
License: BSD-2-Clause
Group: Development/Languages/Python
URL: https://github.com/core-api/python-client
Source: https://github.com/core-api/python-client/archive/2.3.3.tar.gz#/coreapi-%{version}.tar.gz
BuildRequires: %{python_module coreschema}
BuildRequires: %{python_module itypes}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module uritemplate}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-itypes
Requires: python-requests
Requires: python-uritemplate
BuildArch: noarch
%python_subpackages
%description
Python client library for Core API, a format-independent Document Object Model
for representing Web APIs.
%prep
%setup -q -n python-client-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec -m pytest
%files %{python_files}
%{python_sitelib}/coreapi/
%{python_sitelib}/coreapi-%{version}-py*.egg-info
%changelog