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

Release v0.9.0 #163

Merged
merged 40 commits into from
Jun 5, 2019
Merged

Release v0.9.0 #163

merged 40 commits into from
Jun 5, 2019

Conversation

prkumar
Copy link
Owner

@prkumar prkumar commented Jun 5, 2019

Added

Fixed

Changed

  • Renamed uplink.retry.stop.DISABLE to uplink.retry.stop.NEVER

prkumar and others added 30 commits February 16, 2019 11:44
This exposes all auth methods and adds these additional auth classes:
 - MultiAuth
 - ApiTokenParam
 - ApiTokenHeader

The purpose of MultiAuth is to allow for multiple auth methods. This may
be required when an API user needs to supply intermediate credentials--
as when using ProxyAuth to authenticate with an intermediate proxy--
or when an API requires multiple auth tokens. MultiAuth acts like a list
so that users can append, extend or iterate over the contained auth
methods.

The purpose of the the ApiToken* auth methods is to allow both direct
API users and API library authors to easily provide auth tokens in a
standardized manner.

When directly supplying the auth token, some users may prefer to supply
both the parameter/header name and the token at the same time. Thus, we
allow such users to directly use the generic ApiToken* auth methods.

For API library authors that want to supply the parameter/header name in
a reusable way (so users only have to supply the token), they can
use properties on an ApiToken* subclass to define the relvant query
parameter or header.

This also refactors BasicAuth and ProxyAuth as subclasses of
ApiTokenHeader to harmonize the implementation details of all the auth
methods. Any uplink users that directly accessed the private _auth_str
attribute will need to replace that with _header_value.
Add and expose auth types: MultiAuth ApiToken*
Stop sharing class decorators across siblings
* Run session request auditors first

* Add Context argument annotation

* Fix unit test

* Fix unit test

* Add unit tests for Context annotation

* Expose Context as uplink.Context

* Complete documentation for context values

* Modify documentation for context values
prkumar added 10 commits April 22, 2019 17:36
* Allow extending consumer methods

* Remove Python 3 function annotations

* Document consumer method extension

* Fix whitespace issues

* Fix broken logic with @returns.*
This should fix GitHub's issue with finding dependents for this project.
Stability of the Python 3.3 builds have declined over the last year
as more and more of our testing dependencies (e.g., tox) deprecate
or remove support for the version.
@codecov
Copy link

codecov bot commented Jun 5, 2019

Codecov Report

Merging #163 into stable will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##           stable   #163    +/-   ##
======================================
  Coverage     100%   100%            
======================================
  Files          41     41            
  Lines        2053   2170   +117     
  Branches      163    173    +10     
======================================
+ Hits         2053   2170   +117
Impacted Files Coverage Δ
uplink/ratelimit.py 100% <ø> (ø) ⬆️
uplink/arguments.py 100% <100%> (ø) ⬆️
uplink/helpers.py 100% <100%> (ø) ⬆️
uplink/returns.py 100% <100%> (ø) ⬆️
uplink/retry/backoff.py 100% <100%> (ø) ⬆️
uplink/retry/retry.py 100% <100%> (ø) ⬆️
uplink/session.py 100% <100%> (ø) ⬆️
uplink/auth.py 100% <100%> (ø) ⬆️
uplink/retry/stop.py 100% <100%> (ø) ⬆️
uplink/commands.py 100% <100%> (ø) ⬆️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ac0f1b2...5332d99. Read the comment docs.

@prkumar prkumar merged commit ff72f3f into stable Jun 5, 2019
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