From 250b1ef1e64d8962a54f99d555f3fc2a98e2a607 Mon Sep 17 00:00:00 2001 From: Rui Carmo Date: Mon, 25 Nov 2019 19:49:49 +0000 Subject: [PATCH] Fixes #149 --- .github/workflows/pylint.yml | 8 ++++---- piku.py | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 0f8836c..0f55f8d 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -6,11 +6,11 @@ jobs: build: runs-on: ubuntu-latest strategy: - max-parallel: 4 + max-parallel: 3 matrix: - # This is currently overkill since we are targeting 3.5, but affords us visibility - # onto syntax changes in newer Pythons - python-version: [3.5, 3.6, 3.7, 3.8] + # This is currently overkill since we are targeting 3.5+ with a support window back to 3.4, + # but affords us visibility onto syntax changes in newer Pythons + python-version: [3.4, 3.5, 3.6, 3.7, 3.8] steps: - uses: actions/checkout@v1 diff --git a/piku.py b/piku.py index c147339..01eea94 100755 --- a/piku.py +++ b/piku.py @@ -4,9 +4,9 @@ try: from sys import version_info - assert version_info >= (3, 5) + assert version_info >= (3, 4) except AssertionError: - exit("Piku requires Python 3.5 or above") + exit("Piku requires Python 3.4 or above") from collections import defaultdict, deque from fcntl import fcntl, F_SETFL, F_GETFL @@ -848,7 +848,7 @@ def spawn_worker(app, kind, command, env, ordinal=1): ('logto', '{log_file:s}.{ordinal:d}.log'.format(**locals())), ('log-backupname', '{log_file:s}.{ordinal:d}.log.old'.format(**locals())), ] - + # only add virtualenv to uwsgi if it's a real virtualenv if exists(join(env_path, "bin", "activate_this.py")): settings.append(('virtualenv', env_path))