Skip to content

Commit

Permalink
rust polars 0.25.x (#5362)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Oct 28, 2022
1 parent 1ccf950 commit 552b4f5
Show file tree
Hide file tree
Showing 14 changed files with 83 additions and 62 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ members = [
]

[workspace.package]
version = "0.24.3"
version = "0.25.1"

[workspace.dependencies]
rayon = "1.5"
Expand Down
16 changes: 8 additions & 8 deletions polars/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polars"
version = "0.24.3"
version = "0.25.1"
authors = ["ritchie46 <ritchie46@gmail.com>"]
edition = "2021"
keywords = ["dataframe", "query-engine", "arrow"]
Expand Down Expand Up @@ -274,13 +274,13 @@ bench = [
]

[dependencies]
polars-algo = { version = "0.24.3", path = "./polars-algo", optional = true }
polars-core = { version = "0.24.3", path = "./polars-core", features = ["docs", "private"], default-features = false }
polars-io = { version = "0.24.3", path = "./polars-io", features = ["private"], default-features = false, optional = true }
polars-lazy = { version = "0.24.3", path = "./polars-lazy", features = ["private"], default-features = false, optional = true }
polars-ops = { version = "0.24.3", path = "./polars-ops" }
polars-sql = { version = "0.1.0", path = "./polars-sql", default-features = false, optional = true }
polars-time = { version = "0.24.3", path = "./polars-time", default-features = false, optional = true }
polars-algo = { version = "0.25.1", path = "./polars-algo", optional = true }
polars-core = { version = "0.25.1", path = "./polars-core", features = ["docs", "private"], default-features = false }
polars-io = { version = "0.25.1", path = "./polars-io", features = ["private"], default-features = false, optional = true }
polars-lazy = { version = "0.25.1", path = "./polars-lazy", features = ["private"], default-features = false, optional = true }
polars-ops = { version = "0.25.1", path = "./polars-ops" }
polars-sql = { version = "0.2.0", path = "./polars-sql", default-features = false, optional = true }
polars-time = { version = "0.25.1", path = "./polars-time", default-features = false, optional = true }

[dev-dependencies]
ahash = "0.7"
Expand Down
6 changes: 6 additions & 0 deletions polars/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,14 @@ publish:
sleep 20
cargo publish --allow-dirty -p polars-io
sleep 20
cargo publish --allow-dirty -p polars-plan
sleep 20
cargo publish --allow-dirty -p polars-pipe
sleep 20
cargo publish --allow-dirty -p polars-lazy
sleep 20
cargo publish --allow-dirty -p polars-algo
sleep 20
cargo publish --allow-dirty -p polars-sql
sleep 20
cargo publish --allow-dirty -p polars
4 changes: 2 additions & 2 deletions polars/polars-algo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ description = "Algorithms built upon Polars primitives"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
polars-core = { version = "0.24.3", path = "../polars-core", features = ["private", "dtype-categorical", "asof_join"], default-features = false }
polars-lazy = { version = "0.24.3", path = "../polars-lazy", features = ["asof_join", "concat_str", "strings"] }
polars-core = { version = "0.25.1", path = "../polars-core", features = ["private", "dtype-categorical", "asof_join"], default-features = false }
polars-lazy = { version = "0.25.1", path = "../polars-lazy", features = ["asof_join", "concat_str", "strings"] }

[package.metadata.docs.rs]
all-features = true
Expand Down
4 changes: 2 additions & 2 deletions polars/polars-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ indexmap = { version = "1", features = ["std"] }
ndarray = { version = "0.15", optional = true, default_features = false }
num.workspace = true
once_cell = "1"
polars-arrow = { version = "0.24.3", path = "../polars-arrow", features = ["compute"] }
polars-utils = { version = "0.24.3", path = "../polars-utils" }
polars-arrow = { version = "0.25.1", path = "../polars-arrow", features = ["compute"] }
polars-utils = { version = "0.25.1", path = "../polars-utils" }
rand = { version = "0.8", optional = true, features = ["small_rng", "std"] }
rand_distr = { version = "0.4", optional = true }
rayon.workspace = true
Expand Down
8 changes: 4 additions & 4 deletions polars/polars-io/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ memchr = "2.5"
memmap = { package = "memmap2", version = "0.5.2", optional = true }
num.workspace = true
once_cell = "1"
polars-arrow = { version = "0.24.3", path = "../polars-arrow" }
polars-core = { version = "0.24.3", path = "../polars-core", features = ["private"], default-features = false }
polars-time = { version = "0.24.3", path = "../polars-time", features = ["private"], default-features = false, optional = true }
polars-utils = { version = "0.24.3", path = "../polars-utils" }
polars-arrow = { version = "0.25.1", path = "../polars-arrow" }
polars-core = { version = "0.25.1", path = "../polars-core", features = ["private"], default-features = false }
polars-time = { version = "0.25.1", path = "../polars-time", features = ["private"], default-features = false, optional = true }
polars-utils = { version = "0.25.1", path = "../polars-utils" }
rayon.workspace = true
regex = "1.6"
serde = { version = "1", features = ["derive"], optional = true }
Expand Down
26 changes: 16 additions & 10 deletions polars/polars-lazy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ description = "Lazy query engine for the Polars DataFrame library"
ahash.workspace = true
bitflags.workspace = true
glob = "0.3"
polars-arrow = { version = "0.24.3", path = "../polars-arrow" }
polars-core = { version = "0.24.3", path = "../polars-core", features = ["lazy", "private", "zip_with", "random"], default-features = false }
polars-io = { version = "0.24.3", path = "../polars-io", features = ["lazy", "csv-file", "private"], default-features = false }
polars-ops = { version = "0.24.3", path = "../polars-ops", default-features = false }
polars-pipe = { version = "0.24.3", path = "./polars-pipe" }
polars-plan = { version = "0.24.3", path = "./polars-plan" }
polars-time = { version = "0.24.3", path = "../polars-time", optional = true }
polars-utils = { version = "0.24.3", path = "../polars-utils" }
polars-arrow = { version = "0.25.1", path = "../polars-arrow" }
polars-core = { version = "0.25.1", path = "../polars-core", features = ["lazy", "private", "zip_with", "random"], default-features = false }
polars-io = { version = "0.25.1", path = "../polars-io", features = ["lazy", "csv-file", "private"], default-features = false }
polars-ops = { version = "0.25.1", path = "../polars-ops", default-features = false }
polars-pipe = { version = "0.25.1", path = "./polars-pipe" }
polars-plan = { version = "0.25.1", path = "./polars-plan" }
polars-time = { version = "0.25.1", path = "../polars-time", optional = true }
polars-utils = { version = "0.25.1", path = "../polars-utils" }
pyo3 = { version = "0.16", optional = true }
rayon.workspace = true

Expand Down Expand Up @@ -76,7 +76,7 @@ rolling_window = [
rank = ["polars-plan/rank"]
diff = ["polars-plan/diff", "polars-plan/diff"]
pct_change = ["polars-plan/pct_change"]
moment = ["polars-plan/moment"]
moment = ["polars-plan/moment", "polars-ops/moment"]
abs = ["polars-plan/abs"]
random = ["polars-plan/random"]
dynamic_groupby = ["polars-plan/dynamic_groupby", "polars-time", "temporal"]
Expand All @@ -101,7 +101,13 @@ cse = ["polars-plan/cse"]
propagate_nans = ["polars-plan/propagate_nans"]
coalesce = ["polars-plan/coalesce"]
regex = ["polars-plan/regex"]
serde = ["polars-plan/serde"]
serde = [
"polars-plan/serde",
"polars-arrow/serde",
"polars-core/serde-lazy",
"polars-time/serde",
"polars-io/serde",
]

# no guarantees whatsoever
private = ["polars-plan/private"]
Expand Down
13 changes: 8 additions & 5 deletions polars/polars-lazy/polars-pipe/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,20 @@
name = "polars-pipe"
version.workspace = true
edition = "2021"
license = "MIT"
repository = "https://github.com/pola-rs/polars"
description = "Lazy query engine for the Polars DataFrame library"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
enum_dispatch = "0.3"
hashbrown.workspace = true
num.wokspace = true
polars-core = { version = "0.24.2", path = "../../polars-core", features = ["lazy", "private", "zip_with", "random"], default-features = false }
polars-io = { version = "0.24.2", path = "../../polars-io", default-features = false }
polars-plan = { version = "0.24.2", path = "../polars-plan", default-features = false, features = ["compile"] }
polars-utils = { version = "0.24.2", path = "../../polars-utils" }
num.workspace = true
polars-core = { version = "0.25.1", path = "../../polars-core", features = ["lazy", "private", "zip_with", "random"], default-features = false }
polars-io = { version = "0.25.1", path = "../../polars-io", default-features = false }
polars-plan = { version = "0.25.1", path = "../polars-plan", default-features = false, features = ["compile"] }
polars-utils = { version = "0.25.1", path = "../../polars-utils" }
rayon.workspace = true

[features]
Expand Down
15 changes: 9 additions & 6 deletions polars/polars-lazy/polars-plan/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,20 @@
name = "polars-plan"
version.workspace = true
edition = "2021"
license = "MIT"
repository = "https://github.com/pola-rs/polars"
description = "Lazy query engine for the Polars DataFrame library"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
ahash.workspace = true
polars-arrow = { version = "0.24.3", path = "../../polars-arrow" }
polars-core = { version = "0.24.3", path = "../../polars-core", features = ["lazy", "private", "zip_with", "random"], default-features = false }
polars-io = { version = "0.24.3", path = "../../polars-io", features = ["lazy", "csv-file", "private"], default-features = false }
polars-ops = { version = "0.24.3", path = "../../polars-ops", default-features = false }
polars-time = { version = "0.24.3", path = "../../polars-time", optional = true }
polars-utils = { version = "0.24.3", path = "../../polars-utils" }
polars-arrow = { version = "0.25.1", path = "../../polars-arrow" }
polars-core = { version = "0.25.1", path = "../../polars-core", features = ["lazy", "private", "zip_with", "random"], default-features = false }
polars-io = { version = "0.25.1", path = "../../polars-io", features = ["lazy", "csv-file", "private"], default-features = false }
polars-ops = { version = "0.25.1", path = "../../polars-ops", default-features = false }
polars-time = { version = "0.25.1", path = "../../polars-time", optional = true }
polars-utils = { version = "0.25.1", path = "../../polars-utils" }
pyo3 = { version = "0.16", optional = true }
rayon.workspace = true
regex = { version = "1.6", optional = true }
Expand Down
6 changes: 3 additions & 3 deletions polars/polars-ops/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ description = "More operations on polars data structures"
[dependencies]
arrow.workspace = true
jsonpath_lib = { version = "0.3.0", optional = true, git = "https://github.com/ritchie46/jsonpath", branch = "improve_compiled" }
polars-arrow = { version = "0.24.3", path = "../polars-arrow", default-features = false }
polars-core = { version = "0.24.3", path = "../polars-core", features = ["private"], default-features = false }
polars-utils = { version = "0.24.3", path = "../polars-utils", default-features = false }
polars-arrow = { version = "0.25.1", path = "../polars-arrow", default-features = false }
polars-core = { version = "0.25.1", path = "../polars-core", features = ["private"], default-features = false }
polars-utils = { version = "0.25.1", path = "../polars-utils", default-features = false }
serde_json = { version = "1", optional = true }

[features]
Expand Down
13 changes: 8 additions & 5 deletions polars/polars-sql/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
[package]
name = "polars-sql"
version = "0.1.0"
version = "0.2.1"
edition = "2021"
license = "MIT"
repository = "https://github.com/pola-rs/polars"
description = "Lazy query engine for the Polars DataFrame library"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]

[dependencies]
polars-arrow = { path = "../polars-arrow", features = ["like"] }
polars-core = { path = "../polars-core", features = [] }
polars-lazy = { path = "../polars-lazy", features = ["compile", "strings", "cross_join"] }
polars-plan = { path = "../polars-lazy/polars-plan", features = ["compile"] }
polars-arrow = { version = "0.25.1", path = "../polars-arrow", features = ["like"] }
polars-core = { version = "0.25.1", path = "../polars-core", features = [] }
polars-lazy = { version = "0.25.1", path = "../polars-lazy", features = ["compile", "strings", "cross_join"] }
polars-plan = { version = "0.25.1", path = "../polars-lazy/polars-plan", features = ["compile"] }
serde = "1"
serde_json = { version = "1" }
sqlparser = { version = "0.19" }
6 changes: 3 additions & 3 deletions polars/polars-time/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ description = "Time related code for the polars dataframe library"
chrono = "0.4"
chrono-tz = { version = "0.6", optional = true }
lexical = { version = "6", default-features = false, features = ["std", "parse-floats", "parse-integers"] }
polars-arrow = { version = "0.24.3", path = "../polars-arrow", features = ["compute", "temporal"] }
polars-core = { version = "0.24.3", path = "../polars-core", default-features = false, features = ["private", "dtype-datetime", "dtype-duration", "dtype-time", "dtype-date"] }
polars-utils = { version = "0.24.3", path = "../polars-utils" }
polars-arrow = { version = "0.25.1", path = "../polars-arrow", features = ["compute", "temporal"] }
polars-core = { version = "0.25.1", path = "../polars-core", default-features = false, features = ["private", "dtype-datetime", "dtype-duration", "dtype-time", "dtype-date"] }
polars-utils = { version = "0.25.1", path = "../polars-utils" }
serde = { version = "1", features = ["derive"], optional = true }

[features]
Expand Down
24 changes: 12 additions & 12 deletions py-polars/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion py-polars/polars/internals/lazyframe/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ def show_graph(
graph = subprocess.check_output(
["dot", "-Nshape=box", "-T" + output_type], input=f"{dot}".encode()
)
except ImportError:
except (ImportError, FileNotFoundError):
raise ImportError("Graphviz dot binary should be on your PATH") from None

if output_path:
Expand Down

0 comments on commit 552b4f5

Please sign in to comment.