Skip to content

Commit

Permalink
Merge branch 'release/4.0.1' into develop
Browse files Browse the repository at this point in the history
* release/4.0.1:
  Prepare release 4.0.1 and add debug logging to CLI
  Bump version: 4.0.1rc1 → 4.0.1
  Bump version: 4.0.0 → 4.0.1rc1
  • Loading branch information
javipalanca committed Dec 26, 2024
2 parents 16cd2dd + df0e9d1 commit 5d3a815
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 4 deletions.
9 changes: 9 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ History
=======


4.0.1 (2024-12-26)
--------------------

* Fixed minor bugs.
* Agents are now stopped when Ctrl+C is pressed.
* Added --debug flag to the CLI.
* Updated documentation config file.
* Lint examples.

4.0.0 (2024-12-19)
--------------------

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 4.0.0
current_version = 4.0.1
commit = True
tag = False
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)((?P<release>[a-z]+)(?P<rc>\d+))?
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def parse_requirements(filename):

setup(
name='spade',
version='4.0.0',
version='4.0.1',
description="Smart Python Agent Development Environment",
long_description=readme + '\n\n' + history,
author="Javi Palanca",
Expand Down
2 changes: 1 addition & 1 deletion spade/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

__author__ = """Javi Palanca"""
__email__ = "[email protected]"
__version__ = "4.0.0"
__version__ = "4.0.1"

__all__ = ["agent", "behaviour", "message", "template"]

Expand Down
14 changes: 14 additions & 0 deletions spade/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from pyjabber.server import Server
from rich.console import Console
from rich.panel import Panel
from loguru import logger


def check_port_in_use(port, host="0.0.0.0"):
Expand Down Expand Up @@ -47,6 +48,19 @@ def run(host, client_port, server_port, debug, db, purge):
click.echo(f"Error: The port {server_port} is already in use.")
sys.exit(1)

logger.remove()
if debug:
level="DEBUG"
else:
level="INFO"

logger.add(
sys.stderr,
enqueue=True,
format="<green>{time:YYYY-MM-DD HH:mm:ss.SSS}</green> - <level>{level}: {message}</level>",
level=level,
)

server = Server(
host=host,
client_port=client_port,
Expand Down
2 changes: 1 addition & 1 deletion spade/templates/internal_tpl_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ <h3 class="box-title">Agent Friends</h3>

<footer class="main-footer">
<div class="pull-right hidden-xs">
<b>Version</b> 4.0.0
<b>Version</b> 4.0.1
</div>
<strong>Copyright © {% now 'local', '%Y' %} <a href="http://github.com/javipalanca/spade">SPADE</a>.</strong>
</footer>
Expand Down

0 comments on commit 5d3a815

Please sign in to comment.