diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml new file mode 100644 index 0000000..ec37d0e --- /dev/null +++ b/.github/workflows/python-package.yml @@ -0,0 +1,59 @@ +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: Python package + +on: + push: + paths-ignore: + - 'docs/**' + pull_request: + branches: '*' + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: [3.7, 3.8, 3.9] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Test + run: | + python setup.py test + + + lint: + + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: [3.9] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install pycodestyle + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Lint with pycodestyle + run: | + pycodestyle tableaudocumentapi test samples + diff --git a/.travis.yml b/.travis.yml index 7a0c3a5..ec15823 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,7 @@ language: python cache: pip python: + - "3.6" # EOL 23 Dec 2021 - "3.7" - "3.8" diff --git a/CHANGELOG.md b/CHANGELOG.md index 178d112..ad72adc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,11 @@ +## 08 (October 2021) +* See dashboards in a workbook +* Add shapes property +* Add custom sql +* Drop python 2, add up through 3.9 + + ## 07 (26 May 2021) * Fix bug in xfile that overwrote the namespace name when saving a document diff --git a/README.md b/README.md index 9fe6004..c142b13 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Document API The Document API provides a supported way to programmatically make updates to Tableau workbook and data source files. If you've been making changes to these file types by directly updating the XML--that is, by XML hacking--this SDK is for you :) Features include: -- Support for 9.X, and 10.X workbook and data source files +- Support for 9.X, 10.X and 202x.x workbook and data source files - Including TDSX and TWBX files - Getting connection information from data sources and workbooks - Server Name @@ -29,3 +29,5 @@ Features include: - Get all fields in use by certain sheets in a workbook We don't yet support creating files from scratch, adding extracts into workbooks or data sources, or updating field information + +As of 2021, this SDK no longer supports Python 2. diff --git a/docs/_includes/docs_menu.html b/docs/_includes/docs_menu.html index b7a76d5..eae8806 100644 --- a/docs/_includes/docs_menu.html +++ b/docs/_includes/docs_menu.html @@ -1,4 +1,5 @@
+ {% include search_form.html %}