From 8041d4ba6ac71a28fb6f5c58976b080992a5df7c Mon Sep 17 00:00:00 2001 From: Sam Perman Date: Tue, 8 Sep 2026 16:32:00 -0400 Subject: [PATCH] Update rsconnect-python to 1.31.0 The recipe has been stuck on 1.29.0. Since then rsconnect-python switched its build backend from setuptools + setuptools_scm to uv_build (in 1.30.0), which is why the autotick bot PR for 1.30.0 fails with "BackendUnavailable: Cannot import 'uv_build'". - Build with uv-build instead of setuptools_scm. The version is now a static field in pyproject.toml, so SETUPTOOLS_SCM_PRETEND_VERSION is no longer needed. --no-build-isolation lets pip use the host uv-build. - Take the source from the PyPI sdist rather than the GitHub tag archive. - Sync run dependencies with pyproject.toml: drop six, add typing_extensions, uv, packaging and toml, and widen semver to <4.0.0. - Point the homepage at posit-dev, which is where the repo lives now. - Smoke-test the rsconnect entry point. - Add samperman as a recipe maintainer. --- recipe/meta.yaml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 99a6279..b42df51 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -1,43 +1,46 @@ {% set name = "rsconnect-python" %} -{% set version = "1.29.0" %} +{% set version = "1.31.0" %} package: name: {{ name|lower }} version: {{ version }} source: - url: https://github.com/rstudio/rsconnect-python/archive/refs/tags/{{ version }}.tar.gz - sha256: 9087025dcd628b00fccbceafb22ac579792193fcc21610fc72135339ded61460 + url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/rsconnect_python-{{ version }}.tar.gz + sha256: f8c90fec7f338f9ff9ffcf9cbd8e9ee9a7dc85264da953e5eee55bb38590e19a build: noarch: python entry_points: - rsconnect = rsconnect.main:cli number: 0 - script_env: - - SETUPTOOLS_SCM_PRETEND_VERSION={{ version }} - script: {{ PYTHON }} -m pip install . --no-deps -vv + script: {{ PYTHON }} -m pip install . --no-deps --no-build-isolation -vv requirements: host: - python {{ python_min }} - pip - - setuptools_scm + - uv-build >=0.9.0,<0.13.0 run: - python >={{ python_min }} - - six >=1.14.0 - click >=8.0.0 + - packaging >=20.0 - pip >=10.0.0 # rsconnect-python invokes pip as a subprocess - pyjwt >=2.4.0 - - semver >=2.0.0,<3.0.0 + - semver >=2.0.0,<4.0.0 + - toml >=0.10 + - typing_extensions >=4.8.0 + - uv >=0.9.0 test: requires: - python {{ python_min }} imports: - rsconnect + commands: + - rsconnect version about: - home: https://github.com/rstudio/rsconnect-python + home: https://github.com/posit-dev/rsconnect-python license: GPL-2.0-only license_family: GPL license_file: LICENSE.md @@ -50,3 +53,4 @@ extra: - edavidaja - tdstein - dbkegley + - samperman