Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
Merge pull request #169 from microsoft/feature/backing-store-support
Browse files Browse the repository at this point in the history
Feature/backing store support
  • Loading branch information
samwelkanda authored Aug 7, 2023
2 parents 87b21c3 + 6802ffd commit 5e86f80
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/build_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,22 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pipenv
pipenv install -r requirements-dev.txt
pip install -r requirements-dev.txt
- name: Check code format
run: |
pipenv run yapf -dr kiota_http
yapf -dr kiota_http
- name: Check import order
run: |
pipenv run isort kiota_http
isort kiota_http
- name: Lint with Pylint
run: |
pipenv run pylint kiota_http --disable=W --rcfile=.pylintrc
pylint kiota_http --disable=W --rcfile=.pylintrc
- name: Static type checking with Mypy
run: |
pipenv run mypy kiota_http
mypy kiota_http
- name: Run tests with Pytest
run: |
pipenv run pytest
pytest
publish:
name: Publish distribution to PyPI
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.4.5] - 2023-07-18
## [0.5.0] - 2023-07-27

### Added

- Added a translator method to change a `RequestInformation` object into a HTTPX client request object.
- Enabled backing store support

### Changed

Expand Down
2 changes: 1 addition & 1 deletion kiota_http/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION: str = '0.4.5'
VERSION: str = '0.5.0'
4 changes: 2 additions & 2 deletions kiota_http/httpx_request_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,8 @@ def enable_backing_store(self, backing_store_factory: Optional[BackingStoreFacto
)
if not any([self._serialization_writer_factory, self._parse_node_factory]):
raise Exception("Unable to enable backing store")
if backing_store_factory:
BackingStoreFactorySingleton.__instance = backing_store_factory

BackingStoreFactorySingleton(backing_store_factory=backing_store_factory)

async def get_root_parse_node(self, response: httpx.Response) -> ParseNode:
payload = response.content
Expand Down

0 comments on commit 5e86f80

Please sign in to comment.