From 8012fbef0e7f155d39aeb0d30e60116223127f8a Mon Sep 17 00:00:00 2001 From: Jonah Lawrence Date: Sun, 18 Dec 2022 17:13:20 -0700 Subject: [PATCH 1/2] fix: Fix setup error occurring on Windows and added Windows ci tests (#85) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .github/workflows/python-test.yml | 51 ++++++++++++++++++++++--------- setup.py | 2 +- 2 files changed, 37 insertions(+), 16 deletions(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 7694a92..45adbf5 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -13,23 +13,44 @@ on: - main jobs: - build: + test-ubuntu: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install -r requirements.txt -e ".[dev]" + python -m pip install --pre tox-gh-actions + - name: Test with pytest + run: | + # remove '.' in python-version and prepend with 'py' to get the correct tox env + tox -e py$(echo ${{ matrix.python-version }} | sed 's/\.//g') + + test-windows: + runs-on: windows-latest + steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install -r requirements.txt -e ".[dev]" - - name: Test with pytest - run: | - # remove '.' in python-version and prepend with 'py' to get the correct tox env - tox -e py$(echo ${{ matrix.python-version }} | sed 's/\.//g') + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.7" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install -r requirements.txt -e ".[dev]" + python -m pip install --pre tox-gh-actions + - name: Test with pytest + run: tox + env: + PLATFORM: windows-latest diff --git a/setup.py b/setup.py index 0b3faa6..69b0dd0 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ def long_description(): # check if README.md exists if not os.path.exists("README.md"): return "" - with open("README.md", "r") as fh: + with open("README.md", "r", encoding="utf-8") as fh: return fh.read() From d22c42301077859eae511bb5e0708d8d90f1975f Mon Sep 17 00:00:00 2001 From: Jonah Lawrence Date: Sun, 18 Dec 2022 17:13:51 -0700 Subject: [PATCH 2/2] chore: Bump to 1.0.3 --- table2ascii/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/table2ascii/__init__.py b/table2ascii/__init__.py index ebd9744..902a153 100644 --- a/table2ascii/__init__.py +++ b/table2ascii/__init__.py @@ -8,7 +8,7 @@ from .table_style import TableStyle from .table_to_ascii import table2ascii -__version__ = "1.0.2" +__version__ = "1.0.3" __all__ = [ "Alignment", pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy