forked from pool/python-tableauserverclient
Accepting request 865537 from home:jayvdb:py-submit
no 1442 on https://hugovk.github.io/top-pypi-packages/ OBS-URL: https://build.opensuse.org/request/show/865537 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tableauserverclient?expand=0&rev=1
This commit is contained in:
63
python-tableauserverclient.spec
Normal file
63
python-tableauserverclient.spec
Normal file
@@ -0,0 +1,63 @@
|
||||
#
|
||||
# spec file for package python-tableauserverclient
|
||||
#
|
||||
# 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-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-tableauserverclient
|
||||
Version: 0.14.1
|
||||
Release: 0
|
||||
Summary: Python library for working with the Tableau Server REST API
|
||||
License: MIT
|
||||
URL: https://github.com/tableau/server-client-python
|
||||
Source: https://github.com/tableau/server-client-python/archive/v%{version}.tar.gz#/tableauserverclient-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-requests >= 2.11
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module requests >= 2.11}
|
||||
BuildRequires: %{python_module requests-mock >= 1.0}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
A Python module for working with the Tableau Server REST API.
|
||||
|
||||
%prep
|
||||
%setup -q -n server-client-python-%{version}
|
||||
touch test/__init__.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pytest test/test_*.py
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%license LICENSE LICENSE.versioneer
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user