From 5c2476a4ea4d9f8804fdbd0cd0e4c5c90ca4ea0b Mon Sep 17 00:00:00 2001 From: jyooru <63786778+jyooru@users.noreply.github.com> Date: Wed, 7 Jul 2021 21:33:54 +1000 Subject: [PATCH 1/3] ci: setup multiple python versions --- .github/workflows/ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a7821c5..8420f83 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,13 +36,17 @@ jobs: # exit-zero treats all errors as warnings. the github editor is 127 chars wide flake8 . --count --max-complexity=10 --max-line-length=127 --statistics test: - runs-on: ubuntu-latest + strategy: + matrix: + os: [macos-latest, ubuntu-latest, windows-latest] + python-version: ["3.9", "3.8", "3.7", "3.6"] + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 - name: Set up Python 3 uses: actions/setup-python@v2 with: - python-version: 3.x + python-version: ${{ matrix.python-version }} - name: Cache dependencies uses: actions/cache@v2 with: From a575b242f1fcf47aed3d64bc8a635cc9aea69844 Mon Sep 17 00:00:00 2001 From: jyooru <63786778+jyooru@users.noreply.github.com> Date: Wed, 7 Jul 2021 21:38:50 +1000 Subject: [PATCH 2/3] ci: fix windows failure --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8420f83..1cf9cf4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,7 +59,7 @@ jobs: run: | python -m pip install --upgrade pip pip install pytest - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + pip install -r requirements.txt - name: Test with pytest run: | pytest From 40019cf09083150ee0645ad24f50b8475f44df32 Mon Sep 17 00:00:00 2001 From: jyooru <63786778+jyooru@users.noreply.github.com> Date: Wed, 7 Jul 2021 21:43:05 +1000 Subject: [PATCH 3/3] setup: support more versions and bump version --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index e644a0d..78ca1ff 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ setuptools.setup( name="pearson-pdf", - version="1.0.4", + version="1.0.5", author="jyooru", license="MIT", description="Tool to download Pearson books as PDFs.", @@ -29,6 +29,6 @@ keywords="pearson, ebook, pearson-ebook, pdf, pearson-pdf", packages=setuptools.find_packages(exclude=["tests"]), install_requires=["requests", "pillow"], - python_requires=">=3.9", # TODO: support more versions + python_requires=">=3.6", entry_points={"console_scripts": ["pearson_pdf=pearson_pdf.__main__:main"]}, )