Skip to content

Commit

Permalink
Check that the python packages versions match the conda version
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed Oct 20, 2021
1 parent dbc0c46 commit d6fe022
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions recipes/gym-ignition/build_gym_ignition.sh
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# Fix Python package version
sed -i "s|name = gym_ignition|name = gym_ignition\nversion=$PKG_VERSION|g" setup.cfg
sed -i "s|[tool.setuptools_scm]||g" pyproject.toml
sed -i 's|local_scheme = "dirty-tag"||g' pyproject.toml

pip install --no-build-isolation --no-deps .
7 changes: 6 additions & 1 deletion recipes/gym-ignition/build_scenariopy.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
python \
# Fix Python package version
sed -i "s|name = scenario|name = scenario\nversion=$PKG_VERSION|g" setup.cfg
sed -i "s|[tool.setuptools_scm]||g" pyproject.toml
sed -i 's|local_scheme = "dirty-tag"||g' pyproject.toml

$PYTHON \
-m build \
--wheel \
--outdir dist \
Expand Down
2 changes: 2 additions & 0 deletions recipes/gym-ignition/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ outputs:
- scenario
commands:
- pip check
- test $(pip list | grep scenario | tr -s " " | grep $PKG_VERSION | wc -l) -eq 1 # [unix]
requires:
- pip

Expand Down Expand Up @@ -139,6 +140,7 @@ outputs:
- gym_ignition
commands:
# - pip check (needs idyntree installed with pip during conda build)
- test $(pip list | grep gym-ignition | tr -s " " | grep $PKG_VERSION | wc -l) -eq 1 # [unix]
- sed -i "s|def test_angular_acceleration|def _test_angular_acceleration|g" tests/test_scenario/test_link_velocities.py
- pytest
requires:
Expand Down

0 comments on commit d6fe022

Please sign in to comment.