From 96114df216f60165dbecaf9976d404458b6f6d24 Mon Sep 17 00:00:00 2001 From: Vu Tung Date: Tue, 4 Jun 2024 17:37:19 +0700 Subject: [PATCH 1/3] Correct table format in README.rst --- README.rst | 24 ++++++++++++------------ setup.cfg | 1 + 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/README.rst b/README.rst index a458d81..ba72b08 100644 --- a/README.rst +++ b/README.rst @@ -131,19 +131,19 @@ data to Treasure Data: Characteristics of each of these methods can be summarized as follows: -+-----------------------------------+------------------+------------------+-----------+ ++-----------------------------------+------------------+------------------+---------------------------------+ | | ``bulk_import`` | ``insert_into`` | ``spark (No longer available)`` | -+===================================+==================+==================+===========+ -| Scalable against data volume | ✓ | | ✓ | -+-----------------------------------+------------------+------------------+-----------+ -| Write performance for larger data | | | ✓ | -+-----------------------------------+------------------+------------------+-----------+ -| Memory efficient | ✓ | ✓ | | -+-----------------------------------+------------------+------------------+-----------+ -| Disk efficient | | ✓ | | -+-----------------------------------+------------------+------------------+-----------+ -| Minimal package dependency | ✓ | ✓ | | -+-----------------------------------+------------------+------------------+-----------+ ++===================================+==================+==================+=================================+ +| Scalable against data volume | ✓ | | ✓ | ++-----------------------------------+------------------+------------------+---------------------------------+ +| Write performance for larger data | | | ✓ | ++-----------------------------------+------------------+------------------+---------------------------------+ +| Memory efficient | ✓ | ✓ | | ++-----------------------------------+------------------+------------------+---------------------------------+ +| Disk efficient | | ✓ | | ++-----------------------------------+------------------+------------------+---------------------------------+ +| Minimal package dependency | ✓ | ✓ | | ++-----------------------------------+------------------+------------------+---------------------------------+ Enabling Spark Writer ^^^^^^^^^^^^^^^^^^^^^ diff --git a/setup.cfg b/setup.cfg index d1edf25..a2a5644 100644 --- a/setup.cfg +++ b/setup.cfg @@ -10,6 +10,7 @@ license = Apache License 2.0 license_files = LICENSE long_description = file: README.rst +long_description_content_type = text/x-rst url = https://github.com/treasure-data/pytd classifiers = Development Status :: 5 - Production/Stable From ad381401417980494ee4a96df424a5879bc43bdf Mon Sep 17 00:00:00 2001 From: Vu Tung Date: Tue, 4 Jun 2024 17:44:24 +0700 Subject: [PATCH 2/3] Add dist-dry-run github wf job --- .github/workflows/test.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ec80261..cfb6510 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -47,3 +47,26 @@ jobs: env: TD_API_KEY: 1/XXX TD_API_SERVER: https://api.treasure-data.com/ + + dist-dry-run: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + - name: Build and check dist for PiPY (a.k.a dry run) + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python setup.py sdist bdist_wheel + twine check dist/* + From 9494cf097ee04ad40efe7bd899292c8fccc0cf7a Mon Sep 17 00:00:00 2001 From: Vu Tung Date: Tue, 4 Jun 2024 17:46:27 +0700 Subject: [PATCH 3/3] Remove unnecessary env var --- .github/workflows/test.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cfb6510..cab09fd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -63,9 +63,6 @@ jobs: python -m pip install --upgrade pip pip install setuptools wheel twine - name: Build and check dist for PiPY (a.k.a dry run) - env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | python setup.py sdist bdist_wheel twine check dist/*