Skip to content

Commit

Permalink
Feature/download bug fix (#89)
Browse files Browse the repository at this point in the history
* remove proxy from kwargs for small download fix
  • Loading branch information
georgiannajames authored Nov 25, 2024
1 parent ab08ec6 commit 9c3a849
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pyfusion"
version = "2.0.3"
version = "2.0.4-dev0"
edition = "2021"


Expand Down
2 changes: 1 addition & 1 deletion py_src/fusion/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

__author__ = """Fusion Devs"""
__email__ = "[email protected]"
__version__ = "2.0.3"
__version__ = "2.0.4-dev0"

from fusion._fusion import FusionCredentials
from fusion.fs_sync import fsync
Expand Down
4 changes: 3 additions & 1 deletion py_src/fusion/fusion_filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,9 @@ def stream_single_file(

def get_file() -> None:
session = self.sync_session
with session.get(url, **self.kwargs) as r:
get_file_kwargs = self.kwargs.copy()
get_file_kwargs.pop("proxy", None)
with session.get(url, **get_file_kwargs) as r:
r.raise_for_status()
byte_cnt = 0
for chunk in r.iter_content(block_size):
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "pyfusion"
version = "2.0.3"
version = "2.0.4-dev0"

homepage = "https://github.com/jpmorganchase/fusion"
description = "JPMC Fusion Developer Tools"
Expand Down Expand Up @@ -237,7 +237,7 @@ exclude_lines = [


[tool.bumpversion]
current_version = "2.0.3"
current_version = "2.0.4-dev0"
parse = '(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(?:-(?P<release>[a-z]+)(?P<candidate>\d+))?'
serialize = [
'{major}.{minor}.{patch}-{release}{candidate}',
Expand Down

0 comments on commit 9c3a849

Please sign in to comment.