Skip to content

Commit 5334a43

Browse files
committed
legacy-resolver
1 parent eb52b3b commit 5334a43

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

scripts/test/run.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def nightly_pandas():
8686
"-m",
8787
"pip",
8888
"install",
89+
"--use-deprecated=legacy-resolver",
8990
"--upgrade",
9091
"--index-url",
9192
"https://pypi.anaconda.org/scipy-wheels-nightly/simple",
@@ -96,9 +97,11 @@ def nightly_pandas():
9697

9798
def released_pandas():
9899
# query pandas version
99-
cmd = ["poetry", "version", "-s"]
100-
version = subprocess.check_output(cmd)
101-
version = ".".join(version.decode().split(".", 3)[:3])
100+
text = Path("pyproject.toml").read_text()
101+
version_line = next(
102+
line for line in text.splitlines() if line.startswith("pandas = ")
103+
)
104+
version = version_line.split('"')[1]
102105

103106
cmd = [sys.executable, "-m", "pip", "install", f"pandas=={version}"]
104107
subprocess.run(cmd, check=True)

0 commit comments

Comments
 (0)