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

Bump python_requires #1528

Merged
merged 1 commit into from
Sep 5, 2024
Merged

Bump python_requires #1528

merged 1 commit into from
Sep 5, 2024

Conversation

kmurphy4
Copy link
Contributor

@kmurphy4 kmurphy4 commented Sep 4, 2024

Description

According to https://elastalert2.readthedocs.io/en/latest/running_elastalert.html#as-a-python-package this package currently only supports Python 3.12, but that's not actually encoded in the project metadata.

As a result, people with older versions of Python can run

$ pip install --upgrade elastalert2

and then hit runtime errors like #1400.

Checklist

  • I have reviewed the contributing guidelines.
  • I have included unit tests for my changes or additions. (n/a)
  • I have successfully run make test-docker with my changes.
  • I have manually tested all relevant modes of the change in this PR.
  • I have updated the documentation.
  • I have updated the changelog.

Questions or Comments

Since older versions have already been published to PyPI with incorrect python_requires, this won't actually fix the bug (e.g., python3.9 -m pip install --upgrade elastalert2 will select the incompatible 2.19.0 release). I think if we wanted to fix that, we'd need to yank all the old releases, but that's probably not worthwhile..

According to https://elastalert2.readthedocs.io/en/latest/running_elastalert.html#as-a-python-package
this package currently only supports Python 3.12, but that's not
actually encoded in the project metadata.

As a result, people with older versions of Python can run

    $ pip install --upgrade elastalert2

and then hit runtime errors like jertel#1400.
@kmurphy4 kmurphy4 marked this pull request as ready for review September 4, 2024 16:04
@jertel
Copy link
Owner

jertel commented Sep 4, 2024

Thanks for submitting this.

@jertel jertel merged commit e83c6a9 into jertel:master Sep 5, 2024
1 check passed
@kmurphy4 kmurphy4 deleted the fix-python-requires branch September 5, 2024 21:34
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