mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 21:18:32 +02:00
Use platform-independent Python script to allow all Python versions for 3.9 builds
This commit is contained in:
parent
baaf2bef18
commit
9fb47e57ff
2 changed files with 11 additions and 3 deletions
8
.build/allow_all_python_version.py
Normal file
8
.build/allow_all_python_version.py
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
import toml
|
||||||
|
|
||||||
|
pyproject = toml.load("pyproject.toml")
|
||||||
|
|
||||||
|
pyproject['tool']['poetry']['dependencies']['python'] = "*"
|
||||||
|
|
||||||
|
with open("pyproject.toml", "w") as toml_file:
|
||||||
|
toml.dump(pyproject, toml_file)
|
|
@ -111,19 +111,19 @@ jobs:
|
||||||
# Python 3.9 Dev Tests
|
# Python 3.9 Dev Tests
|
||||||
- name: Python 3.9 on Linux
|
- name: Python 3.9 on Linux
|
||||||
before_install:
|
before_install:
|
||||||
- sed -i 's/^python = ">=3\.7\.0.*"$/python = "*"/' pyproject.toml
|
- python .build/allow_all_python_version.py
|
||||||
python: 3.9-dev
|
python: 3.9-dev
|
||||||
- <<: *test_mac
|
- <<: *test_mac
|
||||||
name: Python 3.9 on MacOS
|
name: Python 3.9 on MacOS
|
||||||
before_install:
|
before_install:
|
||||||
- sed -i 's/^python = ">=3\.7\.0.*"$/python = "*"/' pyproject.toml
|
- python .build/allow_all_python_version.py
|
||||||
python: 3.9-dev
|
python: 3.9-dev
|
||||||
env:
|
env:
|
||||||
JRNL_PYTHON_VERSION: 3.9.0b5
|
JRNL_PYTHON_VERSION: 3.9.0b5
|
||||||
- <<: *test_windows
|
- <<: *test_windows
|
||||||
name: Python 3.9 on Windows
|
name: Python 3.9 on Windows
|
||||||
before_install:
|
before_install:
|
||||||
- powershell -Command "(gc pyproject.toml) -replace 'python = "">=3.7.0, <3.9.0""', 'python = "">=3.7.0, <3.10.0""' -join \"`n\" | Out-File -encoding UTF8 pyproject.toml"
|
- python .build/allow_all_python_version.py
|
||||||
python: 3.9-dev
|
python: 3.9-dev
|
||||||
env:
|
env:
|
||||||
<<: *env_windows
|
<<: *env_windows
|
||||||
|
|
Loading…
Add table
Reference in a new issue