Lerobot-Dataset-Ruby 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/test/minimal_lerobot_check.rb +21 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ec564d69b9808e363f395d9b2948d1d709c5625e6d54fb9c7e8735b67998e56
4
- data.tar.gz: 92e2ba8a7853da8bd6e625abfc52eae94d82c79b8c7fdbc5a74e7cce316ff16b
3
+ metadata.gz: 110f34177c5ea21bc41fb69c62d1e1142b36392d5694e7f4c56086fe316e4457
4
+ data.tar.gz: baa0557ebbeb7ab01806db0c42f0c7da5ab5f88edfe2934b17871503bbb4178f
5
5
  SHA512:
6
- metadata.gz: 5d967d7e0efa2756adf0060795fc864fd6b5719acbfdbd3d923931b3c1e33a7731fca4fa8730e238b1b16b85fd56c4a41cf856d4830f21fc4f04879f7bde437f
7
- data.tar.gz: 49a4db82c34c549a57b514f4ee490051be4f768a8cb9af048807726962bd01648c45e6e8799b844f7a070a67498f21d3892d82c42acec1c7c40fc6b4b6a30392
6
+ metadata.gz: 152080a79ab5a179f48ec3a0d62565f03f8a943a1d2afab340f8584652864d1e471077c463a77d979ff54a552bbd1cc70de74980dee2863c3cee62106fe9450d
7
+ data.tar.gz: cade37cb497f9c53ba437eda546741eec2a0ad74bd7177b31d636b5b3c1f7740e35af00be34cc32461c8dbc412d284bb129ce5595e00b30026520246b7f3a14a
@@ -39,10 +39,29 @@ python_code = <<~PY
39
39
  print("state", sample["state"])
40
40
  PY
41
41
 
42
- venv_activate = File.expand_path('../.venv/bin/activate', __dir__)
42
+ # Python実行環境の解決 (同階層のlerobotやConda環境、venvに対応)
43
+ sibling_lerobot = File.expand_path('../../lerobot/src', __dir__)
44
+ python_bin = nil
45
+ env_setup = ""
46
+
47
+ if File.exist?(File.expand_path('../.venv/bin/activate', __dir__))
48
+ env_setup = ". \"#{File.expand_path('../.venv/bin/activate', __dir__)}\" && "
49
+ python_bin = "python"
50
+ elsif File.executable?(File.expand_path('../../miniforge3/envs/lerobot/bin/python', __dir__))
51
+ python_bin = File.expand_path('../../miniforge3/envs/lerobot/bin/python', __dir__)
52
+ elsif File.executable?(File.expand_path('~/miniforge3/envs/lerobot/bin/python'))
53
+ python_bin = File.expand_path('~/miniforge3/envs/lerobot/bin/python')
54
+ elsif ENV['CONDA_PREFIX'] && File.executable?(File.join(ENV['CONDA_PREFIX'], 'bin', 'python'))
55
+ python_bin = File.join(ENV['CONDA_PREFIX'], 'bin', 'python')
56
+ else
57
+ python_bin = "python3"
58
+ end
59
+
60
+ python_path_export = File.directory?(sibling_lerobot) ? "export PYTHONPATH=\"#{sibling_lerobot}:$PYTHONPATH\" && " : ""
61
+
43
62
  system(
44
63
  'bash', '-lc',
45
- "cd #{File.expand_path('..', __dir__)} && . \"#{venv_activate}\" && python - <<'PY'\n#{python_code}\nPY"
64
+ "cd #{File.expand_path('..', __dir__)} && #{env_setup}#{python_path_export}#{python_bin} - <<'PY'\n#{python_code}\nPY"
46
65
  )
47
66
 
48
67
  exit($?.exitstatus)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Lerobot-Dataset-Ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - PaisyaluAI
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-10-03 00:00:00.000000000 Z
11
+ date: 2026-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parquet