Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Python 3.9.21, 3.10.16, 3.11.11, 3.12.8, and 3.13.1 #1439

Merged
merged 3 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions rye/src/sources/generated/python_downloads.inc

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions rye/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ toolchain = "cpython@3.12.6"
// build info to make sure we cover our grounds here.
for (version, build_info) in [
("cpython@3.8.20", false),
("cpython@3.11.10", true),
("cpython@3.12.6", false),
("cpython@3.11.11", true),
("cpython@3.12.8", false),
("pypy@3.10.13", false),
] {
if home.join("py").join(version).is_dir() {
Expand Down
12 changes: 6 additions & 6 deletions rye/tests/test_add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fn test_add_flask() {
exit_code: 0
----- stdout -----
Initializing new virtualenv in [TEMP_PATH]/project/.venv
Python version: cpython@3.12.6
Python version: cpython@3.12.8
Added flask>=3.0.0 as regular dependency
Added colorama>=0.4.6 as regular dependency
Reusing already existing virtualenv
Expand Down Expand Up @@ -59,7 +59,7 @@ fn test_add_flask_dotenv() {
exit_code: 0
----- stdout -----
Initializing new virtualenv in [TEMP_PATH]/project/.venv
Python version: cpython@3.12.6
Python version: cpython@3.12.8
Added flask[dotenv]>=3.0.0 as regular dependency
Added colorama>=0.4.6 as regular dependency
Reusing already existing virtualenv
Expand Down Expand Up @@ -112,7 +112,7 @@ fn test_add_from_find_links() {
exit_code: 0
----- stdout -----
Initializing new virtualenv in [TEMP_PATH]/project/.venv
Python version: cpython@3.12.6
Python version: cpython@3.12.8
Added tqdm>=4.66.1 as regular dependency
Added colorama>=0.4.6 as regular dependency
Reusing already existing virtualenv
Expand Down Expand Up @@ -150,7 +150,7 @@ fn test_add_flask_wrong_venv_exported() {
exit_code: 0
----- stdout -----
Initializing new virtualenv in [TEMP_PATH]/project/.venv
Python version: cpython@3.12.6
Python version: cpython@3.12.8
Added flask==3.0.0 as regular dependency
Added colorama>=0.4.6 as regular dependency
Reusing already existing virtualenv
Expand Down Expand Up @@ -185,7 +185,7 @@ fn test_add_explicit_version_or_url() {
exit_code: 0
----- stdout -----
Initializing new virtualenv in [TEMP_PATH]/project/.venv
Python version: cpython@3.12.6
Python version: cpython@3.12.8
Added werkzeug==3.0.0 as regular dependency
Reusing already existing virtualenv
Generating production lockfile: [TEMP_PATH]/project/requirements.lock
Expand Down Expand Up @@ -234,7 +234,7 @@ fn test_add_dev() {
exit_code: 0
----- stdout -----
Initializing new virtualenv in [TEMP_PATH]/project/.venv
Python version: cpython@3.12.6
Python version: cpython@3.12.8
Added flask>=3.0.0 as dev dependency
Added colorama>=0.4.6 as dev dependency
Reusing already existing virtualenv
Expand Down
2 changes: 1 addition & 1 deletion rye/tests/test_cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fn test_dotenv() {
exit_code: 0
----- stdout -----
Initializing new virtualenv in [TEMP_PATH]/project/.venv
Python version: cpython@3.12.6
Python version: cpython@3.12.8
Generating production lockfile: [TEMP_PATH]/project/requirements.lock
Generating dev lockfile: [TEMP_PATH]/project/requirements-dev.lock
Installing dependencies
Expand Down
6 changes: 3 additions & 3 deletions rye/tests/test_init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fn test_init_lib() {
exit_code: 0
----- stdout -----
Initializing new virtualenv in [TEMP_PATH]/project/.venv
Python version: cpython@3.12.6
Python version: cpython@3.12.8
Generating production lockfile: [TEMP_PATH]/project/requirements.lock
Generating dev lockfile: [TEMP_PATH]/project/requirements-dev.lock
Installing dependencies
Expand Down Expand Up @@ -71,7 +71,7 @@ fn test_init_default() {
exit_code: 0
----- stdout -----
Initializing new virtualenv in [TEMP_PATH]/project/.venv
Python version: cpython@3.12.6
Python version: cpython@3.12.8
Generating production lockfile: [TEMP_PATH]/project/requirements.lock
Generating dev lockfile: [TEMP_PATH]/project/requirements-dev.lock
Installing dependencies
Expand Down Expand Up @@ -121,7 +121,7 @@ fn test_init_script() {
exit_code: 0
----- stdout -----
Initializing new virtualenv in [TEMP_PATH]/project/.venv
Python version: cpython@3.12.6
Python version: cpython@3.12.8
Generating production lockfile: [TEMP_PATH]/project/requirements.lock
Generating dev lockfile: [TEMP_PATH]/project/requirements-dev.lock
Installing dependencies
Expand Down
2 changes: 1 addition & 1 deletion rye/tests/test_scripts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fn test_basic_script() {

----- stderr -----
Initializing new virtualenv in [TEMP_PATH]/project/.venv
Python version: cpython@3.12.6
Python version: cpython@3.12.8
"###);

rye_cmd_snapshot!(space.rye_cmd().arg("run"), @r###"
Expand Down
2 changes: 1 addition & 1 deletion rye/tests/test_self.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ fn test_version() {
rye [VERSION]
commit: [COMMIT]
platform: [PLATFORM]
self-python: cpython@3.12.6
self-python: cpython@3.12.8
symlink support: true
uv enabled: true

Expand Down
14 changes: 7 additions & 7 deletions rye/tests/test_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fn test_empty_sync() {
exit_code: 0
----- stdout -----
Initializing new virtualenv in [TEMP_PATH]/project/.venv
Python version: cpython@3.12.6
Python version: cpython@3.12.8
Generating production lockfile: [TEMP_PATH]/project/requirements.lock
Generating dev lockfile: [TEMP_PATH]/project/requirements-dev.lock
Installing dependencies
Expand Down Expand Up @@ -54,7 +54,7 @@ fn test_add_and_sync_no_auto_sync() {
exit_code: 0
----- stdout -----
Initializing new virtualenv in [TEMP_PATH]/project/.venv
Python version: cpython@3.12.6
Python version: cpython@3.12.8
Added flask==3.0.0 as regular dependency
Added colorama>=0.4.6 as regular dependency

Expand Down Expand Up @@ -96,7 +96,7 @@ fn test_add_autosync() {
exit_code: 0
----- stdout -----
Initializing new virtualenv in [TEMP_PATH]/project/.venv
Python version: cpython@3.12.6
Python version: cpython@3.12.8
Added flask==3.0.0 as regular dependency
Added colorama>=0.4.6 as regular dependency
Reusing already existing virtualenv
Expand Down Expand Up @@ -139,7 +139,7 @@ fn test_autosync_remember() {
exit_code: 0
----- stdout -----
Initializing new virtualenv in [TEMP_PATH]/project/.venv
Python version: cpython@3.12.6
Python version: cpython@3.12.8
Generating production lockfile: [TEMP_PATH]/project/requirements.lock
Generating dev lockfile: [TEMP_PATH]/project/requirements-dev.lock
Installing dependencies
Expand Down Expand Up @@ -302,7 +302,7 @@ fn test_exclude_hashes() {
exit_code: 0
----- stdout -----
Initializing new virtualenv in [TEMP_PATH]/project/.venv
Python version: cpython@3.12.6
Python version: cpython@3.12.8
Generating production lockfile: [TEMP_PATH]/project/requirements.lock
Generating dev lockfile: [TEMP_PATH]/project/requirements-dev.lock
Installing dependencies
Expand Down Expand Up @@ -353,7 +353,7 @@ fn test_lockfile() {
exit_code: 0
----- stdout -----
Initializing new virtualenv in [TEMP_PATH]/project/.venv
Python version: cpython@3.12.6
Python version: cpython@3.12.8
Added anyio==4.0.0 as regular dependency
Reusing already existing virtualenv
Generating production lockfile: [TEMP_PATH]/project/requirements.lock
Expand Down Expand Up @@ -429,7 +429,7 @@ fn test_generate_hashes() {
exit_code: 0
----- stdout -----
Initializing new virtualenv in [TEMP_PATH]/project/.venv
Python version: cpython@3.12.6
Python version: cpython@3.12.8
Generating production lockfile: [TEMP_PATH]/project/requirements.lock
Generating dev lockfile: [TEMP_PATH]/project/requirements-dev.lock
Installing dependencies
Expand Down
8 changes: 4 additions & 4 deletions rye/tests/test_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ fn test_basic_tool_behavior() {
exit_code: 1
----- stdout -----
Initializing new virtualenv in [TEMP_PATH]/project/.venv
Python version: cpython@3.12.6
Python version: cpython@3.12.8
Generating production lockfile: [TEMP_PATH]/project/requirements.lock
Generating dev lockfile: [TEMP_PATH]/project/requirements-dev.lock
Installing dependencies
Done!
Running tests for foo ([TEMP_PATH]/project)
============================= test session starts =============================
platform [PLATFORM] -- Python 3.12.6, pytest-7.4.3, pluggy-1.3.0
platform [PLATFORM] -- Python 3.12.8, pytest-7.4.3, pluggy-1.3.0
rootdir: [TEMP_PATH]/project
collected 2 items

Expand Down Expand Up @@ -108,7 +108,7 @@ fn test_basic_tool_behavior() {
----- stdout -----
Running tests for child-dep ([TEMP_PATH]/project/child-dep)
============================= test session starts =============================
platform [PLATFORM] -- Python 3.12.6, pytest-7.4.3, pluggy-1.3.0
platform [PLATFORM] -- Python 3.12.8, pytest-7.4.3, pluggy-1.3.0
rootdir: [TEMP_PATH]/project/child-dep
collected 2 items

Expand All @@ -128,7 +128,7 @@ fn test_basic_tool_behavior() {

Running tests for foo ([TEMP_PATH]/project)
============================= test session starts =============================
platform [PLATFORM] -- Python 3.12.6, pytest-7.4.3, pluggy-1.3.0
platform [PLATFORM] -- Python 3.12.8, pytest-7.4.3, pluggy-1.3.0
rootdir: [TEMP_PATH]/project
collected 2 items

Expand Down
8 changes: 4 additions & 4 deletions rye/tests/test_tools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ fn test_basic_tool_behavior() {
- pycowsay

----- stderr -----
Using Python 3.11.10 environment at [RYE_HOME]/tools/pycowsay
Using Python 3.11.11 environment at [RYE_HOME]/tools/pycowsay
Resolved 1 package in [EXECUTION_TIME]
Prepared 1 package in [EXECUTION_TIME]
Installed 1 package in [EXECUTION_TIME]
Expand Down Expand Up @@ -69,7 +69,7 @@ fn test_basic_tool_behavior() {
success: true
exit_code: 0
----- stdout -----
pycowsay 0.0.0.2 (cpython@3.11.10)
pycowsay 0.0.0.2 (cpython@3.11.11)

----- stderr -----
"###);
Expand All @@ -79,13 +79,13 @@ fn test_basic_tool_behavior() {
.env("UV_CACHE_DIR", cache_dir.path())
.arg("toolchain")
.arg("remove")
.arg("cpython@3.11.10"), @r###"
.arg("cpython@3.11.11"), @r###"
success: false
exit_code: 1
----- stdout -----

----- stderr -----
error: toolchain cpython@3.11.10 is still in use by tool pycowsay
error: toolchain cpython@3.11.11 is still in use by tool pycowsay
"###);

rye_cmd_snapshot!(
Expand Down
Loading