Skip to content

Commit

Permalink
Merge pull request conda-forge#27545 from kbrindley/add-turbo-turtle
Browse files Browse the repository at this point in the history
Add turbo turtle
  • Loading branch information
xhochy authored Sep 25, 2024
2 parents fdd1235 + 23ccafc commit 159f37c
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 0 deletions.
7 changes: 7 additions & 0 deletions recipes/turbo_turtle/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
REM TODO: Remove MANIFEST monkey patch when Turbo-Turtle is released with a MANIFEST and better subdirectory handling
@echo off
echo recursive-include turbo_turtle/tutorials *> MANIFEST.in
%PYTHON% -m build --no-isolation
%PYTHON% -m pip install dist/%PKG_NAME%-%PKG_VERSION%.tar.gz --no-deps --ignore-installed -v --no-build-isolation
scons man html
%PYTHON% package_documentation.py
6 changes: 6 additions & 0 deletions recipes/turbo_turtle/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# TODO: Remove MANIFEST monkey patch when Turbo-Turtle is released with a MANIFEST and better subdirectory handling
echo "recursive-include turbo_turtle/tutorials *" > MANIFEST.in
$PYTHON -m build --no-isolation
$PYTHON -m pip install dist/$PKG_NAME-$PKG_VERSION.tar.gz --no-deps --ignore-installed -v --no-build-isolation
scons man html
$PYTHON package_documentation.py
63 changes: 63 additions & 0 deletions recipes/turbo_turtle/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{% set name = "turbo_turtle" %}
{% set version = "0.12.1" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://github.com/lanl-aea/turbo-turtle/archive/refs/tags/{{ version }}.tar.gz
sha256: e89f218c8d95484f3b0b8b61427c0bd82779226301436c991535966bac4d140d

build:
noarch: python
number: 0
script_env:
- SETUPTOOLS_SCM_PRETEND_VERSION={{ version }}
entry_points:
- turbo-turtle = turbo_turtle._main:main

requirements:
host:
- python
- python-build
- pip
- lazy_loader >=0.4
- scons >=4
- setuptools >=64
- setuptools_scm >=8
- sphinx >=5.1
- sphinx-argparse
- sphinx-copybutton >=0.5.1
- sphinx_rtd_theme >=1
- sphinxcontrib-bibtex
- waves >=0.7.2,<0.11.0
run:
- python >=3.8
- lazy_loader >=0.4
- scons >=4
- waves >=0.7.2,<0.11.0

test:
requires:
- pip
- pytest
- pytest-xdist
imports:
- turbo_turtle

about:
home: https://github.com/lanl-aea/turbo-turtle
license: BSD-3-Clause
license_file: LICENSE.txt
summary: Solid body modeling tools for 2D sketched, 2D axisymmetric, and 3D revolved models
description: |
Turbo-Turtle (LANL code O4765) is a solid body modeling tools for 2D sketched, 2D axisymmetric, and 3D revolved
models.
doc_url: https://lanl-aea.github.io/turbo-turtle/index.html
dev_url: https://github.com/lanl-aea/turbo-turtle

extra:
recipe-maintainers:
- kbrindley
- tprobertslanl
8 changes: 8 additions & 0 deletions recipes/turbo_turtle/run_test.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
pip check
turbo-turtle -h
turbo-turtle docs --print-local-path
turbo-turtle fetch --destination turbo_turtle_fetch
cd %SP_DIR%\%PKG_NAME%
REM TODO: Remove test_wrapper.py ignore when Turbo-Turtle releases a mocked cubit module
REM TODO: Remove test_fetch.py ignore when Turbo-Turtle releases a bugfix for test expectations
pytest -vvv -n 4 --ignore=_abaqus_python -m "not systemtest" --ignore=tests/test_wrappers.py --ignore=tests/test_fetch.py
7 changes: 7 additions & 0 deletions recipes/turbo_turtle/run_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pip check
turbo-turtle -h
turbo-turtle docs --print-local-path
turbo-turtle fetch --destination turbo_turtle_fetch
cd $SP_DIR/$PKG_NAME
# TODO: Remove test_wrapper.py ignore when Turbo-Turtle releases a mocked cubit module
pytest -vvv -n 4 --ignore=_abaqus_python -m "not systemtest" --ignore=tests/test_wrappers.py

0 comments on commit 159f37c

Please sign in to comment.