Skip to content

Commit

Permalink
test function in mustache
Browse files Browse the repository at this point in the history
  • Loading branch information
sokoli1 committed Jan 26, 2024
1 parent 1ee5aec commit a9bd508
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion template/setup.mustache
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# coding: utf-8

import (
"os"
"codecs"
)

{{>partial_header}}

from setuptools import setup, find_packages # noqa: H301
Expand All @@ -10,8 +15,15 @@ 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()
}

NAME = "{{{projectName}}}"
VERSION = "{{{packageVersionTest}}}"
VERSION = get_version()

PYTHON_REQUIRES = ">=3.7"
{{#apiInfo}}
Expand Down

0 comments on commit a9bd508

Please sign in to comment.