From 700937e6f055a8c4ed0cb401b79c171d416bb751 Mon Sep 17 00:00:00 2001 From: Shunsuke Shibayama Date: Sun, 3 Sep 2023 03:38:44 +0900 Subject: [PATCH] build: update deps & add tests --- Cargo.lock | 12 ++++-------- Cargo.toml | 12 ++++++------ tests/collections.py | 3 +++ 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 15280a4..6415a8d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -156,8 +156,7 @@ checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07" [[package]] name = "els" version = "0.1.32-nightly.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3307c99c6899e4e15cd70ae441155dcf29518c89851ee0607bd7dfa31a7007af" +source = "git+https://github.com/erg-lang/erg?branch=main#d8835fd169ff42467c2cfea4013a03aeeba88057" dependencies = [ "erg_common", "erg_compiler", @@ -181,8 +180,7 @@ dependencies = [ [[package]] name = "erg_common" version = "0.6.20-nightly.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1c1dc0d6ec5a9d4bf8c937ba5512e56e20bfd3b7313f0fcea5678abbefb4cb3" +source = "git+https://github.com/erg-lang/erg?branch=main#d8835fd169ff42467c2cfea4013a03aeeba88057" dependencies = [ "backtrace-on-stack-overflow", "parking_lot", @@ -192,8 +190,7 @@ dependencies = [ [[package]] name = "erg_compiler" version = "0.6.20-nightly.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2cbb4b6cc66405d59b575203f70b54faed5d9390eecc1b339f46ce6c1820c702" +source = "git+https://github.com/erg-lang/erg?branch=main#d8835fd169ff42467c2cfea4013a03aeeba88057" dependencies = [ "erg_common", "erg_parser", @@ -202,8 +199,7 @@ dependencies = [ [[package]] name = "erg_parser" version = "0.6.20-nightly.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84a6408c0cd62d1fdfb12fe223749c9cb952f77104cd27e4425e25f863858970" +source = "git+https://github.com/erg-lang/erg?branch=main#d8835fd169ff42467c2cfea4013a03aeeba88057" dependencies = [ "erg_common", "unicode-xid", diff --git a/Cargo.toml b/Cargo.toml index 6b83324..ce3edf6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,16 +22,16 @@ edition = "2021" repository = "https://github.com/mtshiba/pylyzer" [workspace.dependencies] -erg_common = { version = "0.6.20-nightly.0", features = ["py_compat", "els"] } -erg_compiler = { version = "0.6.20-nightly.0", features = ["py_compat", "els"] } -els = { version = "0.1.32-nightly.0", features = ["py_compat"] } +# erg_common = { version = "0.6.20-nightly.0", features = ["py_compat", "els"] } +# erg_compiler = { version = "0.6.20-nightly.0", features = ["py_compat", "els"] } +# els = { version = "0.1.32-nightly.0", features = ["py_compat"] } rustpython-parser = { version = "0.3.0", features = ["all-nodes-with-ranges", "location"] } rustpython-ast = { version = "0.3.0", features = ["all-nodes-with-ranges", "location"] } # rustpython-parser = { git = "https://github.com/RustPython/Parser", version = "0.3.0", features = ["all-nodes-with-ranges", "location"] } # rustpython-ast = { git = "https://github.com/RustPython/Parser", version = "0.3.0", features = ["all-nodes-with-ranges", "location"] } -# erg_compiler = { git = "https://github.com/erg-lang/erg", branch = "main", features = ["py_compat", "els"] } -# erg_common = { git = "https://github.com/erg-lang/erg", branch = "main", features = ["py_compat", "els"] } -# els = { git = "https://github.com/erg-lang/erg", branch = "main", features = ["py_compat"] } +erg_compiler = { git = "https://github.com/erg-lang/erg", branch = "main", features = ["py_compat", "els"] } +erg_common = { git = "https://github.com/erg-lang/erg", branch = "main", features = ["py_compat", "els"] } +els = { git = "https://github.com/erg-lang/erg", branch = "main", features = ["py_compat"] } # erg_compiler = { path = "../erg/crates/erg_compiler", features = ["py_compat", "els"] } # erg_common = { path = "../erg/crates/erg_common", features = ["py_compat", "els"] } # els = { path = "../erg/crates/els", features = ["py_compat"] } diff --git a/tests/collections.py b/tests/collections.py index 8842299..8740e1a 100644 --- a/tests/collections.py +++ b/tests/collections.py @@ -24,3 +24,6 @@ def f(s: Str): return None for i in getattr(1, "aaa", ()): f(i) + +assert 1 in [1, 2] +assert 1 in {1, 2}