Skip to content

Pin the setup venv to python 3.12 and ignore it - #118

Merged
andiwand merged 1 commit into
mainfrom
modernize/10-readme-setup
Jul 26, 2026
Merged

Pin the setup venv to python 3.12 and ignore it#118
andiwand merged 1 commit into
mainfrom
modernize/10-readme-setup

Conversation

@andiwand

@andiwand andiwand commented Jul 26, 2026

Copy link
Copy Markdown
Member

Follow-up to #108. Rebased onto main now that #113 has landed, which absorbed part of this branch — see the last section.

The venv had no version floor. conan installs happily on python 3.11, and then conan/setup-all.sh calls the index's helper scripts and dies:

  File "conan-odr-index/scripts/conan_export_all_packages.py", line 104
    f"Export package {package_info["package"]} version {package_info["version"]} ..."
                                    ^^^^^^^
SyntaxError: f-string: unmatched '['

PEP 701 nested quotes, so 3.12 is the floor. CI already pins python-version: "3.12" for exactly this reason — only the README was silent about it.

Verified by compiling the submodule's scripts under both interpreters: 3.11 raises the error above, 3.12 is clean.

.venv/ is now ignored. Codex flagged this on the first revision and it's right: the step above creates the venv inside the checkout, and nothing in .gitignore matched it, so following the documented setup left a dirty tree with a large machine-specific directory sitting in git status.

What the rebase dropped. This branch also reordered the steps so the submodule checkout precedes the pip install that reads conan-odr-index/requirements.txt. #113 made that same reordering while replacing CocoaPods with SPM, so the rebase resolved to just the python floor plus the .gitignore entry. The remaining README diff is 12 lines.

🤖 Generated with Claude Code

https://claude.ai/code/session_019978mDv7veoaSpByQPCnNe

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e396422ba1

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread README.md
@andiwand
andiwand force-pushed the modernize/10-readme-setup branch from e396422 to 48939db Compare July 26, 2026 08:49
conan installs happily on python 3.11, and then conan/setup-all.sh calls the
conan-odr-index helper scripts and dies on a SyntaxError, because those use
PEP 701 nested quotes in f-strings. CI already pins 3.12 for exactly this
reason; only the README was silent about it.

The documented venv lives inside the checkout, so .venv/ joins .gitignore.
Without it, following the setup top to bottom leaves every clone with a dirty
tree and a large machine-specific directory one `git add .` away from being
committed.

The step reordering this branch also carried is now redundant: #113 moved the
submodule checkout ahead of the pip install while landing SPM.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019978mDv7veoaSpByQPCnNe
@andiwand
andiwand force-pushed the modernize/10-readme-setup branch from 48939db to d8d9f47 Compare July 26, 2026 08:51
@andiwand andiwand changed the title Fix the setup steps to work in the stated order Pin the setup venv to python 3.12 and ignore it Jul 26, 2026
@andiwand
andiwand merged commit c926c9e into main Jul 26, 2026
3 checks passed
@andiwand
andiwand deleted the modernize/10-readme-setup branch July 26, 2026 08:53
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.

1 participant