Skip to content

Commit

Permalink
Sync Python Releases (#1022)
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>
  • Loading branch information
github-actions[bot] authored Apr 24, 2024
1 parent 7c01d34 commit d87bfc9
Show file tree
Hide file tree
Showing 9 changed files with 67 additions and 25 deletions.
42 changes: 42 additions & 0 deletions rye/src/sources/generated/python_downloads.inc

Large diffs are not rendered by default.

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.2"
toolchain = "cpython@3.12.3"
"#,
)
.unwrap();
Expand All @@ -64,9 +64,9 @@ toolchain = "cpython@3.12.2"
// 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.17", false),
("cpython@3.11.8", true),
("cpython@3.12.2", false),
("cpython@3.8.19", false),
("cpython@3.11.9", true),
("cpython@3.12.3", false),
("pypy@3.10.13", false),
] {
if home.join("py").join(version).is_dir() {
Expand Down
10 changes: 5 additions & 5 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.2
Python version: cpython@3.12.3
Added flask>=3.0.0 as regular dependency
Added colorama>=0.4.6 as regular dependency
Reusing already existing virtualenv
Expand Down Expand Up @@ -52,7 +52,7 @@ fn test_add_flask_dotenv() {
exit_code: 0
----- stdout -----
Initializing new virtualenv in [TEMP_PATH]/project/.venv
Python version: cpython@3.12.2
Python version: cpython@3.12.3
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 @@ -105,7 +105,7 @@ fn test_add_from_find_links() {
exit_code: 0
----- stdout -----
Initializing new virtualenv in [TEMP_PATH]/project/.venv
Python version: cpython@3.12.2
Python version: cpython@3.12.3
Added tqdm>=4.66.1 as regular dependency
Added colorama>=0.4.6 as regular dependency
Reusing already existing virtualenv
Expand Down Expand Up @@ -137,7 +137,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.2
Python version: cpython@3.12.3
Added flask==3.0.0 as regular dependency
Added colorama>=0.4.6 as regular dependency
Reusing already existing virtualenv
Expand Down Expand Up @@ -173,7 +173,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.2
Python version: cpython@3.12.3
Added werkzeug==3.0.0 as regular dependency
Reusing already existing virtualenv
Generating production lockfile: [TEMP_PATH]/project/requirements.lock
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.2
Python version: cpython@3.12.3
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.2
Python version: cpython@3.12.3
Generating production lockfile: [TEMP_PATH]/project/requirements.lock
Generating dev lockfile: [TEMP_PATH]/project/requirements-dev.lock
Installing dependencies
Expand Down Expand Up @@ -70,7 +70,7 @@ fn test_init_default() {
exit_code: 0
----- stdout -----
Initializing new virtualenv in [TEMP_PATH]/project/.venv
Python version: cpython@3.12.2
Python version: cpython@3.12.3
Generating production lockfile: [TEMP_PATH]/project/requirements.lock
Generating dev lockfile: [TEMP_PATH]/project/requirements-dev.lock
Installing dependencies
Expand Down Expand Up @@ -119,7 +119,7 @@ fn test_init_script() {
exit_code: 0
----- stdout -----
Initializing new virtualenv in [TEMP_PATH]/project/.venv
Python version: cpython@3.12.2
Python version: cpython@3.12.3
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_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.2
self-python: cpython@3.12.3
symlink support: true
uv enabled: true
Expand Down
8 changes: 4 additions & 4 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.2
Python version: cpython@3.12.3
Generating production lockfile: [TEMP_PATH]/project/requirements.lock
Generating dev lockfile: [TEMP_PATH]/project/requirements-dev.lock
Installing dependencies
Expand Down Expand Up @@ -53,7 +53,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.2
Python version: cpython@3.12.3
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.2
Python version: cpython@3.12.3
Added flask==3.0.0 as regular dependency
Added colorama>=0.4.6 as regular dependency
Reusing already existing virtualenv
Expand Down Expand Up @@ -137,7 +137,7 @@ fn test_autosync_remember() {
exit_code: 0
----- stdout -----
Initializing new virtualenv in [TEMP_PATH]/project/.venv
Python version: cpython@3.12.2
Python version: cpython@3.12.3
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.2
Python version: cpython@3.12.3
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.2, pytest-7.4.3, pluggy-1.3.0
platform [PLATFORM] -- Python 3.12.3, pytest-7.4.3, pluggy-1.3.0
rootdir: [TEMP_PATH]/project
collected 2 items
Expand Down Expand Up @@ -109,7 +109,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.2, pytest-7.4.3, pluggy-1.3.0
platform [PLATFORM] -- Python 3.12.3, pytest-7.4.3, pluggy-1.3.0
rootdir: [TEMP_PATH]/project/child-dep
collected 2 items
Expand All @@ -129,7 +129,7 @@ fn test_basic_tool_behavior() {
Running tests for foo ([TEMP_PATH]/project)
============================= test session starts =============================
platform [PLATFORM] -- Python 3.12.2, pytest-7.4.3, pluggy-1.3.0
platform [PLATFORM] -- Python 3.12.3, 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 @@ -61,7 +61,7 @@ fn test_basic_tool_behavior() {
success: true
exit_code: 0
----- stdout -----
pycowsay 0.0.0.2 (cpython@3.11.8)
pycowsay 0.0.0.2 (cpython@3.11.9)
----- stderr -----
"###);
Expand All @@ -70,13 +70,13 @@ fn test_basic_tool_behavior() {
space.rye_cmd()
.arg("toolchain")
.arg("remove")
.arg("cpython@3.11.8"), @r###"
.arg("cpython@3.11.9"), @r###"
success: false
exit_code: 1
----- stdout -----
----- stderr -----
error: toolchain cpython@3.11.8 is still in use by tool pycowsay
error: toolchain cpython@3.11.9 is still in use by tool pycowsay
"###);

rye_cmd_snapshot!(
Expand Down

0 comments on commit d87bfc9

Please sign in to comment.