Skip to content

Commit f6d2ec7

Browse files
authored
fix: move optional httpx import to safe location (#3)
1 parent 1175043 commit f6d2ec7

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ number as needed.
99

1010
## [Unreleased]
1111

12+
## [0.1.2]
13+
14+
### Fixed
15+
16+
- move optional `httpx` import into safe location
17+
1218
## [0.1.1]
1319

1420
### Fixed
@@ -35,5 +41,6 @@ number as needed.
3541
- Nothing.
3642

3743
[Unreleased]: <https://github.com/stactools-packages/glad-global-forest-change/tree/main/>
44+
[0.1.2]: <https://github.com/stactools-packages/glad-global-forest-change/releases/tag/0.1.2>
3845
[0.1.1]: <https://github.com/stactools-packages/glad-global-forest-change/releases/tag/0.1.1>
3946
[0.1.0]: <https://github.com/stactools-packages/glad-global-forest-change/releases/tag/0.1.0>

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "stactools-glad-global-forest-change"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
description = "stactools package for the GLAD Global Forest Change dataset"
55
readme = "README.md"
66
authors = [{ name = "Henry Rodman", email = "[email protected]" }]

src/stactools/glad_global_forest_change/cogs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from pathlib import Path
1111
from typing import Any, Dict, List, Tuple
1212

13-
import httpx
1413
import rasterio
1514
from rasterio.io import MemoryFile
1615

@@ -29,6 +28,8 @@ def to_url(s: str) -> str:
2928

3029
def get_file_list(assets: Tuple[str, ...]) -> List[str]:
3130
"""Get the list of raw files for a set of assets"""
31+
import httpx
32+
3233
file_list: List[str] = []
3334
for asset in assets:
3435
if asset not in ASSETS:

uv.lock

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)