-
Notifications
You must be signed in to change notification settings - Fork 133
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
Conversation
baac199
to
752eb40
Compare
- 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
Click Remediation section below to solve this issue
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.
this seems solid and makes sense to me
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 |
orig.add_column( | ||
"uid", | ||
lambda row: hashlib.md5( | ||
str.encode("".join([str(x) for x in row])), usedforsecurity=False | ||
).hexdigest(), | ||
) |
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.
IDK what this section of code is, but these changes seem out of scope of this PR?
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.
ohh I see, it's checking for the python version being 3.9 or higher
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.
i like it
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.