Skip to content

Commit

Permalink
Update conda package build string and number (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdye64 authored Jan 17, 2025
1 parent 364d546 commit 25047c4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion conda/packages/nv_ingest/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
{% set data = load_setup_py_data() %}
{% set name = data.get('name', 'nv_ingest') | lower %}
{% set version = data.get('version') %}
{% set py_version = environ['CONDA_PY'] %}
{% set date_string = "$(date +%y%m%d)" %}

# Determine Git root, falling back to default path ../../.. if Git is not available or the directory is not a Git repo
{% set git_root = environ.get('GIT_ROOT', '../../..') %}
Expand All @@ -17,7 +19,8 @@ source:
path: {{ git_root }}

build:
number: 0
number: {{ GIT_DESCRIBE_NUMBER }}
string: py{{ py_version }}_{{ date_string }}_{{ GIT_DESCRIBE_HASH }}_{{ GIT_DESCRIBE_NUMBER }}
script:
- {{ PYTHON }} -m pip install . --no-deps -vv

Expand Down
5 changes: 4 additions & 1 deletion conda/packages/nv_ingest_client/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
{% set data = load_setup_py_data() %}
{% set name = data.get('name', 'nv_ingest_client') | lower %}
{% set version = data.get('version') %}
{% set py_version = environ['CONDA_PY'] %}
{% set date_string = "$(date +%y%m%d)" %}

# Determine Git root, falling back to default path ../../.. if Git is not available or the directory is not a Git repo
{% set git_root = environ.get('GIT_ROOT', '../../../client') %}
Expand All @@ -17,7 +19,8 @@ source:
path: {{ git_root }}

build:
number: 0
number: {{ GIT_DESCRIBE_NUMBER }}
string: py{{ py_version }}_{{ date_string }}_{{ GIT_DESCRIBE_HASH }}_{{ GIT_DESCRIBE_NUMBER }}
script:
- {{ PYTHON }} -m pip install ./ --no-deps -vv

Expand Down

0 comments on commit 25047c4

Please sign in to comment.