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

bug: fix deprecation warnings by bumping python minimum version #10

Merged
merged 5 commits into from
Jan 24, 2024

Conversation

WilliamBergamin
Copy link
Contributor

Summary

The goal of this PR is to bump the minimum version of python to 3.9 and subsequently removed all deprecated packages that may have been used to satisfy older versions of python

Testing

  1. Pull this branch
  2. Run scripts/build_pypi_package.sh
  3. Use the built package in a new project
  4. No warning should appear

Special notes

Are there any other changes from 3.6 to 3.9 that are worth including here?

Requirements

  • I've read and understood the Contributing Guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've run ./scripts/install_and_run_tests.sh after making the changes.

@WilliamBergamin WilliamBergamin added the enhancement New feature or request label Jan 23, 2024
@WilliamBergamin WilliamBergamin self-assigned this Jan 23, 2024
Copy link
Member

@seratch seratch left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM. Left an unrelated comment on PyPy support.

@@ -18,9 +18,6 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Copy link
Member

Choose a reason for hiding this comment

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

"Programming Language :: Python :: Implementation :: PyPy"

Have we verified if this module works with PyPy? If we haven't , running tests like below should be a good way to check it out: https://github.com/slackapi/python-slack-sdk/blob/v3.26.2/.github/workflows/ci-build.yml#L25

If it does not work for some reason, I believe it's fine to remove PyPy from this metadata as the need for it should be minor.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, all tests pass with pypy3.10 💯 add this to the ci build

@WilliamBergamin WilliamBergamin merged commit 380ee8e into main Jan 24, 2024
9 checks passed
@WilliamBergamin WilliamBergamin deleted the handle-deprecation branch January 24, 2024 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants