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

Remove support for Python 3.8 (& fix failing MacOs 3.9 tests) #1192

Merged
merged 7 commits into from
Dec 3, 2024

Conversation

shaunagm
Copy link
Collaborator

@shaunagm shaunagm commented Nov 21, 2024

Not sure what to do about the test failures of 3.9 and higher, but we can treat them separately.

For the record, there appear to be two distinct issues, a slightly older one where the combo of Mac, Python 3.9, and limited dependencies leads to a psycopg2 install error and then one that's an issue for all limited dependency installs related to this pydantic release - the latter issue will hopefully have an easy fix soon but I'm not sure about the former.

@shaunagm shaunagm force-pushed the remove-3.8-and-fix-3.9-test-failure branch from baac199 to 752eb40 Compare November 21, 2024 16:32
@shaunagm shaunagm changed the title Remove 3.8 and fix 3.9 test failure Remove 3.8 Nov 21, 2024
@shaunagm shaunagm changed the title Remove 3.8 Remove support for Python 3.8 Nov 21, 2024
- name: Patch install error when using Python 3.9, limited dependencies, and MacOS
if: ${{ matrix.limited-dependencies }} == True and ${{ matrix.os }} == "macos-latest" and ${{ matrix.python-version }} == "3.9"
run: pip install --system psycopg2-binary==2.9.9

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 6: pipCommand not pinned by hash
Click Remediation section below to solve this issue
Copy link
Collaborator

Choose a reason for hiding this comment

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

this seems solid and makes sense to me

@shaunagm
Copy link
Collaborator Author

shaunagm commented Dec 2, 2024

This should close #1138 and #1066

Would love review on this workaround - the tests are passing now but I'm not an installation expert and want to double check I'm not missing anything

@shaunagm shaunagm changed the title Remove support for Python 3.8 Remove support for Python 3.8 (& fix failing MacOs 3.9 tests) Dec 2, 2024
Comment on lines +661 to +666
orig.add_column(
"uid",
lambda row: hashlib.md5(
str.encode("".join([str(x) for x in row])), usedforsecurity=False
).hexdigest(),
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

IDK what this section of code is, but these changes seem out of scope of this PR?

Copy link
Collaborator

Choose a reason for hiding this comment

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

ohh I see, it's checking for the python version being 3.9 or higher

Copy link
Collaborator

@austinweisgrau austinweisgrau left a comment

Choose a reason for hiding this comment

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

i like it

@shaunagm shaunagm merged commit a358b45 into main Dec 3, 2024
57 checks passed
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.

2 participants