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

Updated __version__ to 1.1.0 #6

Merged
merged 7 commits into from
Jul 10, 2021
Merged

Conversation

brett-comber
Copy link
Contributor

To update version I added the packageVersion=1.1.0 to the openapi-generator-cli call.

I moved changes to ./pocketsmith/pocketsmith_client.py upstream to ./_overrides, where ./generate_pocketsmith_client.sh copies the client source code from.

I re-generated the client with several fixes that are dependant on the pull request to the openapi spec here: theY4Kman/pocketsmith-api-spec#2

  • client.budgeting.get_trend_analysis() now works after correcting the opanAPI specification.
    Added packageVerrsion=1.1.0 directive to openapi-generator-cli to bake the version into the source code. Now pocketsmith.version returns 1.1.0
  • Added currency_code field support to BudgetAnalysis and Period types.
  • Fixed refund_amount field.

…_code field to Period and BudgetAnalysis types returned by trend_analysis endpoint.
…ponse type of the trend_analysis endpoint. The trend_analysis endpoint returns a singlular BudgetAnalysisPackage type, not a list.
…to ./_overrides/pocketsmith_client.py. When generate-pocketsmith-api.sh is run, it copies ./_overrides/pocketsmith_client.py to ./pocketsmith/.
When the client is generated using the openapi-client-cli, the
packageVersion directive is used to set the version reported by
the client.

>>> import pocketsmith
>>> print(pocketsmith.__version__)
1.1.0
@theY4Kman
Copy link
Owner

Holy crap, I think you've learned more about this package than I can remember about it -- and probably more than I ever knew :P I'll be at a keyboard in a few minutes to give this a looksy.

P.S. thank you for figuring out how to change the __version__; I noticed its incorrectness a few days ago, and was wondering about it. I wish the User-Agent could be changed to something a little more descriptive, as well.

Copy link
Owner

@theY4Kman theY4Kman left a comment

Choose a reason for hiding this comment

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

lgtm!

I merged the api spec PR, and will update the submodule in a following commit

@theY4Kman theY4Kman merged commit 0a36487 into theY4Kman:master Jul 10, 2021
theY4Kman added a commit that referenced this pull request Jul 10, 2021
@theY4Kman
Copy link
Owner

Okay, I pushed these changes, as well as the User-Agent change, as version 1.2.0 to PyPI.

Thank you very much for opening this and other PRs! I really appreciate it, and I'm sure others will benefit from it, too ❤️

@brett-comber
Copy link
Contributor Author

brett-comber commented Jul 10, 2021 via email

@theY4Kman
Copy link
Owner

idk if that's the proper etiquette, and I don't think you were being pushy; I'm just in the habit of releasing things as quickly as possible, before I forget about them :P

Plus, these are tiny projects at the moment, so it's not like there's some well-defined process to adhere to :P You're free to structure your PRs however you see fit.

And, incidentally, I found your commit messages very descriptive and your PR body illuminating -- in fact, I was able to craft changelog items directly from it, instead of having to go through the code to dig them out (which I've had to do before). 10/10 PR, would buy again, A+++++++

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