Skip to content

Commit 1e9b158

Browse files
authored
Merge pull request #235 from tableau/master
Catch up development branch with current master
2 parents aeb77a3 + d324b28 commit 1e9b158

File tree

4 files changed

+32
-49
lines changed

4 files changed

+32
-49
lines changed

Diff for: .github/workflows/publish-pypi.yml

+25-47
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,34 @@
11
name: Publish to PyPi
22

3+
34
on:
45
workflow_dispatch:
5-
release:
6-
types: [created]
6+
push:
7+
branches: development, main
78

89
jobs:
9-
10-
build:
11-
runs-on: ubuntu-latest
12-
strategy:
13-
matrix:
14-
python-version: [3.9]
15-
steps:
16-
- uses: actions/checkout@v2
17-
- name: Set up Python ${{ matrix.python-version }}
18-
uses: actions/setup-python@v2
19-
with:
20-
python-version: ${{ matrix.python-version }}
21-
- name: Install dependencies
22-
run: |
23-
python -m pip install --upgrade pip
24-
pip install wheel
25-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
26-
- name: Package
27-
run: |
28-
python setup.py sdist
29-
python setup.py bdist_wheel
30-
31-
32-
test-deploy:
33-
if: github.ref_type == 'tag' && contains(github.ref_name, 'test')
34-
needs: build
35-
environment:
36-
name: test-pypi
10+
build-n-publish:
11+
name: Build dist files for PyPi
3712
runs-on: ubuntu-latest
3813
steps:
39-
- name: Publish 📦 to Test PyPI
40-
uses: pypa/gh-action-pypi-publish@master
41-
with:
42-
password: ${{ secrets.TEST_PYPI_TOKEN }}
43-
repository_url: https://test.pypi.org/legacy/
44-
14+
- uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0
17+
- uses: actions/setup-python@v1
18+
with:
19+
python-version: 3.8
20+
- name: Build dist files
21+
run: >
22+
python -m pip install --upgrade pip && pip install -e .[build] &&
23+
python setup.py build &&
24+
python setup.py sdist --formats=gztar
25+
- name: Publish distribution 📦 to Test PyPI
26+
uses: pypa/gh-action-pypi-publish@release/v1 # license BSD-2
27+
with:
28+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
29+
repository_url: https://test.pypi.org/legacy/
30+
- name: Publish distribution 📦 to PyPI
31+
uses: pypa/gh-action-pypi-publish@release/v1 # license BSD-2
32+
with:
33+
password: ${{ secrets.PYPI_API_TOKEN }}
4534

46-
production-deploy:
47-
needs: build
48-
environment:
49-
name: pypi
50-
runs-on: ubuntu-latest
51-
steps:
52-
- name: Publish 📦 to Real PyPI
53-
uses: pypa/gh-action-pypi-publish@master
54-
with:
55-
password: ${{ secrets.PYPI_API_TOKEN }}
56-
repository_url: https://pypi.org/legacy/

Diff for: CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11

2+
## 010 (June 2022)
3+
* Add service/schema attributes
4+
25
## 091 (March 2022)
36
* Add attribute for hidden field
47

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Features include:
2727
- Get all fields in a data source
2828
- Get all fields in use by certain sheets in a workbook
2929

30-
For Hyper files, take a look a the [Tableau Hyper API](https://help.tableau.com/current/api/hyper_api/en-us/index.html).
30+
For Hyper files, take a look at the [Tableau Hyper API](https://help.tableau.com/current/api/hyper_api/en-us/index.html).
3131

3232
We don't support creating files from scratch, adding extracts into workbooks or data sources, or updating field information
3333

Diff for: setup.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22

33
setup(
44
name='tableaudocumentapi',
5-
version='0.9',
5+
version='0.10',
66
author='Tableau',
77
author_email='[email protected]',
88
url='https://github.com/tableau/document-api-python',
99
packages=['tableaudocumentapi'],
1010
license='MIT',
1111
description='A Python module for working with Tableau files.',
12+
long_description="file: README.md",
13+
long_description_content_type="text/markdown",
1214
test_suite='test',
1315
install_requires=['lxml']
1416
)

0 commit comments

Comments
 (0)