From 2cc4cf8cf5b7803756495362d2468163053e9ab9 Mon Sep 17 00:00:00 2001 From: GalaxySnail Date: Tue, 14 Nov 2023 15:04:50 +0800 Subject: [PATCH 1/5] CODECOV_TOKEN is not required by upload-artifact See details: https://hynek.me/articles/ditch-codecov-python/ --- .github/workflows/ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6653982..16ee625 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -150,5 +150,3 @@ jobs: name: html-report path: htmlcov if: ${{ failure() }} - env: - CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}} From f1fe314e5cc437af1790da1b03d88ec24b8f0ac3 Mon Sep 17 00:00:00 2001 From: GalaxySnail Date: Tue, 14 Nov 2023 15:46:49 +0800 Subject: [PATCH 2/5] Run tests on sdists --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 16ee625..6b58483 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -83,8 +83,23 @@ jobs: python -Im pip install tox fi + - name: Prepare sdist and source-dir + shell: bash + run: | + if [[ ${{ matrix.python-version }} = *2.7 ]]; then + python -m pip install build + python -m build + else + python -Im pip install build + python -Im build + fi + + mkdir source-dir + tar -xzvf dist/wcwidth-*.tar.gz -C source-dir --strip-components=1 + - name: Run tests shell: bash + working-directory: ./source-dir run: | if [[ ${{ matrix.python-version }} = *2.7 ]]; then python -m tox -e ${{ env.TOX_PYTHON }} @@ -94,9 +109,11 @@ jobs: - name: Rename coverage data shell: bash + working-directory: ./source-dir run: | if test -f .coverage; then mv .coverage{,.${{ matrix.os }}.${{ env.TOX_PYTHON }}.$(date +"%Y-%m-%d_%H%M%S")} + mv .coverage.* .. fi - name: Upload coverage data From 7f0b12e39fdf6001aea75b6202a7306f26a62ed3 Mon Sep 17 00:00:00 2001 From: GalaxySnail Date: Tue, 14 Nov 2023 15:57:10 +0800 Subject: [PATCH 3/5] Explicitly include tests/*.py --- MANIFEST.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MANIFEST.in b/MANIFEST.in index 1a270de..b8aa367 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -4,4 +4,4 @@ include requirements-*.in requirements-*.txt recursive-include bin *.py recursive-include code_templates *.j2 recursive-include docs *.py *.rst requirements.txt -recursive-include tests *.txt +recursive-include tests *.py *.txt From 8c3e7216d11546266324f93cfae9893a7d56e37b Mon Sep 17 00:00:00 2001 From: GalaxySnail Date: Tue, 14 Nov 2023 16:09:37 +0800 Subject: [PATCH 4/5] Update changelog --- docs/intro.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/intro.rst b/docs/intro.rst index 749d89a..4f61030 100644 --- a/docs/intro.rst +++ b/docs/intro.rst @@ -216,6 +216,9 @@ Other Languages ======= History ======= +0.2.11 *2023-11-??* + * Include tests files in the source distibution (`PR #98`_, `PR #100`_). + 0.2.10 *2023-11-08* * **Bugfix** accounting of some kinds of emoji sequences using U+FE0F Variation Selector 16 (`PR #97`_). @@ -325,6 +328,8 @@ https://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c:: .. _`PR #82`: https://github.com/jquast/wcwidth/pull/82 .. _`PR #91`: https://github.com/jquast/wcwidth/pull/91 .. _`PR #97`: https://github.com/jquast/wcwidth/pull/97 +.. _`PR #98`: https://github.com/jquast/wcwidth/pull/98 +.. _`PR #100`: https://github.com/jquast/wcwidth/pull/100 .. _`jquast/blessed`: https://github.com/jquast/blessed .. _`selectel/pyte`: https://github.com/selectel/pyte .. _`thomasballinger/curtsies`: https://github.com/thomasballinger/curtsies From 2e15d1b40d70748f67180377e18d4a5c0c174b1e Mon Sep 17 00:00:00 2001 From: GalaxySnail Date: Tue, 14 Nov 2023 16:41:52 +0800 Subject: [PATCH 5/5] Fix 0.2.10 release date --- docs/intro.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/intro.rst b/docs/intro.rst index 4f61030..aa4bf4a 100644 --- a/docs/intro.rst +++ b/docs/intro.rst @@ -219,7 +219,7 @@ History 0.2.11 *2023-11-??* * Include tests files in the source distibution (`PR #98`_, `PR #100`_). -0.2.10 *2023-11-08* +0.2.10 *2023-11-13* * **Bugfix** accounting of some kinds of emoji sequences using U+FE0F Variation Selector 16 (`PR #97`_). * **Updated** `Specification `_.