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

Support stripe.File.create(stripe_version='...') #665

Merged
merged 4 commits into from
Jul 13, 2020

Conversation

richardm-stripe
Copy link
Contributor

@richardm-stripe richardm-stripe commented Jul 13, 2020

r? @ob-stripe

As reported in #663, in order to override the version in File.create you had to stripe.File.create(api_version="...") which is inconsistent with other methods, which call the version parameter stripe_version.

This PR adds support for stripe_version, but support for api_version is retained in order to avoid a breaking change. api_ version will trump stripe_version when both are provided.

I also made a change to the Makefile that lets you specify a path to the python and pip binaries (but only for the invocations of these outside of the virtualenv). This was helpful for me because I couldn't get make venv to work when pointing to the mac default python 2.7 and had to explicitly point it to the python3 I installed using brew.

Copy link
Contributor

@ob-stripe ob-stripe left a comment

Choose a reason for hiding this comment

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

lgtm

@richardm-stripe richardm-stripe merged commit 62f1188 into master Jul 13, 2020
@richardm-stripe richardm-stripe deleted the richardm-file-create-stripe-version branch July 13, 2020 19:56
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