Skip to content

Commit

Permalink
Merge pull request #4 from Colin-b/develop
Browse files Browse the repository at this point in the history
Remove deprecated Auths class
  • Loading branch information
Colin-b authored Mar 23, 2020
2 parents 55a3b8f + 14db933 commit 70919fc
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 29 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.2.0] - 2020-03-23
### Removed
- Deprecated `httpx_auth.Auths` class has been removed.

## [0.1.0] - 2020-03-09
### Changed
- Requires [`httpx`](https://www.python-httpx.org)==0.12.*
Expand All @@ -18,7 +22,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Placeholder for port of requests_auth to httpx

[Unreleased]: https://github.com/Colin-b/httpx_auth/compare/v0.1.0...HEAD
[Unreleased]: https://github.com/Colin-b/httpx_auth/compare/v0.2.0...HEAD
[0.2.0]: https://github.com/Colin-b/httpx_auth/compare/v0.1.0...v0.2.0
[0.1.0]: https://github.com/Colin-b/httpx_auth/compare/v0.0.2...v0.1.0
[0.0.2]: https://github.com/Colin-b/httpx_auth/compare/v0.0.1...v0.0.2
[0.0.1]: https://github.com/Colin-b/httpx_auth/releases/tag/v0.0.1
1 change: 0 additions & 1 deletion httpx_auth/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Basic,
HeaderApiKey,
QueryApiKey,
Auths,
OAuth2,
OAuth2AuthorizationCodePKCE,
OktaAuthorizationCodePKCE,
Expand Down
10 changes: 0 additions & 10 deletions httpx_auth/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from typing import Optional, Generator

import httpx
import warnings

from httpx_auth import oauth2_authentication_responses_server, oauth2_tokens
from httpx_auth.errors import InvalidGrantRequest, GrantNotProvided
Expand Down Expand Up @@ -1123,12 +1122,3 @@ def __and__(self, other):
if isinstance(other, _MultiAuth):
return _MultiAuth(*self.authentication_modes, *other.authentication_modes)
return _MultiAuth(*self.authentication_modes, other)


class Auths(_MultiAuth):
def __init__(self, *authentication_modes):
warnings.warn(
"Auths class will be removed in the future. Use + instead.",
DeprecationWarning,
)
super().__init__(*authentication_modes)
2 changes: 1 addition & 1 deletion httpx_auth/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# Major should be incremented in case there is a breaking change. (eg: 2.5.8 -> 3.0.0)
# Minor should be incremented in case there is an enhancement. (eg: 2.5.8 -> 2.6.0)
# Patch should be incremented in case there is a bug fix. (eg: 2.5.8 -> 2.5.9)
__version__ = "0.1.0"
__version__ = "0.2.0"
16 changes: 0 additions & 16 deletions tests/test_auths.py

This file was deleted.

0 comments on commit 70919fc

Please sign in to comment.