Skip to content

Commit

Permalink
change version from tuple to string, update version using bumpversion…
Browse files Browse the repository at this point in the history
… ext
  • Loading branch information
Jason R Briggs committed Mar 11, 2023
1 parent 47fa67c commit acea1bb
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ docs:
cd docs && make html


updateversion:
sed -i "s/__version__\s*=.*/__version__ = \($(VERSION)\)/g" stomp/__init__.py


install: updateversion test
poetry update
poetry build
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
# built documents.
#
# The short X.Y version.
version = '.'.join(map(str, stomp.__version__))
version = stomp.__version__
# The full version, including alpha/beta/rc tags.
release = version + ''

Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "stomp.py"
version = "8.1.0"
version = "8.1.1"
description = "Python STOMP client, supporting versions 1.0, 1.1 and 1.2 of the protocol"
authors = ["Jason R Briggs <jasonrbriggs@gmail.com>"]
license = "Apache-2.0"
Expand Down Expand Up @@ -33,6 +33,8 @@ pytest-ordering = ">=0.6"
[tool.poetry.scripts]
stomp = "stomp.__main__:main"

[tool.poetry_bumpversion.file."stomp/__init__.py"]

[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
2 changes: 1 addition & 1 deletion stomp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import stomp.listener as listener
import stomp.logging as logging

__version__ = (8, 1, 0)
__version__ = "8.1.1"

##
# Alias for STOMP 1.0 connections.
Expand Down
4 changes: 1 addition & 3 deletions stomp/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@
sys.path.append(".")
import stomp

version_string = "%s.%s.%s" % stomp.__version__

heartbeat_pattern = re.compile(r"[0-9]+,[0-9]+")


Expand Down Expand Up @@ -370,7 +368,7 @@ def help_sendfile(self):

def do_version(self, args):
self.__sysout("%s%s [Protocol version %s]%s" %
(stomp.colours.BOLD, version_string, self.conn.version, stomp.colours.NO_COLOUR))
(stomp.colours.BOLD, stomp.version, self.conn.version, stomp.colours.NO_COLOUR))
do_ver = do_version

def help_version(self):
Expand Down

0 comments on commit acea1bb

Please sign in to comment.