Skip to content

--override-python-version 3.11 is pinned as ==3.11.0, which no Connect installation matches #901

Closed

Description

@tdstein

🤖 --override-python-version 3.11 (major.minor only) is written as an exact 3.11.0 pin. No Connect server ships x.y.0, so the deploy fails.

Repro

rsconnect write-manifest api --override-python-version 3.11 .
grep -A2 '"python"' manifest.json   # "version": "3.11.0"
grep requires manifest.json         # "requires": "==3.11.0"

Deploying against a server with Python 3.11.15 fails because no installation matches ==3.11.0. Passing 3.11.15 works.

Expected

For a major.minor value, emit ~=3.11.0 (or ==3.11.*) and don't pad the version to .0. Alternatively, reject values without a patch component with a clear error.

Found during live QA of #892 against Posit Connect. Reproduced on 1.32.0 and current main (0287aca3).

Activity

  1. added
    bugSomething isn't working
    ready-for-agentFully specified, ready for an autonomous coding agent
    on Oct 28, 2026
  2. tdstein commented on Oct 28, 2026

    @tdstein
    CollaboratorAuthor

    🤖 Steering for PR #911: CI fails at the just lint step on every job, so the test suite never runs. The code passes ruff check. The failure is ruff format --check: it would reformat tests/test_main.py, specifically the CliRunner().invoke(cli, [...]) argument list you added (around line 2170). That list packs several arguments onto each line.

    To fix:

    • Run just fmt (or uv run ruff format tests/test_main.py) and commit the result. Ruff splits the list to one argument per line.
    • Run just lint and uv run pytest tests/test_main.py locally before pushing.
    • Don't change behavior in this round. The fix itself is not implicated in the failure.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingready-for-agentFully specified, ready for an autonomous coding agent

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions