Skip to content

ai/py-langsmith: update to 0.14.17 - #3371

Open
laffer1 wants to merge 1 commit into
masterfrom
ai/py-langsmith
Open

laffer1 wants to merge 1 commit into
masterfrom
ai/py-langsmith

Conversation

@laffer1

@laffer1 laffer1 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Update LangSmith to 0.14.17, matching the FreeBSD port. Adapt UUIDv7 calls for uuid-utils 1.x while retaining support for 0.14, and permit the available Hatchling 1.x build backend.

Validation:

  • Checksum, patch, build, fake, package, package payload and public dependency metadata, license check; portlint reports no fatal errors.
  • Upstream offline CI profile, source and staged package with each of uuid-utils 0.14.1 and 1.2.0: 3,652 passed, 2,245 upstream skips, one expected failure, and six subtests passed each.
  • Unchanged UUID tests pass with uuid-utils 0.14.1 and 1.2.0.

The source distribution omits the repository-root test configuration and bench helper; the offline runs use matching files from the verified upstream tag. The upstream CI profile excludes integration, evaluation and external tests requiring live services. Its test-only providers were supplied privately; these results do not establish compatibility with every mports version of those optional integrations.

Summary by Sourcery

Update the LangSmith port to 0.14.17 and preserve compatibility with supported uuid-utils and Hatchling releases.

Bug Fixes:

  • Maintain UUIDv7 timestamp compatibility across uuid-utils 0.14 and 1.x releases.

Enhancements:

  • Update the FreeBSD LangSmith port to version 0.14.17 with refreshed runtime dependencies and Python version requirements.

Build:

  • Allow compatible Hatchling 1.x releases and update the package build configuration for the newer upstream release.

Adapt UUIDv7 calls to the current uuid-utils API and support the available Hatchling release.

AI-Assisted-by: GPT-6.1 Terra <noreply@openai.com>
Signed-off-by: Lucas Holt <luke@foolishgames.com>
@sourcery-ai

sourcery-ai Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Sorry @laffer1, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 12 hours and 50 minutes by commenting @sourcery-ai review. Upgrade to get a review now.

@sourcery-ai

sourcery-ai Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Reviewer's Guide

Implementation

Adapt UUIDv7 calls to support both uuid-utils 0.14 and 1.x, and adjust the declared uuid-utils range to match.

  • ai/py-langsmith/Makefile L31-36, L42-44
  • ai/py-langsmith/files/patch-pyproject.toml L1-14
  • ai/py-langsmith/files/patch-src_langsmith__internal__uuid.py L1-26

Configuration

Update the port version and build requirements, and allow Hatchling 1.x in the upstream build configuration.

  • ai/py-langsmith/Makefile L2, L13-28
  • ai/py-langsmith/files/patch-pyproject.toml L15-22

Exclude patch backup files from the built wheel.

  • ai/py-langsmith/files/patch-pyproject.toml L23-28

Lock files and vendored code

Refresh the distribution checksum for the updated release.

  • ai/py-langsmith/distinfo L1-3

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Claude finished @laffer1's task in 18s —— View job


Review: ai/py-langsmith 0.14.17

Verdict: looks good, no blocking issues.

Checked:

  • All new dependency origins exist in the tree (py-httpx2, py-distro, py-anyio, py-sniffio, py-websockets, py-hatch-fancy-pypi-readme, and others). The in-tree versions satisfy the new constraints: hatchling 1.32.4, uuid-utils 1.2.0, vcrpy 8.3.0, httpx2 2.16.0 and websockets 17.3.
  • PORTREVISION is correctly dropped on the version bump. LICENSE=mit with LICENSE_FILE is fine. The patch files follow the patch-* naming convention.
  • The _uuid.py patch detects nanoseconds support with inspect.signature and falls back to timestamp/nanos for uuid-utils 0.x. That matches the stated 0.14 and 1.x coverage.
  • pyproject.toml patch: widening the uuid-utils and hatchling pins is consistent with the Makefile.

Minor, non-blocking:

  1. exclude = ["**/*.orig"] in the wheel target only works around .orig files left by patching. It is harmless, but EXTRACT/patch backup suffix handling would be the more usual fix. Consider whether PATCH_ARGS/-E or post-patch cleanup is cleaner.
  2. The paired >= and < entries for the same package (hatchling, anyio, distro, httpx2, pydantic2, typing-extensions, uuid-utils) are valid. They could be written as a single range if the dependency syntax allows it, but the current form is fine.
  3. Dependent ports (py-langchain-core, py-langchain-classic, py-langchain-community) depend on py-langsmith. This is a version bump, not a shared-library change, so no PORTREVISION bump is required. Check that their langsmith version constraints accept 0.14.x.
  4. I didn't build the port, so I'm relying on the validation described in the PR body.

@@ -0,0 +1,26 @@
--- src/langsmith/_internal/_uuid.py.orig
+++ src/langsmith/_internal/_uuid.py
@@ -2,6 +2,7 @@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants