Skip to content
Snippets Groups Projects
Commit 00b0e11c authored by Rufai Omowunmi Balogun's avatar Rufai Omowunmi Balogun
Browse files

update sem version from git tag

parent 89dcc445
No related branches found
No related tags found
1 merge request!19update semantic version from most recent git tags
Pipeline #43859 failed
...@@ -10,6 +10,10 @@ before_script: ...@@ -10,6 +10,10 @@ before_script:
build_package: build_package:
stage: package_build stage: package_build
before_script:
- CURRENT_VERSION = $(git describe --tags --abbrev=0)
- sed -i "s/SEMANTIC_VERSION/$CURRENT_VERSION/" ${CI_PROJECT_DIR}/pyproject.toml
- sed -i "s/SEMANTIC_VERSION/$CURRENT_VERSION/" ${CI_PROJECT_DIR}/raster2stac/_version.py
script: script:
- python3 -m pip install --upgrade setuptools>=61.0 - python3 -m pip install --upgrade setuptools>=61.0
- python3 -m pip install --upgrade build - python3 -m pip install --upgrade build
......
...@@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta" ...@@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta"
[project] [project]
name = "raster2stac" name = "raster2stac"
version = "0.0.3" version = "SEMANTIC_VERSION"
authors = [ authors = [
{ name="Michele Claus", email="michele.claus@eurac.edu" }, { name="Michele Claus", email="michele.claus@eurac.edu" },
] ]
......
__version__ = "0.0.4" __version__ = "SEMANTIC_VERSION"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment