Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Py3.12.2 #288

Merged
merged 2 commits into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.2",
"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.2' && 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.2' && 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.2' && 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.2' && 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