Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #23 from haasad/automate-version-number
Browse files Browse the repository at this point in the history
Get version from git tag env variable used during build
  • Loading branch information
haasad authored Feb 19, 2022
2 parents 73c7a35 + 1b4919b commit 0cd4289
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
12 changes: 5 additions & 7 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
{% set name = "eidl" %}
{% set version = "1.4.0" %}

package:
name: {{ name|lower }}
version: {{ version }}
name: eidl
version: "{{ GIT_DESCRIBE_TAG }}"

source:
path: ..
git_url: https://github.com/haasad/EcoInventDownLoader.git
git_rev: master

build:
noarch: python
Expand All @@ -30,7 +28,7 @@ requirements:

test:
imports:
- {{ name }}
- eidl

about:
home: https://github.com/haasad/EcoInventDownLoader
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import os
from setuptools import setup

setup(
name='eidl',
packages=['eidl'],
version='1.4.0',
version=os.environ.get('GIT_DESCRIBE_TAG', '0.0.0'),
author="Adrian Haas",
url="https://github.com/haasad/EcoInventDownLoader",
license=open('LICENSE').read(),
Expand Down

0 comments on commit 0cd4289

Please sign in to comment.