From 2e243b40f630d7379ad499aca58694a346a0183ab72b61660b3ebc011f82ecd3 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 22 Mar 2024 03:41:50 +0000 Subject: [PATCH] - Update to 0.30: * Add all missing RequestOptions fields * make project nullable on datasource * add params to workbook publish method * add certification to publishing a datasource * add contentURL as a filter * adding sample file for favorites * Implement custom view objects * Fix bug in update-datasources before 3.15 * catch exceptions from ServerInfo * add query-tagging attribute to connection * Add logic to retrieve Datarole and Metric permissions * Allow injection of sessions * Fix bug in exposing ExcelRequestOptions and test * fix behavior when url has no protocol * add option to pass specific datasources to delete extracts * allow user agent to be set by caller * Fix issues with connections publishing workbooks * Allow download to file-like objects * Add updated_at to JobItem class * fix revision references where xml returned does not match docs * Do not create empty connections list * Add custom session injection, Fix bug for http_options * fix filter for python 3, remove support for python 3.6 * Add new samples and delete redundant ones * Clean up hidden_views by making it an attribute of WorkbookItem * Add type hints for workbook and data source revisions, data alerts, Favorites, Flows, groups, permissions, projects, flow runs, site, subscriptions, Users, webhooks * add get_by_id method and test for schedules OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tableauserverclient?expand=0&rev=7 --- python-tableauserverclient.changes | 52 ++++++++++++++++++++++++++++++ python-tableauserverclient.spec | 30 ++++++++++------- tableauserverclient-0.18.0.tar.gz | 3 -- tableauserverclient-0.30.tar.gz | 3 ++ 4 files changed, 74 insertions(+), 14 deletions(-) delete mode 100644 tableauserverclient-0.18.0.tar.gz create mode 100644 tableauserverclient-0.30.tar.gz diff --git a/python-tableauserverclient.changes b/python-tableauserverclient.changes index 246595c..70882b3 100644 --- a/python-tableauserverclient.changes +++ b/python-tableauserverclient.changes @@ -1,3 +1,55 @@ +------------------------------------------------------------------- +Fri Mar 22 03:41:14 UTC 2024 - Steve Kowalik + +- Update to 0.30: + * Add all missing RequestOptions fields + * make project nullable on datasource + * add params to workbook publish method + * add certification to publishing a datasource + * add contentURL as a filter + * adding sample file for favorites + * Implement custom view objects + * Fix bug in update-datasources before 3.15 + * catch exceptions from ServerInfo + * add query-tagging attribute to connection + * Add logic to retrieve Datarole and Metric permissions + * Allow injection of sessions + * Fix bug in exposing ExcelRequestOptions and test + * fix behavior when url has no protocol + * add option to pass specific datasources to delete extracts + * allow user agent to be set by caller + * Fix issues with connections publishing workbooks + * Allow download to file-like objects + * Add updated_at to JobItem class + * fix revision references where xml returned does not match docs + * Do not create empty connections list + * Add custom session injection, Fix bug for http_options + * fix filter for python 3, remove support for python 3.6 + * Add new samples and delete redundant ones + * Clean up hidden_views by making it an attribute of WorkbookItem + * Add type hints for workbook and data source revisions, data alerts, + Favorites, Flows, groups, permissions, projects, flow runs, site, + subscriptions, Users, webhooks + * add get_by_id method and test for schedules + * Allow null value for user quota tiers + * fix workbook.delete_extract + * add publish to pypi action + * fix xml generation for items + * Add Status, ParentProjectId and StartedAt filters for jobs endpoint + * make project_id nullable to support "Personal Space" for workbooks + * create single Credentials class + * Reassign content on user removal + * add redaction method to remove passwords when logging requests and + responses, which can contain embedded credentials. + * remove support for python 3.6 (add python version enforcement in setup.py) + * Extract refreshable item IDs from job XML response + * Do not eagerly fetch content when a stream was requested + * Fix QuerySet slicing logic + * add CRUD methods for default permissions +- Switch to pyproject macros. +- No more greedy globs in %files. +- Switch to GitHub source URL. + ------------------------------------------------------------------- Wed Apr 20 07:01:35 UTC 2022 - pgajdos@suse.com diff --git a/python-tableauserverclient.spec b/python-tableauserverclient.spec index 9d44ac3..e2c4351 100644 --- a/python-tableauserverclient.spec +++ b/python-tableauserverclient.spec @@ -1,7 +1,7 @@ # # spec file for package python-tableauserverclient # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,23 +16,30 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 Name: python-tableauserverclient -Version: 0.18.0 +Version: 0.30 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://files.pythonhosted.org/packages/source/t/tableauserverclient/tableauserverclient-%{version}.tar.gz +Source: https://github.com/tableau/server-client-python/archive/refs/tags/v%{version}.tar.gz#/tableauserverclient-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module versioneer} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-requests >= 2.11 +Requires: python-defusedxml >= 0.7.1 +Requires: python-packaging >= 23. +Requires: python-requests >= 2.31 BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module pytest} -BuildRequires: %{python_module requests >= 2.11} +BuildRequires: %{python_module defusedxml >= 0.7.1} +BuildRequires: %{python_module pytest-cov} +BuildRequires: %{python_module pytest-subtests} +BuildRequires: %{python_module requests >= 2.31} BuildRequires: %{python_module requests-mock >= 1.0} # /SECTION %python_subpackages @@ -41,13 +48,13 @@ BuildRequires: %{python_module requests-mock >= 1.0} A Python module for working with the Tableau Server REST API. %prep -%setup -q -n tableauserverclient-%{version} +%setup -q -n server-client-python-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -56,6 +63,7 @@ A Python module for working with the Tableau Server REST API. %files %{python_files} %doc README.md %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/tableauserverclient +%{python_sitelib}/tableauserverclient-%{version}.dist-info %changelog diff --git a/tableauserverclient-0.18.0.tar.gz b/tableauserverclient-0.18.0.tar.gz deleted file mode 100644 index 1994d93..0000000 --- a/tableauserverclient-0.18.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:57be902e04b6343ce6ec9b9868be619ea1cf32efb0b8053b8ef5af0ed6ecf2b2 -size 1927977 diff --git a/tableauserverclient-0.30.tar.gz b/tableauserverclient-0.30.tar.gz new file mode 100644 index 0000000..eba5c94 --- /dev/null +++ b/tableauserverclient-0.30.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:28af9748c3fe184cf159f1fbd857c3fdd8013b2211114a8247bfb1e054ebca22 +size 1239513