Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
b01e6f4
Release 0.8.36
fern-api[bot] May 7, 2025
e3a524e
Merge custom code
AlePouroullis May 7, 2025
689880c
Update poetry.lock
AlePouroullis May 7, 2025
68d75be
Remove trailing slashes in .fernignore for consistency
AlePouroullis May 7, 2025
5be41cb
Move python-dotenv from dev to runtime dependencies
AlePouroullis May 7, 2025
53bdacc
Move tests to internal directory; remove metadata handler; remove pro…
AlePouroullis May 8, 2025
4bb9693
Add to docstring in get_client for cli that it raises if no api key f…
AlePouroullis May 8, 2025
01f0550
docs: improve clarity in handle_sync_errors decorator docstring
AlePouroullis May 8, 2025
aa546ad
Clarify why cli method does nothing
AlePouroullis May 8, 2025
861e45f
docs: improve help for path option in pull operation in cli
AlePouroullis May 8, 2025
a6964d8
docs: improve help for pull command in cli
AlePouroullis May 8, 2025
5e51de0
Clean up error handling in sync client
AlePouroullis May 8, 2025
59f0f4c
Simplify logging of successful and failed files in CLI + add quiet op…
AlePouroullis May 8, 2025
0e03fcb
Address PR feedback
AlePouroullis May 9, 2025
058274a
chore: bump version
AlePouroullis May 10, 2025
6151c8e
test(sync): add comprehensive unit test suite for SyncClient
AlePouroullis May 10, 2025
f9e2744
Rename tests dir from 'internal' to 'custom'
AlePouroullis May 11, 2025
49b1078
fixed fixtures, some tests, linting
May 11, 2025
feedab7
fix more tests
May 12, 2025
8afe4c4
Improve typing of tests
AlePouroullis May 12, 2025
7dd6c5b
refactor: use callable function as fixture instead of passing in the …
AlePouroullis May 12, 2025
e2fc2a3
refactor(overload): improve client method overloading and error handling
AlePouroullis May 12, 2025
0e520ab
fix: use original private stored log method in flow decorator
AlePouroullis May 12, 2025
55023c3
Rename TestIdentifiers to ResourceIdentifiers to silence warning
AlePouroullis May 12, 2025
4e344d1
test: enable agent evaluation test as agents are now in prod
AlePouroullis May 12, 2025
70ba9c9
test: improve test_sync.py and sync/test_client.py readability and cl…
AlePouroullis May 12, 2025
fe1d246
Refactor loading of API key into its own function in Sync CLI
AlePouroullis May 12, 2025
1f5055d
test: add tests for CLI
AlePouroullis May 12, 2025
a259335
Clean up in response to PR feedback
AlePouroullis May 13, 2025
893b23c
Raise error on providing absolute path to local files
AlePouroullis May 13, 2025
2072cf3
Rename files_directory to local_files_directory in HL Client
AlePouroullis May 13, 2025
73966f5
Revert modification to auto-generated code
AlePouroullis May 13, 2025
f6a9e63
Rename base_dir to local_files_directory in CLI for consistency + doc…
AlePouroullis May 13, 2025
b1fb94f
Fix type error in test
AlePouroullis May 13, 2025
efd0654
Increase page size for listing files in pull implementation from 10 t…
AlePouroullis May 13, 2025
6c2acf3
test: fix CLI tests
AlePouroullis May 13, 2025
bd0a00f
fix type issues
AlePouroullis May 13, 2025
76e8ac9
Add comment explaining mypy ignore directive for arg-type
AlePouroullis May 13, 2025
3fd8223
Remove test file
AlePouroullis May 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .fernignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ mypy.ini
README.md
src/humanloop/decorators
src/humanloop/otel
src/humanloop/sync
src/humanloop/cli
pytest.ini

## Tests

tests/
tests/custom

## CI

Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ poetry.toml
.env
tests/assets/*.jsonl
tests/assets/*.parquet
# Ignore humanloop directory which could mistakenly be committed when testing sync functionality as it's used as the default sync directory
humanloop
454 changes: 307 additions & 147 deletions poetry.lock

Large diffs are not rendered by default.

25 changes: 17 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
# This section is used by PyPI and follows PEP 621 for package metadata
[project]
name = "humanloop"
description = "The Humanloop Python Library"
authors = []

# This section is used by Poetry for development and building
# The metadata here is used during development but not published to PyPI
[tool.poetry]
name = "humanloop"
version = "0.8.36b1"
description = ""
version = "0.8.39"
description = "Humanloop Python SDK"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have you changes this? this is auto-generated by fen

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file's autogenerated by fern? Oops, thought we'd be able to modify project metadata.

readme = "README.md"
authors = []
keywords = []
packages = [
{ include = "humanloop", from = "src" },
]

classifiers = [
"Intended Audience :: Developers",
Expand All @@ -26,9 +33,6 @@ classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed"
]
packages = [
{ include = "humanloop", from = "src"}
]

[project.urls]
Repository = 'https://github.com/humanloop/humanloop-python'
Expand All @@ -53,8 +57,10 @@ protobuf = ">=5.29.3"
pydantic = ">= 1.9.2"
pydantic-core = "^2.18.2"
typing_extensions = ">= 4.0.0"
click = "^8.0.0"
python-dotenv = "^1.1.0"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
mypy = "1.0.1"
pytest = "^7.4.0"
pytest-asyncio = "^0.23.5"
Expand All @@ -70,11 +76,11 @@ pandas = "^2.2.0"
parse-type = ">=0.6.4"
pyarrow = "^19.0.0"
pytest-retry = "^1.6.3"
python-dotenv = "^1.0.1"
replicate = "^1.0.3"
ruff = "^0.5.6"
types-jsonschema = "^4.23.0.20240813"
types-protobuf = "^5.29.1.20250208"
pytest-xdist = "^3.6.1"

[tool.pytest.ini_options]
testpaths = [ "tests" ]
Expand All @@ -86,7 +92,10 @@ plugins = ["pydantic.mypy"]
[tool.ruff]
line-length = 120

[tool.poetry.scripts]
humanloop = "humanloop.cli.__main__:cli"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

integration test: use subprocess to check if cli works

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check if exit code 0 when calling cli command; maybe check for exit code 1 when api key not provided


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

2 changes: 2 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[pytest]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: i have updated humanloop-docs with the pytest-xdist dependency; we'll regenerate the sdk and rebase this PR on top of it before merging

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 🙏

addopts = -n auto
Loading
Loading