File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[ ![ Sourcecode on GitHub] ( https://img.shields.io/badge/Paebbels-pyVersioning-323131.svg?logo=github&longCache=true )] ( https://github.com/Paebbels/pyVersioning )
22[ ![ Sourcecode License] ( https://img.shields.io/pypi/l/pyVersioning?longCache=true&style=flat-square&logo=Apache&label=code )] ( LICENSE.md )
3- [ ![ Documentation] ( https://img.shields.io/website?longCache=true&style=flat-square&label=Paebbels.github.io%2FpyVersioning&logo=GitHub&logoColor=fff&up_color=blueviolet&up_message=Read%20now%20%E2%9E%9A&url=https%3A%2F%2FPaebbels.github.io%2Fsphinx%2Dreports %2Findex.html )] ( https://Paebbels.github.io/pyVersioning/ )
3+ [ ![ Documentation] ( https://img.shields.io/website?longCache=true&style=flat-square&label=Paebbels.github.io%2FpyVersioning&logo=GitHub&logoColor=fff&up_color=blueviolet&up_message=Read%20now%20%E2%9E%9A&url=https%3A%2F%2FPaebbels.github.io%2FpyVersioning %2Findex.html )] ( https://Paebbels.github.io/pyVersioning/ )
44[ ![ Documentation License] ( https://img.shields.io/badge/doc-CC--BY%204.0-green?longCache=true&style=flat-square&logo=CreativeCommons&logoColor=fff )] ( LICENSE.md )
55[ ![ PyPI] ( https://img.shields.io/pypi/v/pyVersioning?longCache=true&style=flat-square&logo=PyPI&logoColor=FBE072 )] ( https://pypi.org/project/pyVersioning/ )
66![ PyPI - Status] ( https://img.shields.io/pypi/status/pyVersioning?longCache=true&style=flat-square&logo=PyPI&logoColor=FBE072 )
2020# pyVersioning
2121
2222The Python package ` pyVersioning ` offers a template tool to write version information for any programming language as a
23- source file that can be included into the normal build flow.
23+ source file that can be included into the normal application build flow.
2424
2525The main idea is to provide a unified tool to collect all necessary version information from a configuration file, user
2626defined parameters, version control systems (e.g. Git) or environment variables. Especially the latter ones can be
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ pyVersioning Documentation
3636##########################
3737
3838The Python package ``pyVersioning `` offers a template tool to write version information for any programming language as
39- a source file that can be included into the normal build flow.
39+ a source file that can be included into the normal application build flow.
4040
4141The main idea is to provide a unified tool to collect all necessary version information from a configuration file, user
4242defined parameters, version control systems (e.g. Git) or environment variables. Especially the latter ones can be
Original file line number Diff line number Diff line change 150150 :target: https://GitHub.com/Paebbels/pyVersioning/blob/main/doc/License.rst
151151
152152.. # GHPages - read now
153- .. |SHIELD:svg:pyVersioning-ghp-doc| image:: https://img.shields.io/website?longCache=true&style=flat-square&label=Paebbels.github.io%2Fsphinx%2Dreports &logo=GitHub&logoColor=fff&up_color=blueviolet&up_message=Read%20now%20%E2%9E%9A&url=https%3A%2F%2FPaebbels.github.io%2Fsphinx%2Dreports %2Findex.html
153+ .. |SHIELD:svg:pyVersioning-ghp-doc| image:: https://img.shields.io/website?longCache=true&style=flat-square&label=Paebbels.github.io%2FpyVersioning &logo=GitHub&logoColor=fff&up_color=blueviolet&up_message=Read%20now%20%E2%9E%9A&url=https%3A%2F%2FPaebbels.github.io%2FpyVersioning %2Findex.html
154154 :alt: Documentation - Read Now!
155155 :height: 22
156156 :target: https://Paebbels.github.io/pyVersioning/
157- .. |SHIELD:png:pyVersioning-ghp-doc| image:: https://raster.shields.io/website?longCache=true&style=flat-square&label=Paebbels.github.io%2Fsphinx%2Dreports &logo=GitHub&logoColor=fff&up_color=blueviolet&up_message=Read%20now%20%E2%9E%9A&url=https%3A%2F%2FPaebbels.github.io%2Fsphinx%2Dreports %2Findex.html
157+ .. |SHIELD:png:pyVersioning-ghp-doc| image:: https://raster.shields.io/website?longCache=true&style=flat-square&label=Paebbels.github.io%2FpyVersioning &logo=GitHub&logoColor=fff&up_color=blueviolet&up_message=Read%20now%20%E2%9E%9A&url=https%3A%2F%2FPaebbels.github.io%2FpyVersioning %2Findex.html
158158 :alt: Documentation - Read Now!
159159 :height: 22
160160 :target: https://Paebbels.github.io/pyVersioning/
Original file line number Diff line number Diff line change @@ -4,14 +4,30 @@ exampleName="$1"
44
55cd ${exampleName} || exit 1
66
7+ check () {
8+ printf " $1 "
9+ ./example | grep -E " $2 " > /dev/null
10+ if [[ $? -eq 0 ]]; then
11+ printf " [OK]\n"
12+ else
13+ printf " [MISMATCH]\n"
14+ fi
15+ }
16+
717case " ${exampleName} " in
818 C)
919 ./example
10- ./example | grep version
20+
21+ check " Check for version string ... " " ^Version:\w+v2\.1\.6"
22+ check " Check Git SHA ... " " ${GITHUB_SHA} "
23+ check " Check Git repository ... " " ${GITHUB_REPOSITORY} "
1124 ;;
1225 CXX)
1326 ./example
14- ./example | grep version
27+
28+ check " Check for version string ... " " ^Version:\w+v2\.1\.6"
29+ check " Check Git SHA ... " " ${GITHUB_SHA} "
30+ check " Check Git repository ... " " ${GITHUB_REPOSITORY} "
1531 ;;
1632 * )
1733 printf " Unknown example '%s'\n" " ${exampleName} "
You can’t perform that action at this time.
0 commit comments