Skip to content

Commit

Permalink
Upgrade python3-dll-a to 0.2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Dec 21, 2024
1 parent b7e386b commit ae65cbf
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 18 deletions.
11 changes: 5 additions & 6 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,16 @@ def append_to_github_env(name: str, value: str):
def update_pyo3(session: nox.Session):
# TODO: support updating major and minor versions by editing Cargo.toml first
test_crate_dir = Path("./test-crates").resolve()
crates_to_update = ["pyo3", "pyo3-ffi", "python3-dll-a"]
for root, _, files in os.walk(test_crate_dir):
if "Cargo.lock" in files:
cargo_lock_path = Path(root) / "Cargo.lock"
with open(cargo_lock_path, "r") as lock_file:
content = lock_file.read()
if 'name = "pyo3"' in content:
with session.chdir(root):
session.run("cargo", f"+{MSRV}", "update", "-p", "pyo3", external=True)
elif 'name = "pyo3-ffi"' in content:
with session.chdir(root):
session.run("cargo", f"+{MSRV}", "update", "-p", "pyo3-ffi", external=True)
for crate in crates_to_update:
if f'name = "{crate}"' in content:
with session.chdir(root):
session.run("cargo", f"+{MSRV}", "update", "-p", crate, external=True)


@nox.session(name="setup-pyodide", python=False)
Expand Down
4 changes: 2 additions & 2 deletions test-crates/pyo3-mixed-include-exclude/Cargo.lock

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

4 changes: 2 additions & 2 deletions test-crates/pyo3-mixed-src/rust/Cargo.lock

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

4 changes: 2 additions & 2 deletions test-crates/pyo3-mixed-with-path-dep/Cargo.lock

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

4 changes: 2 additions & 2 deletions test-crates/pyo3-mixed-workspace/rust/Cargo.lock

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

4 changes: 2 additions & 2 deletions test-crates/pyo3-mixed/Cargo.lock

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

4 changes: 2 additions & 2 deletions test-crates/pyo3-pure/Cargo.lock

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

0 comments on commit ae65cbf

Please sign in to comment.