From 8946121e8aa5fd16970f78e81722014b18fc0d9e Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 14 Sep 2024 13:19:35 -0500 Subject: [PATCH 1/3] fix: update project links, kallithea -> forgejo --- pyproject.toml | 4 ++-- rattail_demo/web/menus.py | 2 +- rattail_demo/web/views/upgrades.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 917b3ac..6800ec4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,8 +51,8 @@ rattail-demo = "rattail_demo.config:DemoConfigExtension" [project.urls] Homepage = "https://demo.rattailproject.org" -Repository = "https://kallithea.rattailproject.org/rattail-project/rattail-demo" -Changelog = "https://kallithea.rattailproject.org/rattail-project/rattail-demo/files/master/CHANGELOG.md" +Repository = "https://forgejo.wuttaproject.org/rattail/rattail-demo" +Changelog = "https://forgejo.wuttaproject.org/rattail/rattail-demo/src/branch/master/CHANGELOG.md" [tool.commitizen] diff --git a/rattail_demo/web/menus.py b/rattail_demo/web/menus.py index 9dcf5fa..2927157 100644 --- a/rattail_demo/web/menus.py +++ b/rattail_demo/web/menus.py @@ -62,7 +62,7 @@ class DemoMenuHandler(base.TailboneMenuHandler): }, { 'title': "Source Code", - 'url': 'https://kallithea.rattailproject.org/rattail-project/rattail-demo', + 'url': 'https://forgejo.wuttaproject.org/rattail/rattail-demo', 'target': '_blank', }, { diff --git a/rattail_demo/web/views/upgrades.py b/rattail_demo/web/views/upgrades.py index 8035303..af722f4 100644 --- a/rattail_demo/web/views/upgrades.py +++ b/rattail_demo/web/views/upgrades.py @@ -15,8 +15,8 @@ class UpgradeView(base.UpgradeView): projects.update({ 'rattail_demo': { - 'commit_url': 'https://kallithea.rattailproject.org/rattail-project/rattail-demo/changelog/{new_version}/?size=10', - 'release_url': 'https://kallithea.rattailproject.org/rattail-project/rattail-demo/files/{new_version}/CHANGES.rst', + 'commit_url': 'https://forgejo.wuttaproject.org/rattail/rattail-demo/compare/{{old_version}}...{{new_version}}', + 'release_url': 'https://forgejo.wuttaproject.org/rattail/rattail-demo/src/tag/v{{new_version}}/CHANGELOG.md', }, }) From 86abdea9d7a94486268fa2d4be35866212e81388 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sun, 24 Nov 2024 10:33:08 -0600 Subject: [PATCH 2/3] =?UTF-8?q?bump:=20version=200.2.3=20=E2=86=92=200.2.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 11 +++++++++++ pyproject.toml | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f2feb0c..78f5e5d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,17 @@ All notable changes to rattail will be documented in this file. 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). +## v0.2.4 (2024-11-24) + +### Fix + +- update project links, kallithea -> forgejo +- avoid deprecated base class for config extension +- just use upstream `main()` for webapi +- update menu config per wuttaweb +- update config for default app model +- remove unused alembic script + ## v0.2.3 (2024-07-01) ### Fix diff --git a/pyproject.toml b/pyproject.toml index 6800ec4..dbc3511 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" [project] name = "rattail-demo" -version = "0.2.3" +version = "0.2.4" description = "Rattail Software Demo" readme = "README.md" authors = [{name = "Lance Edgar", email = "lance@edbob.org"}] From 87d84f005af0511863d896a501172993f426afba Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sun, 24 Nov 2024 10:35:20 -0600 Subject: [PATCH 3/3] build: add release task --- tasks.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tasks.py diff --git a/tasks.py b/tasks.py new file mode 100644 index 0000000..d296ec9 --- /dev/null +++ b/tasks.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8; -*- +""" +Tasks for rattail-demo +""" + +import os +import shutil + +from invoke import task + + +@task +def release(c): + """ + Release a new version of 'rattail-demo' + """ + if os.path.exists('dist'): + shutil.rmtree('dist') + if os.path.exists('rattail_demo.egg-info'): + shutil.rmtree('rattail_demo.egg-info') + + c.run('python -m build --sdist') + c.run('twine upload dist/*')