Skip to content

Prepare Python SDK 1.0.0 with a unified dependency and toolchain refresh #138

Done
2 of 2 issues completed

Description

@tylerlong

Problem Statement

The Python SDK 1.0.0 candidate on master has passed the modernization work in #114 and the integrated checks in #137. Its lockfile still contains urllib3 2.7.0, which has three open Dependabot alerts. Other installed dependencies have newer compatible releases. The SDK advertises CPython 3.11 and later, while hosted CI currently exercises only 3.11 and 3.14 and local development defaults to 3.11. The maintainer wants one integrated pre-release refresh and a verified 1.0.0 candidate.

Solution

Upgrade the dependency graph and tooling in one batch and land the combined change in one PR. Resolve and verify the combined environment, enforce patched HTTP dependency minimums in the published metadata, test every supported stable CPython series, and make the newest stable series the default for local development and jobs that use one interpreter. Rehearse the release on the upgraded toolchain and retain the upgrade only if the rehearsal passes. Record the final green candidate commit for later release authorization.

User Stories

  1. As a maintainer, I want one integrated dependency upgrade, so that CI verifies the combination we intend to ship.
  2. As an SDK user upgrading an existing environment, I want installation to require patched Requests and urllib3 versions, so that permissive transitive requirements cannot keep the affected versions installed.
  3. As an SDK user on CPython 3.11 or 3.12, I want 1.0.0 to remain installable and tested on my interpreter, so that I can upgrade the SDK during Python's security-support phase.
  4. As a user of the newest stable CPython, I want the SDK and its distribution tested on that series, so that I can install the new release with confidence.
  5. As a contributor, I want uv to use the newest stable CPython series by default, so that local development starts on the same series as the single-interpreter jobs.
  6. As a maintainer, I want every advertised stable Python series covered by automated tests, so that compatibility failures surface before release.
  7. As a maintainer, I want any deferred upgrade to cite the observed break and required migration, so that I can distinguish a real blocker from an overlooked dependency.
  8. As a docs reader, I want the API reference to continue deploying at its established destination, so that existing links keep working.
  9. As a release maintainer, I want to rehearse the upgraded release tooling without uploading, so that I can retain the working toolchain if the upgrade breaks the release.
  10. As a release maintainer, I want the final green commit and both verified 1.0.0 archives identified before I authorize a tag push, so that the release corresponds to the reviewed source.

Implementation Decisions

  • Use master after Check and fix CI for the combined 1.0.0 modernization #137 as the baseline. Make one integrated upgrade for the runtime, development, test, coverage, documentation, and build dependencies, including transitive dependencies. Check declared constraints and tool pins against current stable releases and regenerate the complete uv lock in one pass. Apply and review routine upgrades as a batch without separate approval for each dependency. Keep supported ranges where they remain useful and compatible. Fix manageable compatibility issues in the same change. Defer an individual upgrade only when testing demonstrates a major break that requires substantial migration, and record the evidence and the version retained.
  • Set published minimums to Requests 2.33.0 and urllib3 2.8.0 with the compatible 2.x ranges. Report the new requirements in both distribution formats. Resolve their latest compatible stable releases in the lock alongside the rest of the refresh. Preserve the existing certifi security floor and the agreed SDK and distribution behavior.
  • Preserve the package version 1.0.0 and CPython 3.11+ support. Test every currently supported stable CPython minor series from 3.11 through 3.15, including 3.12 and 3.13. Make the latest stable minor series the explicit uv-managed repository default. For this release use 3.15 and verify the current stable patch locally, upgrading the project's managed interpreter if needed. Update the default and test coverage when a new stable series ships. Treat the declared support floor independently.
  • Use Python 3.15 for single-interpreter jobs, including package validation, docs, and the release rehearsal. Review CI action and uv pins in the same batch and use reviewed full action SHAs with version comments. Keep the existing Pages destination and deployment model.
  • Update the versions of checkout, setup-uv, and uv in the tag-triggered release workflow, and use Python 3.15 there if release verification succeeds. Retain the tag trigger, Twine publishing method, configured authentication, and PyPI destination. Give any release-tool changes a non-uploading rehearsal using the proposed toolchain. If the upgraded toolchain cannot preserve a working release path, keep the known-working release toolchain and record the failed check. The fallback must successfully process the refreshed lock and final artifacts.
  • Update the README and contributor notes to distinguish the newest stable local default, the tested stable series, and the package minimum. Update setup, CI, build, and release instructions for the selected tools and interpreter, including the post-publication install check. Document strict Twine and HTTP dependency metadata checks in the pre-tag rehearsal. Cover the user-facing package changes, including the HTTP security floors and Python coverage, in the draft release notes.

Testing Decisions

  • Validate the combined lock through locked synchronization and the existing credential-free unittest and coverage suite on CPython 3.11, 3.12, 3.13, 3.14, and 3.15. Verify the default uv-managed project interpreter selects the latest stable 3.15 patch available at implementation.
  • Use the existing package-validation and Pages workflows as the integration seams. Run docs generation and confirm the generated API reference is deployed to the established location. Keep live RingCentral smoke tests optional and manual. A read-only API call with a known-working JWT from the built wheel is sufficient for the optional check.
  • Build both distributions with the release toolchain and run strict Twine checks without uploading. Inspect both filenames and internal metadata for package name ringcentral, version 1.0.0, CPython 3.11+, the patched HTTP requirements, and the existing certifi minimum. Retain the package-name assertion in artifact validation. Preserve shipped SDK files, tests and test helpers, the exclusion of demos, and the existing project links.
  • Install the wheel in isolation and verify the SDK imports. Repeat with an environment preloaded with affected Requests and urllib3 versions, and verify the installed SDK upgrades both to allowed patched versions.
  • Verify the proposed release setup and all pre-upload steps on the selected toolchain. For a release-toolchain fallback, repeat the same no-upload checks with the retained version combination and refreshed lock.
  • After hosted CI passes on the final commit, rebuild and inspect both distributions from that exact commit, review the release notes, and record the commit SHA and evidence for the intended 1.0.0 tag.

Out of Scope

  • Creating or pushing the 1.0.0 tag, publishing to PyPI, and changing the existing 0.10.0 tag or release. Publication requires separate maintainer authorization.
  • Changes to the SDK's OAuth client credentials feature, the Twine authentication mechanism, the PyPI destination, or the tag trigger.
  • Dependency-by-dependency rollout and any change to the package's Python support floor.

Further Notes

This is a pre-release follow-up to the completed modernization in #114. The temporary full-refresh candidate already passed 78 tests on CPython 3.11, 3.14, and 3.15.2, generated docs, and passed strict Twine checks. Installing a temporary wheel with the proposed security floors into an environment preloaded with Requests 2.32.3 and urllib3 2.7.0 upgraded them to 2.34.2 and 2.8.0, respectively. The final integrated change still requires the complete interpreter matrix and release-toolchain checks above.

Modernization verification · urllib3 advisories · Requests advisory · CPython support status

Sub-issues

Sub-issues

2 of 2 Issues completed
Loading 2 sub-issues

Activity

  1. added
    ready-for-agent
    on Nov 30, 2026
  2. removed
    ready-for-agent
    on Nov 30, 2026
  3. tylerlong commented on Nov 30, 2026

    @tylerlong
    ContributorAuthor

    Completed the unified 1.0.0 pre-release refresh in PR #141. Implementation #139 and exact-candidate verification #140 are closed.

    The verified master commit is 71e37ef. The lock refresh updated 15 packages, including urllib3 2.8.0, and publishes patched minimums for Requests and urllib3. Installing the verified wheel over Requests 2.32.3 and urllib3 2.7.0 upgraded them to 2.34.2 and 2.8.0. GitHub reported zero open Dependabot alerts after integration.

    Hosted CI passed 78 tests on each of CPython 3.11 through 3.15, the Python 3.15 package job passed, and Pages deployed the API reference at its established URL. The local project default resolves to CPython 3.15.2. Unit and package checks · Docs workflow

    The final release rehearsal on Python 3.15.2 and uv 0.13.10 built and verified both 1.0.0 distributions. Both passed strict Twine checks. The installed wheel smoke tests passed, and the final independent review found no remaining issues. Artifact hashes and verification

    The 1.0.0 tag and PyPI publication remain pending maintainer approval.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions