Skip to content

Commit

Permalink
461: change version file
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Sharples committed Sep 20, 2024
1 parent a6a6759 commit 5fa8972
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/jobs/configure_sonarqube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if [ -z ${SONAR_TOKEN+x} ]; then
fi

# Define the version string
SONAR_PROJECT_VERSION=$(cat docs/version | cut -d'=' -f2 | tr -d '" ')
SONAR_PROJECT_VERSION=$(cat metplotpy/_version.py | cut -d'=' -f2 | tr -d '" ')

#
# Define the $SONAR_REFERENCE_BRANCH as the
Expand Down
2 changes: 1 addition & 1 deletion internal/scripts/sonarqube/run_sonarqube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ run_command "cd ${REPO_DIR}"
run_command "git checkout ${1}"

# Define the version string
SONAR_PROJECT_VERSION=$(cat docs/version | cut -d'=' -f2 | tr -d '" ')
SONAR_PROJECT_VERSION=$(cat metplotpy/_version.py | cut -d'=' -f2 | tr -d '" ')

SONAR_PROPERTIES=sonar-project.properties

Expand Down
8 changes: 1 addition & 7 deletions metplotpy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
from distutils.util import convert_path

main_ns = {}
version_path = convert_path('docs/version')
with open(version_path) as version_file:
exec(version_file.read(), main_ns)
__version__ = main_ns['__version__']
from ._version import __version__
File renamed without changes.

0 comments on commit 5fa8972

Please sign in to comment.