diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml index 314e3ce..9c208c4 100644 --- a/.github/workflows/publish-pypi.yml +++ b/.github/workflows/publish-pypi.yml @@ -1,56 +1,34 @@ name: Publish to PyPi + on: workflow_dispatch: - release: - types: [created] + push: + branches: development, main jobs: - - build: - runs-on: ubuntu-latest - strategy: - 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 - pip install wheel - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: Package - run: | - python setup.py sdist - python setup.py bdist_wheel - - - test-deploy: - if: github.ref_type == 'tag' && contains(github.ref_name, 'test') - needs: build - environment: - name: test-pypi + build-n-publish: + name: Build dist files for PyPi runs-on: ubuntu-latest steps: - - name: Publish 📦 to Test PyPI - uses: pypa/gh-action-pypi-publish@master - with: - password: ${{ secrets.TEST_PYPI_TOKEN }} - repository_url: https://test.pypi.org/legacy/ - + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: actions/setup-python@v1 + with: + python-version: 3.8 + - name: Build dist files + run: > + python -m pip install --upgrade pip && pip install -e .[build] && + python setup.py build && + python setup.py sdist --formats=gztar + - name: Publish distribution 📦 to Test PyPI + uses: pypa/gh-action-pypi-publish@release/v1 # license BSD-2 + with: + password: ${{ secrets.TEST_PYPI_API_TOKEN }} + repository_url: https://test.pypi.org/legacy/ + - name: Publish distribution 📦 to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 # license BSD-2 + with: + password: ${{ secrets.PYPI_API_TOKEN }} - production-deploy: - needs: build - environment: - name: pypi - runs-on: ubuntu-latest - steps: - - name: Publish 📦 to Real PyPI - uses: pypa/gh-action-pypi-publish@master - with: - password: ${{ secrets.PYPI_API_TOKEN }} - repository_url: https://pypi.org/legacy/ diff --git a/CHANGELOG.md b/CHANGELOG.md index b7321a0..e927c32 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ +## 010 (June 2022) +* Add service/schema attributes + ## 091 (March 2022) * Add attribute for hidden field diff --git a/README.md b/README.md index 1b48b76..3ae1b5f 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Features include: - Get all fields in a data source - Get all fields in use by certain sheets in a workbook -For Hyper files, take a look a the [Tableau Hyper API](https://help.tableau.com/current/api/hyper_api/en-us/index.html). +For Hyper files, take a look at the [Tableau Hyper API](https://help.tableau.com/current/api/hyper_api/en-us/index.html). We don't support creating files from scratch, adding extracts into workbooks or data sources, or updating field information diff --git a/setup.py b/setup.py index 3f5ba92..4264448 100644 --- a/setup.py +++ b/setup.py @@ -2,13 +2,15 @@ setup( name='tableaudocumentapi', - version='0.9', + version='0.10', author='Tableau', author_email='github@tableau.com', url='https://github.com/tableau/document-api-python', packages=['tableaudocumentapi'], license='MIT', description='A Python module for working with Tableau files.', + long_description="file: README.md", + long_description_content_type="text/markdown", test_suite='test', install_requires=['lxml'] )