File tree Expand file tree Collapse file tree 10 files changed +38
-26
lines changed Expand file tree Collapse file tree 10 files changed +38
-26
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 61
61
- name : Setup project
62
62
run : |
63
63
# Install package in editable mode.
64
- pip install wheel
64
+ pip install versioningit wheel
65
65
pip install --editable=.[test,develop]
66
66
67
67
- name : Check code style
Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ in progress
7
7
===========
8
8
9
9
- Modernize Docker configuration, now using Debian bullseye and Python 3.11.
10
+ - Improve nightly and on-PR Docker builds.
11
+ - Add versioning based on Git tags, using ``versioningit ``. This will aid in
12
+ telling PR- and nightly releases apart from GA releases when running
13
+ ``mqttwarn --version ``.
10
14
11
15
12
16
2022-11-21 0.31.0
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ RUN chown -R mqttwarn:mqttwarn /etc/mqttwarn
17
17
18
18
# Install mqttwarn
19
19
COPY . /src
20
- RUN pip install wheel
20
+ RUN pip install versioningit wheel
21
21
RUN pip install /src
22
22
23
23
# Make process run as "mqttwarn" user
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ RUN chown -R mqttwarn:mqttwarn /etc/mqttwarn
21
21
22
22
# Install mqttwarn
23
23
COPY . /src
24
- RUN pip install wheel
24
+ RUN pip install versioningit wheel
25
25
RUN pip install /src[all]
26
26
27
27
# Make process run as "mqttwarn" user
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ $(eval venvpath := .venv)
11
11
$(eval pip := $(venvpath)/bin/pip)
12
12
$(eval python := $(venvpath)/bin/python)
13
13
$(eval pytest := $(venvpath)/bin/pytest)
14
- $(eval bumpversion := $(venvpath)/bin/bumpversion )
14
+ $(eval minibump := $(venvpath)/bin/minibump )
15
15
$(eval twine := $(venvpath)/bin/twine)
16
16
$(eval sphinx := $(venvpath)/bin/sphinx-build)
17
17
$(eval isort := $(venvpath)/bin/isort)
@@ -21,6 +21,7 @@ $(eval poe := $(venvpath)/bin/poe)
21
21
# Setup Python virtualenv
22
22
setup-virtualenv :
23
23
@test -e $(python ) || python3 -m venv $(venvpath )
24
+ $(pip ) install versioningit
24
25
25
26
26
27
# -------
@@ -71,7 +72,7 @@ docs-html: install-doctools
71
72
# Utility targets
72
73
# ===============
73
74
bumpversion : install-releasetools
74
- @$(bumpversion ) $(bump )
75
+ @$(minibump ) bump --relax $(bump )
75
76
76
77
push :
77
78
git push && git push --tags
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
- # (c) 2014-2018 The mqttwarn developers
3
-
4
- __version__ = "0.31.0"
2
+ # (c) 2014-2023 The mqttwarn developers
5
3
6
4
__author__ = "Jan-Piet Mens <jpmens()gmail.com>, Ben Jones <ben.jones12()gmail.com>"
7
5
__copyright__ = "Copyright 2014-2022 Jan-Piet Mens"
8
6
__license__ = "Eclipse Public License - v 2.0 (http://www.eclipse.org/legal/epl-2.0/)"
7
+
8
+ try :
9
+ from importlib .metadata import version
10
+ except ImportError :
11
+ from importlib_metadata import version
12
+
13
+ __version__ = version ("mqttwarn" )
Original file line number Diff line number Diff line change
1
+ # ==================
2
+ # Build system setup
3
+ # ==================
4
+
5
+ [build-system ]
6
+ requires = [
7
+ " setuptools>=42" , # At least v42 of setuptools required!
8
+ " versioningit" ,
9
+ ]
10
+ build-backend = " setuptools.build_meta"
11
+
12
+
13
+ [tool .versioningit ]
14
+
15
+
1
16
# =========================
2
17
# Linter and code formatter
3
18
# =========================
Original file line number Diff line number Diff line change 1
- bump2version
1
+ minibump<1; python_version>='3.10'
2
2
twine
3
3
keyring
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
- # (c) 2014-2022 The mqttwarn developers
2
+ # (c) 2014-2023 The mqttwarn developers
3
3
import os
4
4
import platform
5
5
6
6
from setuptools import find_packages , setup
7
+ from versioningit import get_cmdclasses
7
8
8
9
here = os .path .abspath (os .path .dirname (__file__ ))
9
10
README = open (os .path .join (here , "README.rst" )).read ()
16
17
"docopt<1" ,
17
18
"requests<3" ,
18
19
"future>=0.18.0,<1" ,
20
+ "importlib-metadata; python_version<'3.8'" ,
19
21
]
20
22
21
23
extras = {
170
172
171
173
172
174
setup (
175
+ cmdclass = get_cmdclasses (),
173
176
name = "mqttwarn" ,
174
- version = "0.31.0" ,
175
177
description = "mqttwarn - subscribe to MQTT topics and notify pluggable services" ,
176
178
long_description = README ,
177
179
license = "EPL 2.0" ,
You can’t perform that action at this time.
0 commit comments