Refuse an unsupported Python version before scaffolding
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- Half a day
- Newbie friendliness
- 85/100
Research direction
Read nexy/modules/cli/commands/new.py, nexy/modules/cli/commands/init.py, and nexy/modules/cli/init/project.py to identify the shared point before scaffolding writes files. Add the sys.version_info guard using the supported version in .python-version, and cover both new and init with focused tests for supported and unsupported interpreters. Done means the guard runs before destination creation, prints both versions and the exact uv python install command, and leaves no directory behind on failure.
Written by the indexing model from the issue text.
Description
Problem
No Python version guard exists in new or init. A user on an older interpreter reaches the scaffolder and fails later with a message that points nowhere near the cause.
What we know
nexy/modules/cli/commands/new.pylines 37 to 45 callsInitProject().run(...).nexy/modules/cli/commands/init.pylines 11 to 13 calls the same orchestrator.nexy/modules/cli/init/project.pylines 26 to 45 resolves the destination before any dependency work.- No
sys.version_infocheck exists innexy/.
Proposal
Check the interpreter before any file is written. On an unsupported version, print the current version, the supported version from .python-version, and the exact uv python install command that fixes it. Apply the check to both new and init. Do not start the installer from inside the guard: the user decides whether to install.
Acceptance
- A test covers a supported version.
- A test covers an older version and asserts the message names both versions and the fix command.
- No directory is created when the check fails.
- One assertion per test.
- Dominant language
- Python
- Stars
- 11
- Forks
- 6
- Avg merge
- 2h 14m
- Merged PRs (30d)
- 265
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NexyPy/nexy
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area:cli area:docs question
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area:docs difficulty:beginner good first issue priority:3
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
area:docs difficulty:beginner good first issue priority:3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area:docs difficulty:beginner documentation good first issue priority:3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
jxxghp/MoviePilot#7699 ·
Maintainers usually reply within 1 day
-
bug TAG: unit tests
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
learningequality/ricecooker#898 ·
-
next
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
j3ko/agent-plugins#80 ·
Maintainers usually reply within 1 day
-
bug:unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Heroic-Games-Launcher/HeroicGamesLauncher#6187 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
BCStudentSoftwareDevTeam/cas#491 ·
Maintainers usually reply within 8 days