Compare commits
6 commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
f56cb41e69 | ||
![]() |
07dda66bae | ||
![]() |
949c9ee5a1 | ||
![]() |
fa4cb5dc9a | ||
![]() |
7fe5e9aea6 | ||
![]() |
8021ac818e |
12
CHANGELOG.md
12
CHANGELOG.md
|
@ -5,6 +5,18 @@ All notable changes to rattail-tempmon will be documented in this file.
|
||||||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
||||||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## v0.4.6 (2024-08-19)
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
- avoid deprecated base class for config extension
|
||||||
|
|
||||||
|
## v0.4.5 (2024-07-02)
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
- fix signature for calls to `get_engines()`
|
||||||
|
|
||||||
## v0.4.4 (2024-07-02)
|
## v0.4.4 (2024-07-02)
|
||||||
|
|
||||||
### Fix
|
### Fix
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
|
|
||||||
rattail-tempmon
|
# rattail-tempmon
|
||||||
===============
|
|
||||||
|
|
||||||
Rattail is a retail software framework, released under the GNU General Public
|
Rattail is a retail software framework, released under the GNU General Public
|
||||||
License.
|
License.
|
||||||
|
@ -8,6 +7,5 @@ License.
|
||||||
This is the ``rattail-tempmon`` package, which provides a database schema, and
|
This is the ``rattail-tempmon`` package, which provides a database schema, and
|
||||||
client/server daemons for recording and processing temperature data.
|
client/server daemons for recording and processing temperature data.
|
||||||
|
|
||||||
Please see Rattail's `home page`_ for more information.
|
Please see Rattail's [home page](https://rattailproject.org/) for more
|
||||||
|
information.
|
||||||
.. _home page: https://rattailproject.org/
|
|
|
@ -6,9 +6,9 @@ build-backend = "hatchling.build"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "rattail-tempmon"
|
name = "rattail-tempmon"
|
||||||
version = "0.4.4"
|
version = "0.4.6"
|
||||||
description = "Retail Software Framework - Temperature monitoring add-on"
|
description = "Retail Software Framework - Temperature monitoring add-on"
|
||||||
readme = "README.rst"
|
readme = "README.md"
|
||||||
authors = [{name = "Lance Edgar", email = "lance@edbob.org"}]
|
authors = [{name = "Lance Edgar", email = "lance@edbob.org"}]
|
||||||
license = {text = "GNU GPL v3+"}
|
license = {text = "GNU GPL v3+"}
|
||||||
classifiers = [
|
classifiers = [
|
||||||
|
@ -30,8 +30,8 @@ dependencies = [
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
Homepage = "https://rattailproject.org"
|
Homepage = "https://rattailproject.org"
|
||||||
Repository = "https://kallithea.rattailproject.org/rattail-project/rattail-tempmon"
|
Repository = "https://forgejo.wuttaproject.org/rattail/rattail-tempmon"
|
||||||
Changelog = "https://kallithea.rattailproject.org/rattail-project/rattail-tempmon/files/master/CHANGES.rst"
|
Changelog = "https://forgejo.wuttaproject.org/rattail/rattail-tempmon/src/branch/master/CHANGELOG.md"
|
||||||
|
|
||||||
|
|
||||||
[project.entry-points."rattail.config.extensions"]
|
[project.entry-points."rattail.config.extensions"]
|
||||||
|
|
|
@ -25,12 +25,12 @@ Tempmon config extension
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from wuttjamaican.db import get_engines
|
from wuttjamaican.db import get_engines
|
||||||
|
from wuttjamaican.conf import WuttaConfigExtension
|
||||||
|
|
||||||
from rattail.config import ConfigExtension
|
|
||||||
from rattail_tempmon.db import Session
|
from rattail_tempmon.db import Session
|
||||||
|
|
||||||
|
|
||||||
class TempmonConfigExtension(ConfigExtension):
|
class TempmonConfigExtension(WuttaConfigExtension):
|
||||||
"""
|
"""
|
||||||
Config extension for tempmon; adds tempmon DB engine/Session etc. Expects
|
Config extension for tempmon; adds tempmon DB engine/Session etc. Expects
|
||||||
something like this in your config:
|
something like this in your config:
|
||||||
|
@ -52,10 +52,10 @@ class TempmonConfigExtension(ConfigExtension):
|
||||||
def configure(self, config):
|
def configure(self, config):
|
||||||
|
|
||||||
# tempmon
|
# tempmon
|
||||||
config.tempmon_engines = get_engines(config, section='rattail_tempmon.db')
|
config.tempmon_engines = get_engines(config, 'rattail_tempmon.db')
|
||||||
config.tempmon_engine = config.tempmon_engines.get('default')
|
config.tempmon_engine = config.tempmon_engines.get('default')
|
||||||
Session.configure(bind=config.tempmon_engine)
|
Session.configure(bind=config.tempmon_engine)
|
||||||
|
|
||||||
# hotcooler
|
# hotcooler
|
||||||
config.hotcooler_engines = get_engines(config, section='hotcooler.db')
|
config.hotcooler_engines = get_engines(config, 'hotcooler.db')
|
||||||
config.hotcooler_engine = config.hotcooler_engines.get('default')
|
config.hotcooler_engine = config.hotcooler_engines.get('default')
|
||||||
|
|
Loading…
Reference in a new issue