Skip to content

Commit

Permalink
Sync Python Releases (#1379)
Browse files Browse the repository at this point in the history
- Synced latest Python releases

<sup>Auto-generated by
[sync-python-releases.yml](https://github.com/astral-sh/rye/blob/main/.github/workflows/sync-python-releases.yml)</sup>

---------

Co-authored-by: mitsuhiko <7396+mitsuhiko@users.noreply.github.com>
Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
  • Loading branch information
3 people committed Sep 19, 2024
1 parent 0506c92 commit 2491ca0
Show file tree
Hide file tree
Showing 11 changed files with 58 additions and 32 deletions.
30 changes: 30 additions & 0 deletions rye/src/sources/generated/python_downloads.inc

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions rye/tests/.test-list.rs.pending-snap

This file was deleted.

8 changes: 4 additions & 4 deletions rye/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ fn bootstrap_test_rye() -> PathBuf {
use-uv = true
[default]
toolchain = "cpython@3.12.3"
toolchain = "cpython@3.12.6"
"#,
)
.unwrap();
Expand All @@ -64,9 +64,9 @@ toolchain = "cpython@3.12.3"
// fetch the most important interpreters. Fetch some with and some without
// build info to make sure we cover our grounds here.
for (version, build_info) in [
("cpython@3.8.19", false),
("cpython@3.11.9", true),
("cpython@3.12.3", false),
("cpython@3.8.20", false),
("cpython@3.11.10", true),
("cpython@3.12.6", 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.3
Python version: cpython@3.12.6
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.3
Python version: cpython@3.12.6
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.3
Python version: cpython@3.12.6
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.3
Python version: cpython@3.12.6
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.3
Python version: cpython@3.12.6
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.3
Python version: cpython@3.12.6
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.3
Python version: cpython@3.12.6
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.3
Python version: cpython@3.12.6
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.3
Python version: cpython@3.12.6
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.3
Python version: cpython@3.12.6
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.3
Python version: cpython@3.12.6
"###);

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.3
self-python: cpython@3.12.6
symlink support: true
uv enabled: true
Expand Down
10 changes: 5 additions & 5 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.3
Python version: cpython@3.12.6
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.3
Python version: cpython@3.12.6
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.3
Python version: cpython@3.12.6
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.3
Python version: cpython@3.12.6
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.3
Python version: cpython@3.12.6
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.3
Python version: cpython@3.12.6
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.3, pytest-7.4.3, pluggy-1.3.0
platform [PLATFORM] -- Python 3.12.6, 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.3, pytest-7.4.3, pluggy-1.3.0
platform [PLATFORM] -- Python 3.12.6, 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.3, pytest-7.4.3, pluggy-1.3.0
platform [PLATFORM] -- Python 3.12.6, pytest-7.4.3, pluggy-1.3.0
rootdir: [TEMP_PATH]/project
collected 2 items
Expand Down
6 changes: 3 additions & 3 deletions rye/tests/test_tools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ fn test_basic_tool_behavior() {
success: true
exit_code: 0
----- stdout -----
pycowsay 0.0.0.2 (cpython@3.11.9)
pycowsay 0.0.0.2 (cpython@3.11.10)
----- stderr -----
"###);
Expand All @@ -78,13 +78,13 @@ fn test_basic_tool_behavior() {
.env("UV_CACHE_DIR", cache_dir.path())
.arg("toolchain")
.arg("remove")
.arg("cpython@3.11.9"), @r###"
.arg("cpython@3.11.10"), @r###"
success: false
exit_code: 1
----- stdout -----
----- stderr -----
error: toolchain cpython@3.11.9 is still in use by tool pycowsay
error: toolchain cpython@3.11.10 is still in use by tool pycowsay
"###);

rye_cmd_snapshot!(
Expand Down

0 comments on commit 2491ca0

Please sign in to comment.