diff --git a/recipes/turbo_turtle/bld.bat b/recipes/turbo_turtle/bld.bat new file mode 100644 index 0000000000000..d8d7c3f605b96 --- /dev/null +++ b/recipes/turbo_turtle/bld.bat @@ -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 diff --git a/recipes/turbo_turtle/build.sh b/recipes/turbo_turtle/build.sh new file mode 100644 index 0000000000000..6d8b3cac1b657 --- /dev/null +++ b/recipes/turbo_turtle/build.sh @@ -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 diff --git a/recipes/turbo_turtle/meta.yaml b/recipes/turbo_turtle/meta.yaml new file mode 100644 index 0000000000000..f9b376d743dcb --- /dev/null +++ b/recipes/turbo_turtle/meta.yaml @@ -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 diff --git a/recipes/turbo_turtle/run_test.bat b/recipes/turbo_turtle/run_test.bat new file mode 100644 index 0000000000000..a18737734daed --- /dev/null +++ b/recipes/turbo_turtle/run_test.bat @@ -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 diff --git a/recipes/turbo_turtle/run_test.sh b/recipes/turbo_turtle/run_test.sh new file mode 100644 index 0000000000000..6b2fdcea24ef6 --- /dev/null +++ b/recipes/turbo_turtle/run_test.sh @@ -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