Compare commits

...

4 commits

Author SHA1 Message Date
Lance Edgar 5a6c89589e docs: update project links, kallithea -> forgejo 2024-09-14 12:10:25 -05:00
Lance Edgar 785b32c5f0 bump: version 0.3.3 → 0.3.4 2024-08-19 12:03:21 -05:00
Lance Edgar d1d181bb43 fix: avoid deprecated method in app provider 2024-08-19 09:55:54 -05:00
Lance Edgar 253791134a fix: avoid deprecated base class for config extension 2024-08-19 09:42:17 -05:00
4 changed files with 17 additions and 10 deletions

View file

@ -5,6 +5,13 @@ All notable changes to rattail-nationbuilder 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.3.4 (2024-08-19)
### Fix
- avoid deprecated method in app provider
- avoid deprecated base class for config extension
## v0.3.3 (2024-08-19) ## v0.3.3 (2024-08-19)
### Fix ### Fix

View file

@ -6,7 +6,7 @@ build-backend = "hatchling.build"
[project] [project]
name = "rattail-nationbuilder" name = "rattail-nationbuilder"
version = "0.3.3" version = "0.3.4"
description = "Rattail integration package for NationBuilder" description = "Rattail integration package for NationBuilder"
readme = "README.md" readme = "README.md"
authors = [{name = "Lance Edgar", email = "lance@edbob.org"}] authors = [{name = "Lance Edgar", email = "lance@edbob.org"}]
@ -45,8 +45,8 @@ rattail_nationbuilder = "rattail_nationbuilder.app:NationBuilderProvider"
[project.urls] [project.urls]
Homepage = "https://rattailproject.org" Homepage = "https://rattailproject.org"
Repository = "https://kallithea.rattailproject.org/rattail-project/rattail-nationbuilder" Repository = "https://forgejo.wuttaproject.org/rattail/rattail-nationbuilder"
Changelog = "https://kallithea.rattailproject.org/rattail-project/rattail-nationbuilder/files/master/CHANGELOG.md" Changelog = "https://forgejo.wuttaproject.org/rattail/rattail-nationbuilder/src/branch/master/CHANGELOG.md"
[tool.commitizen] [tool.commitizen]

View file

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# #
# Rattail -- Retail Software Framework # Rattail -- Retail Software Framework
# Copyright © 2010-2023 Lance Edgar # Copyright © 2010-2024 Lance Edgar
# #
# This file is part of Rattail. # This file is part of Rattail.
# #
@ -36,7 +36,7 @@ class NationBuilderProvider(RattailProvider):
if 'nationbuilder' not in self.handlers: if 'nationbuilder' not in self.handlers:
spec = self.config.get('rattail', 'nationbuilder.handler', spec = self.config.get('rattail', 'nationbuilder.handler',
default='rattail_nationbuilder.app:NationBuilderHandler') default='rattail_nationbuilder.app:NationBuilderHandler')
factory = self.load_object(spec) factory = self.app.load_object(spec)
self.handlers['nationbuilder'] = factory(self.config, **kwargs) self.handlers['nationbuilder'] = factory(self.config, **kwargs)
return self.handlers['nationbuilder'] return self.handlers['nationbuilder']

View file

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# #
# Rattail -- Retail Software Framework # Rattail -- Retail Software Framework
# Copyright © 2010-2023 Lance Edgar # Copyright © 2010-2024 Lance Edgar
# #
# This file is part of Rattail. # This file is part of Rattail.
# #
@ -24,10 +24,10 @@
Config Extension Config Extension
""" """
from rattail.config import ConfigExtension from wuttjamaican.conf import WuttaConfigExtension
class RattailNationBuilderExtension(ConfigExtension): class RattailNationBuilderExtension(WuttaConfigExtension):
""" """
Config extension for rattail-nationbuilder Config extension for rattail-nationbuilder
""" """
@ -36,7 +36,7 @@ class RattailNationBuilderExtension(ConfigExtension):
def configure(self, config): def configure(self, config):
# rattail import-nationbuilder # rattail import-nationbuilder
config.setdefault('rattail.importing', 'to_rattail.from_nationbulder.import.default_handler', config.setdefault('rattail.importing.to_rattail.from_nationbulder.import.default_handler',
'rattail_nationbuilder.importing.nationbuilder:FromNationBuilderToRattail') 'rattail_nationbuilder.importing.nationbuilder:FromNationBuilderToRattail')
config.setdefault('rattail.importing', 'to_rattail.from_nationbuilder.import.default_cmd', config.setdefault('rattail.importing.to_rattail.from_nationbuilder.import.default_cmd',
'rattail import-nationbuilder') 'rattail import-nationbuilder')