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

Add support for Python 3.12. #235

Merged
merged 5 commits into from
Nov 17, 2023
Merged

Add support for Python 3.12. #235

merged 5 commits into from
Nov 17, 2023

Conversation

icemac
Copy link
Member

@icemac icemac commented Nov 14, 2023

Isort imports.

@icemac icemac self-assigned this Nov 14, 2023
@coveralls
Copy link

coveralls commented Nov 14, 2023

Pull Request Test Coverage Report for Build 6900816393

  • 176 of 192 (91.67%) changed or added relevant lines in 41 files are covered.
  • 11 unchanged lines in 7 files lost coverage.
  • Overall coverage increased (+0.1%) to 73.469%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/ZEO/scripts/zeoup.py 0 1 0.0%
src/ZEO/tests/racetest.py 0 1 0.0%
src/ZEO/zeoctl.py 0 1 0.0%
src/ZEO/tests/stress.py 0 2 0.0%
src/ZEO/asyncio/futures.py 4 7 57.14%
src/ZEO/scripts/zeoqueue.py 0 4 0.0%
src/ZEO/scripts/zeoreplay.py 0 4 0.0%
Files with Coverage Reduction New Missed Lines %
src/ZEO/asyncio/futures.py 1 83.69%
src/ZEO/scripts/parsezeolog.py 1 0.0%
src/ZEO/tests/speed.py 1 0.0%
src/ZEO/ClientStorage.py 2 90.5%
src/ZEO/scripts/timeout.py 2 0.0%
src/ZEO/scripts/zeoup.py 2 0.0%
src/ZEO/tests/InvalidationTests.py 2 86.18%
Totals Coverage Status
Change from base Build 5723019176: 0.1%
Covered Lines: 7794
Relevant Lines: 10124

💛 - Coveralls

Copy link
Member

@dataflake dataflake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure why the Pypy3 tests fail

@d-maurer
Copy link
Contributor

d-maurer commented Nov 14, 2023 via email

@navytux
Copy link
Contributor

navytux commented Nov 14, 2023

@icemac, thanks for asking for review.

The first patch (Add support for Python 3.12) looks good to me.

The second patch (Isort imports): while I understand the rationale, when I look at the diff, for example at

-from ZODB.utils import p64, u64, z64, Lock, RLock
+from ZODB.utils import Lock
+from ZODB.utils import RLock
+from ZODB.utils import p64
+from ZODB.utils import u64
+from ZODB.utils import z64

to me it feels like the old version was better with higher signal to noise ratio.

But this is not a strong feeling and I won't object to this change if others find it convenient.

Kirill

@icemac
Copy link
Member Author

icemac commented Nov 16, 2023

not sure why the Pypy3 tests fail

PyPy3 prints some texts to stdout on GHA which break the doctests. I am going to ignore these texts.

@icemac
Copy link
Member Author

icemac commented Nov 16, 2023

But this is not a strong feeling and I won't object to this change if others find it convenient.

This is the default config for imports used in all other zopefoundation projects. We could change it here but I'd prefer not to do it.

@icemac icemac enabled auto-merge (squash) November 16, 2023 07:33
@icemac
Copy link
Member Author

icemac commented Nov 16, 2023

Thank you for reviewing this PR. 😃

@icemac icemac merged commit c3d9fbf into master Nov 17, 2023
25 checks passed
@icemac icemac deleted the py312 branch November 17, 2023 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants