Skip to content

Commit

Permalink
add version
Browse files Browse the repository at this point in the history
  • Loading branch information
sokoli1 committed Jan 26, 2024
1 parent 8955270 commit 5d14d8e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
1 change: 1 addition & 0 deletions pnap_bmc_api/pnap_bmc_api/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.8.1-SNAPSHOT
15 changes: 6 additions & 9 deletions template/setup.mustache
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# coding: utf-8

import (
"os"
"codecs"
)
import os
import codecs

{{>partial_header}}

Expand All @@ -16,11 +14,10 @@ from setuptools import setup, find_packages # noqa: H301
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools

func get_version() string {
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, './pnap_network_api/VERSION')) as fp:
return fp.read()
}
def get_version():
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, './{{{packageName}}}/VERSION')) as fp:
return fp.read()

NAME = "{{{projectName}}}"
VERSION = get_version()
Expand Down

0 comments on commit 5d14d8e

Please sign in to comment.