Skip to content

Conversation

@Justintime50
Copy link
Member

@Justintime50 Justintime50 commented Mar 6, 2025

Description

  • Drops support for Python 3.7 and 3.8
  • Removes deprecated user.all_api_keys and user.api_keys, use api_key.all and api_key.retrieve_api_keys_for_user respectively
  • Removes List and Dict typing imports as they are builtin types (lowercased) starting in Python 3.9
  • Bumps all dev dependencies

Testing

  • Had to re-record all cassettes due to bumping VCR 3 major versions. The cassette changes (most of this PR) can be safely ignored while reviewing. There were a few small test changes needed to align with new cassettes

Pull Request Type

Please select the option(s) that are relevant to this PR.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Improvement (fixing a typo, updating readme, renaming a variable name, etc)

@Justintime50 Justintime50 requested a review from a team as a code owner March 6, 2025 19:38
Copy link

@keheitz keheitz left a comment

Choose a reason for hiding this comment

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

LGTM 🔥

Copy link

@ralexmatthews ralexmatthews left a comment

Choose a reason for hiding this comment

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

Nice, LGTM. Mostly just using built-in dict and list vs the typing library ones, and rerecording cassettes 👍


return convert_to_easypost_object(response=response)

def all_api_keys(self) -> Dict[str, Any]:

Choose a reason for hiding this comment

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

✂️

Comment on lines +12 to +22
"bandit==1.8.*",
"black==25.*",
"build==1.2.*",
"flake8==6.*",
"isort==6.*",
"mypy==1.15.*",
"pdoc==15.*",
"pytest-cov==6.*",
"pytest-vcr==1.*",
"pytest==7.*",
"vcrpy==4.*", # TODO: vcrpy v5 requires Python 3.8+
"pytest==8.*",
"vcrpy==7.*",

Choose a reason for hiding this comment

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

so_good

@Justintime50 Justintime50 merged commit 504c590 into master Mar 7, 2025
9 checks passed
@Justintime50 Justintime50 deleted the breaking_changes branch March 7, 2025 20:42
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.

4 participants