From 7a9360694bc3f59996f256078a34d77d94c75263 Mon Sep 17 00:00:00 2001 From: Filippo Luca Ferretti <102977828+flferretti@users.noreply.github.com> Date: Thu, 30 Nov 2023 12:15:58 +0100 Subject: [PATCH 1/7] Add recipe for `jaxsim` --- recipes/jaxsim/meta.yaml | 53 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 recipes/jaxsim/meta.yaml diff --git a/recipes/jaxsim/meta.yaml b/recipes/jaxsim/meta.yaml new file mode 100644 index 0000000000000..60382ef4f344c --- /dev/null +++ b/recipes/jaxsim/meta.yaml @@ -0,0 +1,53 @@ +{% set name = "jaxsim" %} +{% set version = "0.1" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/jaxsim-{{ version }}.tar.gz + sha256: 54ec1c3a597b411266f42fa0fd15bc3ab190e81a0a6fff53666ca50a5a41486b + +build: + noarch: python + script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation + number: 0 + +requirements: + host: + - python >=3.10 + - wheel + - setuptools >=45 + - setuptools-scm >=6.2 + - pip + run: + - python >=3.10 + - coloredlogs + - jax >=0.4.1 + - jaxlib >=0.4.1 + - jaxlie + - jax-dataclasses >=1.4.0 + - pptree + - rod + - typing_extensions + +test: + imports: + - jaxsim + commands: + - pip check + requires: + - pip + +about: + home: https://github.com/ami-iit/jaxsim + summary: A physics engine in reduced coordinates implemented with JAX. + dev_url: https://github.com/ami-iit/jaxsim + license: BSD-3-Clause + license_file: LICENSE + +extra: + recipe-maintainers: + - flferretti + - diegoferigo From a14c4fd1914cf9df905643fa23f555fd652299dc Mon Sep 17 00:00:00 2001 From: Filippo Luca Ferretti <102977828+flferretti@users.noreply.github.com> Date: Wed, 24 Jan 2024 11:05:50 +0100 Subject: [PATCH 2/7] Add `traversaro` in maintainers --- recipes/jaxsim/meta.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes/jaxsim/meta.yaml b/recipes/jaxsim/meta.yaml index 60382ef4f344c..ce7ee46c7840e 100644 --- a/recipes/jaxsim/meta.yaml +++ b/recipes/jaxsim/meta.yaml @@ -51,3 +51,4 @@ extra: recipe-maintainers: - flferretti - diegoferigo + - traversaro From ccc65e8bf8abae2887774c98add18c9fa44603eb Mon Sep 17 00:00:00 2001 From: Filippo Luca Ferretti Date: Wed, 24 Jan 2024 16:29:23 +0100 Subject: [PATCH 3/7] Update requirements according to the latest release --- recipes/jaxsim/meta.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/recipes/jaxsim/meta.yaml b/recipes/jaxsim/meta.yaml index ce7ee46c7840e..ec7938094fbbd 100644 --- a/recipes/jaxsim/meta.yaml +++ b/recipes/jaxsim/meta.yaml @@ -16,17 +16,17 @@ build: requirements: host: - - python >=3.10 + - python >=3.11 - wheel - setuptools >=45 - setuptools-scm >=6.2 - pip run: - - python >=3.10 + - python >=3.11 - coloredlogs - - jax >=0.4.1 - - jaxlib >=0.4.1 - - jaxlie + - jax >=0.4.13 + - jaxlib >=0.4.13 + - jaxlie >=1.3.0 - jax-dataclasses >=1.4.0 - pptree - rod From bc84563d95c339326bab51dac5f9db5afd28072a Mon Sep 17 00:00:00 2001 From: Filippo Luca Ferretti Date: Thu, 25 Jan 2024 09:32:47 +0100 Subject: [PATCH 4/7] Bump release and update hash --- recipes/jaxsim/meta.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/recipes/jaxsim/meta.yaml b/recipes/jaxsim/meta.yaml index ec7938094fbbd..866fd29a24643 100644 --- a/recipes/jaxsim/meta.yaml +++ b/recipes/jaxsim/meta.yaml @@ -7,7 +7,7 @@ package: source: url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/jaxsim-{{ version }}.tar.gz - sha256: 54ec1c3a597b411266f42fa0fd15bc3ab190e81a0a6fff53666ca50a5a41486b + sha256: 678aee4f572b528f014ff74da8a2e3208ed3273dbdf9cf33a8bdfa93651a20b7 build: noarch: python @@ -18,19 +18,18 @@ requirements: host: - python >=3.11 - wheel - - setuptools >=45 - - setuptools-scm >=6.2 + - setuptools >=64 + - setuptools-scm >=8 - pip run: - python >=3.11 - coloredlogs - jax >=0.4.13 - - jaxlib >=0.4.13 + - jaxlib - jaxlie >=1.3.0 - jax-dataclasses >=1.4.0 - pptree - rod - - typing_extensions test: imports: From 7c63e7da730f8d1b89294dea8bfbbc744b0cfc80 Mon Sep 17 00:00:00 2001 From: Filippo Luca Ferretti <102977828+flferretti@users.noreply.github.com> Date: Thu, 25 Jan 2024 09:44:52 +0100 Subject: [PATCH 5/7] Use tar for GitHub --- recipes/jaxsim/meta.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/jaxsim/meta.yaml b/recipes/jaxsim/meta.yaml index 866fd29a24643..107e1bd3eabdc 100644 --- a/recipes/jaxsim/meta.yaml +++ b/recipes/jaxsim/meta.yaml @@ -6,8 +6,8 @@ package: version: {{ version }} source: - url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/jaxsim-{{ version }}.tar.gz - sha256: 678aee4f572b528f014ff74da8a2e3208ed3273dbdf9cf33a8bdfa93651a20b7 + url: https://github.com/ami-iit/jaxsim/archive/v{{ version }}.tar.gz + sha256: 412fcaa618e4fa0fd5cddf220af203eb8f11f64f53046c9ba1d16a4c54b73f80 build: noarch: python From 527bc7431ce0c2e0a6b310121b964708079e05b6 Mon Sep 17 00:00:00 2001 From: Filippo Luca Ferretti Date: Thu, 25 Jan 2024 12:08:22 +0100 Subject: [PATCH 6/7] Update test and set setuptools_scm env variable --- recipes/jaxsim/meta.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/recipes/jaxsim/meta.yaml b/recipes/jaxsim/meta.yaml index 107e1bd3eabdc..f77a95755f8ee 100644 --- a/recipes/jaxsim/meta.yaml +++ b/recipes/jaxsim/meta.yaml @@ -10,6 +10,8 @@ source: sha256: 412fcaa618e4fa0fd5cddf220af203eb8f11f64f53046c9ba1d16a4c54b73f80 build: + script_env: + - SETUPTOOLS_SCM_PRETEND_VERSION={{ version }} noarch: python script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation number: 0 @@ -36,6 +38,7 @@ test: - jaxsim commands: - pip check + - test "$(pip list | grep jaxsim | awk '{print $2}')" == "$PKG_VERSION" requires: - pip From aab255607940f7b875534cddef3fc2aecc94716e Mon Sep 17 00:00:00 2001 From: Filippo Luca Ferretti <102977828+flferretti@users.noreply.github.com> Date: Tue, 30 Jan 2024 20:16:14 +0100 Subject: [PATCH 7/7] Update meta.yaml --- recipes/jaxsim/meta.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/recipes/jaxsim/meta.yaml b/recipes/jaxsim/meta.yaml index f77a95755f8ee..8e939bdfebd3b 100644 --- a/recipes/jaxsim/meta.yaml +++ b/recipes/jaxsim/meta.yaml @@ -6,12 +6,10 @@ package: version: {{ version }} source: - url: https://github.com/ami-iit/jaxsim/archive/v{{ version }}.tar.gz - sha256: 412fcaa618e4fa0fd5cddf220af203eb8f11f64f53046c9ba1d16a4c54b73f80 + url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/jaxsim-{{ version }}.tar.gz + sha256: 27d0dec121b86c5c4d93d918ca7d782c5fa775e7098d1eb81325f85ba149c093 build: - script_env: - - SETUPTOOLS_SCM_PRETEND_VERSION={{ version }} noarch: python script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation number: 0