From 7cec82787a558e94ab2a7c3aa7635a1240dff8f9 Mon Sep 17 00:00:00 2001 From: ejolly Date: Fri, 8 Sep 2023 00:07:24 -0400 Subject: [PATCH] add commit hash to conda name --- .gitignore | 3 ++- conda/meta.yaml | 15 ++++----------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/.gitignore b/.gitignore index f174023..aff1009 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,7 @@ *.DS_Store *.ipynb_checkpoints *.pyc -build/* +build/ docs/_build/ docs/modules/ .cache/* @@ -26,3 +26,4 @@ conda/build_main/* environment.yml *.pickle *.joblib +conda_noarch diff --git a/conda/meta.yaml b/conda/meta.yaml index c8c164c..6bb0f8b 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -11,16 +11,12 @@ source: build: script: pip install . -vv --no-deps - # abandoned conda build GIT_BUILD_STRING env variable - string: py{{environ.get("CONDA_PY", "XX")}}{{environ.get("GIT_ABBREV_COMMIT", "no_git_abbrev_commit") }}_{{ environ.get("PKG_BUILDNUM", "no_pkg_buildnum") }} + string: py{{environ.get("CONDA_PY", "XX")}}{{environ.get("GIT_DESCRIBE_HASH", "no_git_abbrev_commit") }}_{{ environ.get("PKG_BUILDNUM", "no_pkg_buildnum") }} requirements: host: - python {{ python }} - # - r-base - # - r-lmerTest - # - r-base - pip - numpy >=1.20 @@ -37,9 +33,6 @@ requirements: - joblib - scipy - scikit-learn - # {% for req in data.get('install_requires', []) %} - # - {{ req }} - # {% endfor %} test: imports: @@ -58,6 +51,6 @@ about: doc_url: dev_url: -# extra: -# recipe-maintainers: -# - your-github-id-here +extra: + recipe-maintainers: + - ejolly