Skip to content

Commit 8a929b1

Browse files
authored
Bump MuJoCo Warp to v3.5.0. (#1153)
* Bump MuJoCo Warp to v3.5.0. * Also update uv.lock * Update bleeding edge logic check. * Update bleeding edge logic.
1 parent 7c71b02 commit 8a929b1

File tree

3 files changed

+9
-17
lines changed

3 files changed

+9
-17
lines changed

mujoco_warp/_src/io.py

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
import dataclasses
1717
import importlib.metadata
18-
import re
1918
import warnings
2019
from typing import Any, Optional, Sequence
2120

@@ -30,22 +29,15 @@
3029
from mujoco_warp._src import warp_util
3130

3231

33-
def _is_mujoco_dev() -> bool:
34-
_DEV_VERSION_PATTERN = re.compile(r"^\d+\.\d+\.\d+.+") # anything after x.y.z
32+
def _is_mujoco_fresh() -> bool:
33+
"""Checks if mujoco version is > 3.4.0."""
34+
version = importlib.metadata.version("mujoco")
35+
version = version.split(".")
36+
version = tuple(map(int, version[:3])) + tuple(version[3:])
37+
return version > (3, 4, 0)
3538

36-
version = getattr(__import__("mujoco"), "__version__", None)
37-
if version and _DEV_VERSION_PATTERN.match(version):
38-
return True
3939

40-
# fall back to metadata
41-
dist_version = importlib.metadata.version("mujoco")
42-
if _DEV_VERSION_PATTERN.match(dist_version):
43-
return True
44-
45-
return False
46-
47-
48-
BLEEDING_EDGE_MUJOCO = _is_mujoco_dev()
40+
BLEEDING_EDGE_MUJOCO = _is_mujoco_fresh()
4941

5042

5143
def _create_array(data: Any, spec: wp.array, sizes: dict[str, int]) -> wp.array | None:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name="mujoco-warp"
7-
version = "0.0.2"
7+
version = "3.5.0"
88
# TODO(team): create a distribution list
99
authors = [
1010
{name = "Newton Developers", email = "mujoco@deepmind.com"},

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)