Skip to content

Commit

Permalink
Version bump -> version.py
Browse files Browse the repository at this point in the history
  • Loading branch information
poggenpower committed Sep 4, 2021
1 parent 25b29fc commit 9d5d213
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ LABEL org.opencontainers.image.source=https://github.com/fhemberger/mqtt_exporte
WORKDIR /usr/src/app

RUN adduser --system --no-create-home --shell /usr/sbin/nologin mqtt_exporter
COPY mqtt_exporter.py requirements-frozen.txt ./
COPY *.py requirements-frozen.txt ./
COPY utils ./utils
RUN pip install --no-cache-dir -r requirements-frozen.txt

Expand Down
3 changes: 2 additions & 1 deletion mqtt_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
import sys
from yamlreader import yaml_load
import utils.prometheus_additions
import version

VERSION = '1.2.4'
VERSION = version.__version__
SUFFIXES_PER_TYPE = {
"gauge": [''], # add at least an empty suffix
"counter": ['total'],
Expand Down
4 changes: 4 additions & 0 deletions version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"""
Version of the whole project.
"""
__version__ = "1.3.0"

0 comments on commit 9d5d213

Please sign in to comment.