Skip to content

Commit

Permalink
made meta.yaml with version depend on git tag
Browse files Browse the repository at this point in the history
  • Loading branch information
yamrom committed Oct 5, 2021
1 parent 26ae664 commit 1b2f546
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions conda.recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,25 @@
package:
name: snakeobjects

version: {{ data['version'] }}
#version: {{ data['version'] }}
version: {{ GIT_DESCRIBE_TAG }}

source:
path: ..

build:
# If the installation is complex, or different between Unix and Windows, use
# separate bld.bat and build.sh files instead of this key. Add the line
# "skip: True # [py<35]" (for example) to limit to Python 3.5 and newer, or
# "skip: True # [not win]" to limit to Windows.
script: {{ PYTHON }} -m pip install --no-deps --ignore-installed -vv .
noarch: python

entry_points:
{% for entry in data['entry_points']['console_scripts'] %}
- {{ entry.split('=')[0].strip() }} = {{ entry.split('=')[1].strip() }}
{% endfor %}
- sobjects = snakeobjects.cli:cli
#entry_points:
# {% for entry in data['entry_points']['console_scripts'] %}
# - {{ entry.split('=')[0].strip() }} = {{ entry.split('=')[1].strip() }}
# {% endfor %}


requirements:
# if you need compilers, uncomment these
# read more at https://docs.conda.io/projects/conda-build/en/latest/resources/compiler-tools.html
# build:
# - {{ compilers('c') }}
host:
- python
- pip
Expand Down

0 comments on commit 1b2f546

Please sign in to comment.