Skip to content

Commit

Permalink
V4.0.1 with the 3.12.1 regression flagged explicitly.
Browse files Browse the repository at this point in the history
  • Loading branch information
sodul committed Feb 12, 2024
1 parent 8b929d9 commit 9a75de2
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
python-version: [
"3.8", "3.9", "3.10", "3.11", "3.12.0",
"3.8", "3.9", "3.10", "3.11", "3.12",
"pypy3.8", "pypy3.9", "pypy3.10"
]
fail-fast: false
Expand All @@ -35,11 +35,11 @@ jobs:
- name: Format
run: black --check --diff green example
if: matrix.python-version == '3.12.0' && matrix.os == 'ubuntu-latest'
if: matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest'

- name: Mypy
run: mypy green example
if: matrix.python-version == '3.12.0' && matrix.os == 'ubuntu-latest'
if: matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest'

- name: Test
run: |
Expand All @@ -50,10 +50,10 @@ jobs:
run: |
pip install --upgrade coveralls
green -tvvvvr green
if: matrix.python-version == '3.12.0' && matrix.os == 'ubuntu-latest'
if: matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest'

- name: Coveralls
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: matrix.python-version == '3.12.0' && matrix.os == 'ubuntu-latest'
if: matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest'
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
# Unreleased
#### Date TBD

- Cleanup test_runner.py to more modern Python style.
# Version 4.0.1
#### 12 Feb 2024

Note that we are explicitly flagging Python 3.12.1 as incompatible due to a regression
that was fixed in 3.12.2.
If you are on 3.12.1, then `pip` will try to install green 4.0.0, but it will
likely crash if you have skipped tests, so you will either need to upgrade to
python 3.12.2, or newer, or rollback to python 3.12.0.

- Cleaned-up existing code to more modern python 3 style, including
comprehensive type annotation.
- Simplify green's dev testing setup.
- Explicitly flag 3.12.1 as incompatible due to https://github.com/python/cpython/issues/113267.
Tracked in #277.

# Version 4.0.0
#### 16 Jan 2024
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ shines when you start getting more verbose:
**In a real terminal, this output is syntax highlighted**

$ green -vvv proj
Green 3.0.0, Coverage 4.5.2, Python 3.7.4
Green 4.1.0, Coverage 7.4.1, Python 3.12.2

test_foo
TestAnswer
Expand Down
4 changes: 3 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ test_suite='green.test'


[options]
python_requires = >=3.8
# Known bug in python 3.12.1 breaks green when skipping tests.
#
python_requires = >=3.8, !=3.12.1
install_requires = file:requirements.txt
include_package_data = True
packages = find:
Expand Down

0 comments on commit 9a75de2

Please sign in to comment.