From 040007f55445bced0df3ef7e852e89a2e688f6a3 Mon Sep 17 00:00:00 2001 From: Micah Jerome Ellison Date: Sat, 8 Aug 2020 12:46:23 -0700 Subject: [PATCH] Format changes and changing before_install to script for 3.9 builds --- .build/allow_all_python_version.py | 4 ++-- .travis.yml | 12 +++++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.build/allow_all_python_version.py b/.build/allow_all_python_version.py index 3b7d8555..5827709f 100644 --- a/.build/allow_all_python_version.py +++ b/.build/allow_all_python_version.py @@ -2,7 +2,7 @@ import toml pyproject = toml.load("pyproject.toml") -pyproject['tool']['poetry']['dependencies']['python'] = "*" +pyproject["tool"]["poetry"]["dependencies"]["python"] = "*" with open("pyproject.toml", "w") as toml_file: - toml.dump(pyproject, toml_file) + toml.dump(pyproject, toml_file) diff --git a/.travis.yml b/.travis.yml index 16dbd127..55be6d4a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -110,20 +110,26 @@ jobs: # Python 3.9 Dev Tests - name: Python 3.9 on Linux - before_install: + script: - python .build/allow_all_python_version.py + - poetry run pytest + - poetry run behave python: 3.9-dev - <<: *test_mac name: Python 3.9 on MacOS - before_install: + script: - python .build/allow_all_python_version.py + - poetry run pytest + - poetry run behave python: 3.9-dev env: JRNL_PYTHON_VERSION: 3.9.0b5 - <<: *test_windows name: Python 3.9 on Windows - before_install: + script: - python .build/allow_all_python_version.py + - poetry run pytest + - poetry run behave python: 3.9-dev env: <<: *env_windows