8000 Squashed commit of the following: · jorwoods/server-client-python@7efb7a6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7efb7a6

Browse files
committed
Squashed commit of the following:
commit 2609e27 Merge: d107c48 3a8ec6c Author: Chris Shin <cshin@tableau.com> Date: Wed Feb 17 16:00:42 2021 -0800 Merge pull request tableau#803 from tableau/release-0.15 syncing development branch with v0.15 changelog commit d107c48 Author: Tyler Doyle <doyle.tyler@gmail.com> Date: Wed Feb 17 15:38:14 2021 -0800 Add Mypy to CI runs (tableau#802) Add mypy runs to CI, but skip misc errors, so we only see the important stuff. For now these are non blocking. commit 3a8ec6c Merge: 004ab31 a5b9252 Author: Chris Shin <cshin@tableau.com> Date: Tue Feb 16 16:51:37 2021 -0800 Merge branch 'master' into release-0.15 commit 004ab31 Author: Chris Shin <cshin@tableau.com> Date: Tue Feb 16 16:49:19 2021 -0800 Updates changelog and contributors list for v0.15 commit 6c7a87b Author: Chris Shin <cshin@tableau.com> Date: Tue Feb 16 15:09:45 2021 -0800 Removes travis and adds linting/testing into github action (tableau#798) * Removes travis and adds github workflow * Addressing code review feedback commit 9179637 Author: Lee Boynton <lee@lboynton.com> Date: Tue Feb 16 23:09:22 2021 +0000 Add support for getting groups that a user belongs to (tableau#799) * Add support for getting groups that a user belongs to * Use more descriptive name for pager function commit fe992ee Author: Chris Shin <cshin@tableau.com> Date: Tue Feb 16 14:33:59 2021 -0800 [Tasks] Translate task type from server to TSC enum (tableau#796) * Adds task type mapping to translate server response * Updates tests to match server response for task type * Fixes pycodestyle error commit f64fcf9 Author: John Vandenberg <jayvdb@gmail.com> Date: Wed Feb 17 01:21:46 2021 +0800 MANIFEST.in: Add docs and test data (tableau#780) * Update publish_workbook.py (tableau#694) * Update publish_workbook.py Added below arguments, without this there is a sign-in error on publishing a test file to Tableau Online parser.add_argument('--sitename', '-S', default='', help='sitename required') tableau_auth = TSC.TableauAuth(args.username, password,site_id=args.sitename) * Update publish_workbook.py Edits (as requested) to publish workbooks on Tableau Online which removes the Sign-in Error. * Update publish_workbook.py * Merge pull request tableau#745 from tableau/fix_732 Server versions before 2020.1 do not accept encoded query param delimiters * Merge pull request tableau#757 from tableau/fix_754 Fixes issue tableau#754 by moving file read logic inside generator * Updates changelog for v0.14.1 * MANIFEST.in: Add docs and test data Closes tableau#779 Co-authored-by: Chris Shin <cshin@tableau.com> Co-authored-by: Madhura Selvarajan <MADHURA0910@GMAIL.COM> commit 88a0188 Author: Chris Shin <cshin@tableau.com> Date: Tue Feb 16 09:17:35 2021 -0800 [Subscriptions] Add new fields and ability to update (tableau#794) * Add fields and parsing logic * Update subscription create request * Adds update request to subscriptions * Changes subscription change request creation to use tsrequest annotation * Update tests for parsing new fields * Fixes codestyle issues * Removes user and schedule name * Fixes test failure commit 026bca8 Author: Chris Shin <cshin@tableau.com> Date: Thu Feb 11 15:34:08 2021 -0800 Adds skipConnectionCheck to publish workbook (tableau#791) * Adds skipConnectionCheck flag to publish workbook * Removes unnecessary lines * Fixes style error commit 857199b Author: tjones-commits <70481977+tjones-commits@users.noreply.github.com> Date: Fri Feb 5 17:09:32 2021 -0500 Update site properties and functions (tableau#777) * Update publish_workbook.py (tableau#694) * Update publish_workbook.py Added below arguments, without this there is a sign-in error on publishing a test file to Tableau Online parser.add_argument('--sitename', '-S', default='', help='sitename required') tableau_auth = TSC.TableauAuth(args.username, password,site_id=args.sitename) * Update publish_workbook.py Edits (as requested) to publish workbooks on Tableau Online which removes the Sign-in Error. * Update publish_workbook.py * Merge pull request tableau#745 from tableau/fix_732 Server versions before 2020.1 do not accept encoded query param delimiters * Merge pull request tableau#757 from tableau/fix_754 Fixes issue tableau#754 by moving file read logic inside generator * Updates changelog for v0.14.1 * update the site item to reflect api response * update test model * remove extra test assets * trimming line length * unit test all properties. fix some properties. Remove extra code * make requested changes * make requested changes Co-authored-by: Chris Shin <cshin@tableau.com> Co-authored-by: Madhura Selvarajan <MADHURA0910@GMAIL.COM> Co-authored-by: Terrence Jones <tjones@arkatechture.com> commit a5b9252 Merge: bcb881c 1fc349c Author: Chris Shin <cshin@tableau.com> Date: Thu Dec 10 09:29:42 2020 -0800 Merge pull request tableau#759 from tableau/0.14.0-patch v0.14.1 patch release * Fixed filter query issue for server version below 2020.1 (tableau#745) * Fixed large workbook/datasource publish issue (tableau#757) commit 1fc349c Author: Chris Shin <cshin@tableau.com> Date: Wed Dec 9 16:30:03 2020 -0800 Updates changelog for v0.14.1 commit 41fd8f2 Author: Chris Shin <cshin@tableau.com> Date: Wed Dec 9 15:49:48 2020 -0800 Merge pull request tableau#757 from tableau/fix_754 Fixes issue tableau#754 by moving file read logic inside generator commit 138476f Author: Chris Shin <cshin@tableau.com> Date: Wed Dec 9 15:49:23 2020 -0800 Merge pull request tableau#745 from tableau/fix_732 Server versions before 2020.1 do not accept encoded query param delimiters commit bcb881c Merge: 8d51355 1e089b4 Author: Chris Shin <cshin@tableau.com> Date: Mon Nov 9 09:19:23 2020 -0800 Merge pull request tableau#725 from tableau/development Syncing master with v0.14.0 changes from development. commit 8d51355 Author: Madhura Selvarajan <MADHURA0910@GMAIL.COM> Date: Wed Sep 23 10:45:27 2020 -0400 Update publish_workbook.py (tableau#694) * Update publish_workbook.py Added below arguments, without this there is a sign-in error on publishing a test file to Tableau Online parser.add_argument('--sitename', '-S', default='', help='sitename required') tableau_auth = TSC.TableauAuth(args.username, password,site_id=args.sitename) * Update publish_workbook.py Edits (as requested) to publish workbooks on Tableau Online which removes the Sign-in Error. * Update publish_workbook.py commit 273af7a Merge: 43e1b06 168489c Author: Chris Shin <cshin@tableau.com> Date: Wed Sep 2 14:39:13 2020 -0700 Merge pull request tableau#685 from tableau/development [v0.13] Merge development into master Added notes field to JobItem (tableau#571) Added webpage_url field to WorkbookItem (tableau#661) Added support for switching between sites (tableau#655) Added support for querying favorites for a user (tableau#656) Added support for Python 3.8 (tableau#659) Added support for Data Alerts (tableau#667) Added support for basic Extract operations - Create, Delete, en/re/decrypt for site (tableau#672) Added support for creating and querying Active Directory groups (tableau#674) Added support for asynchronously updating a group (tableau#674) Improved handling of invalid dates (tableau#529) Improved consistency of update_permission endpoints (tableau#668) Documentation updates (tableau#658, tableau#669, tableau#670, tableau#673, tableau#683)
1 parent 2a77b28 commit 7efb7a6

32 files changed

+1119
-79
lines changed

.github/workflows/run-tests.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Python package
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install -e .[test]
26+
pip install mypy
27+
28+
- name: Lint with pycodestyle
29+
run: |
30+
pycodestyle tableauserverclient test samples
31+
32+
- name: Test with pytest
33+
run: |
34+
pytest test
35+
- name: Run Mypy but allow failures
36+
run: |
37+
mypy --show-error-codes --disable-error-code misc tableauserverclient
38+
continue-on-error: true

.travis.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
## 0.15.0 (16 Feb 2021)
2+
* Added support for python version 3.9 (#744)
3+
* Added support for 'Get View by ID' (#750)
4+
* Added docs and test data to MANIFEST.in file (#780)
5+
* Added owner_id property to ProjectItem (#784)
6+
* Added support for skipping connection check while publishing workbook (#791)
7+
* Added support for 'Update Subscription' (#794)
8+
* Added support for 'Get Groups for a User' (#799)
9+
* Improved debug logging by including put/post request contents (#743)
10+
* Improved local and active-directory group creation (#770)
11+
* Improved 'Update Group' to match server requests/responses (#772)
12+
* Improved SiteItem with new properties and functions (#777)
13+
* Improved SubscriptionItem with new properties (#794)
14+
* Improved the 'type' property of TaskItem to convert server response to enum (#796)
15+
* Improved repository to use Github Actions for running tests/linter (#798)
16+
* Fixed data_acceleration field causing error in workbook update payload (#741)
17+
18+
## 0.14.1 (9 Dec 2020)
19+
* Fixed filter query issue for server version below 2020.1 (#745)
20+
* Fixed large workbook/datasource publish issue (#757)
21+
122
## 0.14.0 (6 Nov 2020)
223
* Added django-style filtering and sorting (#615)
324
* Added encoding tag-name before deleting (#687)

CONTRIBUTORS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ The following people have contributed to this project to make it possible, and w
4141
* [Paul Vickers](https://github.com/paulvic)
4242
* [Madhura Selvarajan](https://github.com/maddy-at-leisure)
4343
* [Niklas Nevalainen](https://github.com/nnevalainen)
44+
* [Terrence Jones](https://github.com/tjones-commits)
45+
* [John Vandenberg](https://github.com/jayvdb)
46+
* [Lee Boynton](https://github.com/lboynton)
4447

4548
## Core Team
4649

MANIFEST.in

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,22 @@ include versioneer.py
22
include tableauserverclient/_version.py
33
include LICENSE
44
include LICENSE.versioneer
5+
include README.md
6+
include CHANGELOG.md
7+
recursive-include docs *.md
8+
recursive-include samples *.py
9+
recursive-include samples *.txt
10+
recursive-include smoke *.py
11+
recursive-include test *.csv
12+
recursive-include test *.dict
13+
recursive-include test *.hyper
14+
recursive-include test *.json
15+
recursive-include test *.pdf
16+
recursive-include test *.png
17+
recursive-include test *.py
18+
recursive-include test *.tde
19+
recursive-include test *.tds
20+
recursive-include test *.tdsx
21+
recursive-include test *.twb
22+
recursive-include test *.twbx
23+
recursive-include test *.xml

samples/publish_workbook.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def main():
3131
parser.add_argument('--logging-level', '-l', choices=['debug', 'info', 'error'], default='error',
3232
help='desired logging level (set to error by default)')
3333
parser.add_argument('--as-job', '-a', help='Publishing asynchronously', action='store_true')
34+
parser.add_argument('--skip-connection-check', '-c', help='Skip live connection check', action='store_true')
3435
parser.add_argument('--site', '-S', default='', help='id (contentUrl) of site to sign into')
3536

3637
args = parser.parse_args()
@@ -71,11 +72,13 @@ def main():
7172
new_workbook = TSC.WorkbookItem(default_project.id)
7273
if args.as_job:
7374
new_job = server.workbooks.publish(new_workbook, args.filepath, overwrite_true,
74-
connections=all_connections, as_job=args.as_job)
75+
connections=all_connections, as_job=args.as_job,
76+
skip_connection_check=args.skip_connection_check)
7577
print("Workbook published. JOB ID: {0}".format(new_job.id))
7678
else:
7779
new_workbook = server.workbooks.publish(new_workbook, args.filepath, overwrite_true,
78-
connections=all_connections, as_job=args.as_job)
80+
179F connections=all_connections, as_job=args.as_job,
81+
skip_connection_check=args.skip_connection_check)
7982
print("Workbook published. ID: {0}".format(new_workbook.id))
8083
else:
8184
error = "The default project could not be found."

setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# This makes work easier for offline installs or low bandwidth machines
1616
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
1717
pytest_runner = ['pytest-runner'] if needs_pytest else []
18+
test_requirements = ['mock', 'pycodestyle', 'pytest', 'requests-mock>=1.0,<2.0']
1819

1920
setup(
2021
name='tableauserverclient',
@@ -34,9 +35,8 @@
3435
install_requires=[
3536
'requests>=2.11,<3.0',
3637
],
37-
tests_require=[
38-
'requests-mock>=1.0,<2.0',
39-
'pytest',
40-
'mock'
41-
]
38+
tests_require=test_requirements,
39+
extras_require={
40+
'test': test_requirements
41+
}
4242
)

0 commit comments

Comments
 (0)
0