Skip to content

Add a version variable in a standard way, update publishing script to account for the change, add new methods in Eva object #61

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

Merged
merged 2 commits into from
Jul 2, 2020

Conversation

LouisBrunner
Copy link
Contributor

@LouisBrunner LouisBrunner commented Jul 1, 2020

This PR adds a custom User-Agent to all requests (format: Automata EvaSDK/version (language/platform)).

Because we include the version in the header, we also need to be able to access it outside setup.py. I used the standard __version__ notation and moved the sed replacement to another file. The version will default to 0.0.dev0 when doing dev builds.

I also added the 2 new functions added by Isaac in #58 and updated the headers.

This closes #59.

@LouisBrunner LouisBrunner requested a review from Charlesworth July 1, 2020 11:10
Copy link
Contributor

@Charlesworth Charlesworth left a comment

Choose a reason for hiding this comment

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

Code looks and works fine, a comment on using request mocking, I think it's worth a chat (especially as I want to write a load more tests!) to get a consistent test approach, lets chat offline

… account for the change, add new methods in Eva object
@LouisBrunner LouisBrunner merged commit b2a7fd6 into development Jul 2, 2020
@LouisBrunner LouisBrunner deleted the feature/user_agent branch July 2, 2020 14:12
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.

Change SDK User Agent to make it more explicit/unique
2 participants