From a9fe3012555ff316e49ff71a516e618c377608d5 Mon Sep 17 00:00:00 2001 From: Tung Vu <53031642+tung-vu-td@users.noreply.github.com> Date: Wed, 5 Jun 2024 11:07:57 +0700 Subject: [PATCH] Fix wrongly formatted README (#132) * Correct table format in README.rst * Add dist-dry-run github wf job --- .github/workflows/test.yml | 20 ++++++++++++++++++++ README.rst | 24 ++++++++++++------------ setup.cfg | 1 + 3 files changed, 33 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ec80261..cab09fd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -47,3 +47,23 @@ 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) + run: | + python setup.py sdist bdist_wheel + twine check dist/* + 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