diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6653982..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 @@ -150,5 +167,3 @@ jobs: name: html-report path: htmlcov if: ${{ failure() }} - env: - CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}} 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 diff --git a/docs/intro.rst b/docs/intro.rst index 749d89a..aa4bf4a 100644 --- a/docs/intro.rst +++ b/docs/intro.rst @@ -216,7 +216,10 @@ Other Languages ======= History ======= -0.2.10 *2023-11-08* +0.2.11 *2023-11-??* + * Include tests files in the source distibution (`PR #98`_, `PR #100`_). + +0.2.10 *2023-11-13* * **Bugfix** accounting of some kinds of emoji sequences using U+FE0F Variation Selector 16 (`PR #97`_). * **Updated** `Specification `_. @@ -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