Skip to content

Conversation

adriangb
Copy link
Member

@adriangb adriangb commented Apr 28, 2023

Fixes #3905

Selected Reviewer: @samuelcolvin

@adriangb adriangb self-assigned this Apr 28, 2023
@adriangb adriangb requested a review from samuelcolvin April 28, 2023 13:29
@adriangb
Copy link
Member Author

@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?

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Apr 29, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: b593e2a
Status:🚫  Build failed.

View logs

Comment on lines +733 to +739
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
Copy link
Member Author

@adriangb adriangb Apr 29, 2023

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.

@adriangb
Copy link
Member Author

please review

Copy link
Member

@samuelcolvin samuelcolvin left a 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.

@pydantic-hooky pydantic-hooky bot added awaiting author revision awaiting changes from the PR author and removed ready for review labels Apr 30, 2023
@pydantic-hooky pydantic-hooky bot assigned adriangb and unassigned samuelcolvin Apr 30, 2023
@adriangb adriangb merged commit 8131196 into 1.10.X-fixes Apr 30, 2023
@adriangb adriangb deleted the update-email-validator branch April 30, 2023 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting author revision awaiting changes from the PR author
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants