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

Drop python3.7 support #824

Merged
merged 4 commits into from
Jan 22, 2024
Merged

Drop python3.7 support #824

merged 4 commits into from
Jan 22, 2024

Conversation

chriskuehl
Copy link
Member

@chriskuehl chriskuehl commented Jan 19, 2024

💸 TL;DR

Python 3.7 is end-of-life, so we are dropping support. There are two PRs (#819, #823) which independently made similar changes, so I'm extracting them out here.

🧪 Testing Steps / Validation

No special testing.

✅ Checks

  • CI tests (if present) are passing
  • Adheres to code style for repo
  • Contributor License Agreement (CLA) completed if not a Reddit employee

Technically we're already using it in places, but it requires more
changes to our requirements that I don't want to pull into this PR.
@chriskuehl chriskuehl mentioned this pull request Jan 19, 2024
@chriskuehl chriskuehl marked this pull request as ready for review January 19, 2024 19:45
@chriskuehl chriskuehl requested a review from a team as a code owner January 19, 2024 19:45
@@ -5,4 +5,4 @@ line-length = 74

# no need for legacy stuff here in the docs! always use the latest supported
Copy link
Contributor

Choose a reason for hiding this comment

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

🔕 this says "latest supported", so either this should be py39 or we actually mean "oldest supported" in which case update the doc comment too

Copy link
Contributor

Choose a reason for hiding this comment

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

This should probably be the case in pyproject.yaml, setup.cfg, and setup.py as well.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think we only want to do it here because this is the black config specifically for code snippets in the docs where we want to use the latest-supported syntax (I think that's what the comment is referencing).

If we set it in pyproject.toml to the latest, black could in theory introduce syntax only compatible with the newest Python we support and not the oldest Python. The same goes for mypy; it will tell you to migrate to new type definitions that don't exist on older Python versions.

@chriskuehl chriskuehl merged commit a5ea27a into develop Jan 22, 2024
2 checks passed
@chriskuehl chriskuehl deleted the drop-py37 branch January 22, 2024 16:52
This was referenced Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants