From 9ae38713888fa92e676fe820f3aa3a745c9df9b5 Mon Sep 17 00:00:00 2001 From: Mike Naberezny Date: Sat, 18 Nov 2023 16:34:11 -0800 Subject: [PATCH] Fix running Python 3.4 and 3.5 on CI --- .github/workflows/main.yml | 36 ++++++++++++++++++++++++++++++++++++ setup.py | 4 +++- 2 files changed, 39 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 88ece33..f9e8fe4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,6 +26,42 @@ jobs: - name: Run the tests run: python setup.py test -q + build_py34: + runs-on: ubuntu-20.04 + container: python:3.4 + strategy: + fail-fast: false + + steps: + - uses: actions/checkout@v3 + + - name: Show Python version + run: python -V + + - name: Install dependencies + run: $PIP install setuptools + + - name: Run the tests + run: python setup.py test -q + + build_py35: + runs-on: ubuntu-20.04 + container: python:3.5 + strategy: + fail-fast: false + + steps: + - uses: actions/checkout@v3 + + - name: Show Python version + run: python -V + + - name: Install dependencies + run: $PIP install setuptools + + - name: Run the tests + run: python setup.py test -q + build_py3x: strategy: fail-fast: false diff --git a/setup.py b/setup.py index bb21750..7371daa 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ if PY3: if py_version < (3, 4): - raise RuntimeError('On Python 3, Py65 requires Python 3.6 or later') + raise RuntimeError('On Python 3, Py65 requires Python 3.4 or later') else: if py_version < (2, 7): raise RuntimeError('On Python 2, Py65 requires Python 2.7 or later') @@ -27,6 +27,8 @@ 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8',