Skip to content

Commit e319cca

Browse files
authored
Python Polars 2.0 (#29723)
1 parent d1d6ba4 commit e319cca

12 files changed

Lines changed: 23 additions & 22 deletions

File tree

‎.github/workflows/docs-python.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,9 @@ jobs:
103103
single-commit: true
104104

105105
- name: Deploy Python docs for latest release version - stable
106-
if: github.event_name == 'repository_dispatch' && github.event.client_payload.is_prerelease == 'false' || (github.event_name == 'workflow_dispatch' && steps.version.outputs.version == '1')
107-
uses: JamesIves/github-pages-deploy-action@v4
106+
# Keep the major version in sync with STABLE_MAJOR in py-polars/docs/source/conf.py.
107+
if: steps.version.outputs.version == '2' && (github.event_name == 'workflow_dispatch' || github.event.client_payload.is_prerelease == 'false')
108+
uses: JamesIves/github-pages-deploy-action@v4
108109
with:
109110
folder: py-polars/docs/build/html
110111
target-folder: api/python/stable

‎Cargo.lock‎

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎crates/polars-python/src/lib.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pub mod c_api;
5656
// Since Python Polars cannot share its version into here and we need to be able to build this
5757
// package correctly without `py-polars`, we need to mirror the version here.
5858
// example: 1.35.0-beta.1
59-
pub static PYPOLARS_VERSION: &str = "2.0.0-rc.2";
59+
pub static PYPOLARS_VERSION: &str = "2.0.0";
6060

6161
// Set by the release CI workflow; absent for local/source builds.
6262
pub static PYPOLARS_BUILD_COMMIT: &str = match option_env!("POLARS_BUILD_COMMIT") {

‎docs/source/releases/upgrade/2.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Version 2.0.0rc2
1+
# Version 2.0
22

33
## Breaking changes
44

‎py-polars/docs/source/_static/version_switcher.json‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
"url": "https://docs.pola.rs/api/python/dev/"
66
},
77
{
8-
"name": "2 (pre-release)",
8+
"name": "2 (stable)",
99
"version": "2",
10-
"url": "https://docs.pola.rs/api/python/version/2/"
10+
"url": "https://docs.pola.rs/api/python/stable/",
11+
"preferred": true
1112
},
1213
{
13-
"name": "1 (stable)",
14+
"name": "1",
1415
"version": "1",
15-
"url": "https://docs.pola.rs/api/python/stable/",
16-
"preferred": true
16+
"url": "https://docs.pola.rs/api/python/version/1/"
1717
},
1818
{
1919
"name": "0.20",

‎py-polars/docs/source/conf.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def _switcher_version(git_ref: str) -> str:
129129

130130

131131
# The major version served at /api/python/stable/. Bump on a major release.
132-
STABLE_MAJOR = "1"
132+
STABLE_MAJOR = "2"
133133

134134
git_ref = os.environ.get("POLARS_VERSION", "main")
135135
switcher_version = _switcher_version(git_ref)

‎py-polars/pyproject.toml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ authors = [
1010
{ name = "Ritchie Vink", email = "[email protected]" },
1111
]
1212
# example: 1.35.0b1
13-
version = "2.0.0rc2"
13+
version = "2.0.0"
1414
license = { file = "LICENSE" }
1515
requires-python = ">=3.10"
1616

@@ -33,7 +33,7 @@ classifiers = [
3333
"Typing :: Typed",
3434
]
3535
# example: 1.35.0b1
36-
dependencies = ["polars-runtime-32 == 2.0.0rc2"]
36+
dependencies = ["polars-runtime-32 == 2.0.0"]
3737

3838
[project.urls]
3939
Homepage = "https://www.pola.rs/"
@@ -44,8 +44,8 @@ Changelog = "https://github.com/pola-rs/polars/releases"
4444
[project.optional-dependencies]
4545
# Runtimes
4646
# example: 1.35.0b1
47-
rt64 = ["polars-runtime-64 == 2.0.0rc2"]
48-
rtcompat = ["polars-runtime-compat == 2.0.0rc2"]
47+
rt64 = ["polars-runtime-64 == 2.0.0"]
48+
rtcompat = ["polars-runtime-compat == 2.0.0"]
4949

5050
# NOTE: keep this list in sync with show_versions() and requirements-dev.txt
5151
polars_cloud = ["polars_cloud >= 0.11.0"]

‎py-polars/runtime/polars-runtime-32/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "polars-runtime-32"
33
# example: 1.35.0-beta.1
4-
version = "2.0.0-rc.2"
4+
version = "2.0.0"
55
edition = "2024"
66
license = "MIT"
77

‎py-polars/runtime/polars-runtime-64/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "polars-runtime-64"
33
# example: 1.35.0-beta.1
4-
version = "2.0.0-rc.2"
4+
version = "2.0.0"
55
edition = "2024"
66
license = "MIT"
77

‎py-polars/runtime/polars-runtime-compat/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "polars-runtime-compat"
33
# example: 1.35.0-beta.1
4-
version = "2.0.0-rc.2"
4+
version = "2.0.0"
55
edition = "2024"
66
license = "MIT"
77

0 commit comments

Comments
 (0)