Skip to content

Commit

Permalink
Loosen dependency restriction on httpx (#417)
Browse files Browse the repository at this point in the history
Using `^0.x.y` in poetry is quite problematic, since it locks it to
_minor_ version and only allows patch updates. This makes it very hard
to depend on this package since it both makes it hard to update packages
_and_ makes the likelihood of unresolvable requirements much higher.

The same is really true for upper bounds in general, but to a lesser
extent. There's a quite good blog post on it from one of the big guys in
scientific python:

https://iscinumpy.dev/post/bound-version-constraints/
  • Loading branch information
mathialo authored Jan 9, 2025
1 parent a88cab3 commit 6bb421e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ Changes are grouped as follows
- `Security` in case of vulnerabilities.


## 7.6.7

### Changed

* Loosened dependency restrictions on `0.*` packages

## 7.5.6

### Added
Expand Down
2 changes: 1 addition & 1 deletion cognite/extractorutils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
Cognite extractor utils is a Python package that simplifies the development of new extractors.
"""

__version__ = "7.5.6"
__version__ = "7.5.7"
from .base import Extractor

__all__ = ["Extractor"]
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cognite-extractor-utils"
version = "7.5.6"
version = "7.5.7"
description = "Utilities for easier development of extractors for CDF"
authors = ["Mathias Lohne <[email protected]>"]
license = "Apache-2.0"
Expand Down Expand Up @@ -71,7 +71,7 @@ python-dotenv = "^1.0.0"
azure-identity = "^1.14.0"
azure-keyvault-secrets = "^4.7.0"
orjson = "^3.10.3"
httpx = "^0.27.0"
httpx = ">=0.27.0, <1"
pydantic = "^2.8.2"
pyhumps = "^3.8.0"
croniter = "^6.0.0"
Expand All @@ -94,7 +94,6 @@ pytest-order = "^1.0.1"
parameterized = "*"
requests = "^2.31.0"
types-requests = "^2.31.0.20240125"
httpx = "^0.27.0"
faker = "^33.0.0"

[build-system]
Expand Down
1 change: 1 addition & 0 deletions tests/tests_unit/test_cdf_upload_queues.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ def test_mock_private_link_upload(MockCogniteClient: Mock) -> None:
base_url = URL(base_url_str)

client.config.base_url = "https://qweasd-666.gremiocampeao.cognitedata.com"
client._config.client_name = "extutil-unit-test"

queue = IOFileUploadQueue(cdf_client=client, overwrite_existing=True, max_queue_size=1, max_parallelism=1)

Expand Down

0 comments on commit 6bb421e

Please sign in to comment.