-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[FEATURE] Experimental Python 3.12 support #8862
Conversation
✅ Deploy Preview for niobium-lead-7998 canceled.
|
parser = configparser.ConfigParser() | ||
with open(setup_cfg) as f: | ||
parser.readfp(f) | ||
parser.read_file(f) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only install for cloud tests
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #8862 +/- ##
===========================================
- Coverage 79.55% 79.55% -0.01%
===========================================
Files 456 456
Lines 39407 39410 +3
===========================================
+ Hits 31351 31353 +2
- Misses 8056 8057 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
reqs/requirements-dev-clickhouse.txt
Outdated
clickhouse-sqlalchemy>=0.2.2; python_version < "3.12" | ||
clickhouse-sqlalchemy>=0.3.0; python_version >= "3.12" # SQLALchemy 2 support added in 0.3.0 | ||
pandas<2.2.0; python_version >= "3.9" | ||
pandas>=2.0.0; python_version <= "3.12" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SQLAlchemy 2.0 support was added
https://github.com/xzkostyan/clickhouse-sqlalchemy/blob/master/CHANGELOG.md#030---2023-11-06
I believe this is why we are restricting the pandas
version. I think we can lift this restriction for all versions of python.
reqs/requirements-dev-lite.txt
Outdated
responses>=0.23.1 # requests mocking | ||
snapshottest==0.6.0 # GX Cloud atomic renderer tests | ||
setuptools>=70.0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
package_resources
is part of setuptools, and not installed by default for Python 3.12.
See related issue in a different project.
Update to make
great_expectations
and the test CI compatible with Python 3.12.To install
great_expectations
on Python 3.12 aGX_PYTHON_EXPERIMENTAL
environment variable must be set.Changes
configparser
https://docs.python.org/3.12/whatsnew/3.12.html#configparsersnapshottest
running in CI for3.12
datetime
usage warnings.DTZ
ruff rule to include test usagemoto
to deal withssl
changes. - https://docs.getmoto.org/en/latest/docs/releases.htmlpython_requirest = ">=3.8,<3.12"
unlessGX_PYTHON_EXPERIMENTAL
env var is found.Notes
Waiting on pandas support for3.12
before resuming this work.CI currently installspact-python
for every test job (even if it isn't being used).Python 3.12 Release pact-foundation/pact-python#405
We can work around this by skipping installs for the pact tests for3.12
until support is added.possible
snapshottest
replacement - https://tophat.github.io/syrupy/