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
Backport update to email-validator>=2.0.0.post2 #5627
Conversation
This reverts commit d7a7d2a.
@tiangolo looks like we're blocked by this: https://github.com/tiangolo/fastapi/blob/8ac8d70d52bb0dd9eb55ba4e22d3e383943da05c/pyproject.toml#L62 Any chance you could cut a FastAPI patch release that removes the upper version pin? |
else: | ||
# email-validator >1, <2 | ||
at_index = email.index('@') | ||
local_part = email[:at_index] # RFC 5321, local part must be case-sensitive. | ||
global_part = email[at_index:].lower() | ||
|
||
return name or local_part, local_part + global_part |
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 is the exact same code we had previously. To avoid adding a whole CI run just to test this version of email-validator, we are going to leave it uncovered. I ran locally and all tests pass with email-validator <2. This is also being run via the FastAPI tests, it's just not counted towards coverage.
please review |
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.
otherwise LGTM.
Please update, or merge if you're confident this is right.
Fixes #3905
Selected Reviewer: @samuelcolvin