From 515ccc9f0c0343942e36c180bd790b0b20fbe200 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 13 Sep 2024 18:40:32 -0500 Subject: [PATCH 1/5] docs: use markdown for readme file --- README.md | 11 +++++++++++ README.rst | 14 -------------- pyproject.toml | 2 +- 3 files changed, 12 insertions(+), 15 deletions(-) create mode 100644 README.md delete mode 100644 README.rst diff --git a/README.md b/README.md new file mode 100644 index 0000000..cceb155 --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ + +# rattail-fabric2 + +Rattail is a retail software framework, released under the GNU General Public +License. + +This package contains various utility functions for use with +[Fabric](http://www.fabfile.org/) (v2). + +Please see Rattail's [home page](https://rattailproject.org/) for more +information. diff --git a/README.rst b/README.rst deleted file mode 100644 index e124b61..0000000 --- a/README.rst +++ /dev/null @@ -1,14 +0,0 @@ - -rattail-fabric2 -=============== - -Rattail is a retail software framework, released under the GNU General Public -License. - -This package contains various utility functions for use with `Fabric`_ (v2). - -.. _`Fabric`: http://www.fabfile.org/ - -Please see Rattail's `home page`_ for more information. - -.. _`home page`: https://rattailproject.org/ diff --git a/pyproject.toml b/pyproject.toml index 8cf837a..d89e5ea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ build-backend = "hatchling.build" name = "rattail-fabric2" version = "0.4.3" description = "Fabric (v2) Utilities for Rattail" -readme = "README.rst" +readme = "README.md" authors = [{name = "Lance Edgar", email = "lance@edbob.org"}] license = {text = "GNU GPL v3+"} classifiers = [ From 00b00823023ef02d00b76433e50ac86f4779065a Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 14 Sep 2024 11:51:19 -0500 Subject: [PATCH 2/5] fix: update project source links, kallithea -> forgejo --- pyproject.toml | 4 ++-- rattail_fabric2/backup.py | 2 +- rattail_fabric2/byjove.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d89e5ea..7633f05 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,8 +31,8 @@ dependencies = [ [project.urls] Homepage = "https://rattailproject.org" -Repository = "https://kallithea.rattailproject.org/rattail-project/rattail-fabric2" -Changelog = "https://kallithea.rattailproject.org/rattail-project/rattail-fabric2/files/master/CHANGELOG.md" +Repository = "https://forgejo.wuttaproject.org/rattail/rattail-fabric2" +Changelog = "https://forgejo.wuttaproject.org/rattail/rattail-fabric2/src/branch/master/CHANGELOG.md" [tool.commitizen] diff --git a/rattail_fabric2/backup.py b/rattail_fabric2/backup.py index bb26607..ce64770 100644 --- a/rattail_fabric2/backup.py +++ b/rattail_fabric2/backup.py @@ -103,7 +103,7 @@ def deploy_backup_app(c, deploy, envname, mkvirtualenv=True, user='rattail', # rattail mkdir(c, os.path.join(envpath, 'src'), use_sudo=True, runas_user=user) if not exists(c, os.path.join(envpath, 'src/rattail')): - c.sudo('git clone https://kallithea.rattailproject.org/rattail-project/rattail {}/src/rattail'.format(envpath), user=user) + c.sudo(f'git clone https://forgejo.wuttaproject.org/rattail/rattail.git {envpath}/src/rattail', user=user) c.sudo("bash -c 'PIP_CONFIG_FILE={0}/pip.conf {0}/bin/pip install --editable {0}/src/rattail'".format(envpath), user=user) deploy_generic(c, 'backup/git-exclude', os.path.join(envpath, 'src/rattail/.git/info/exclude'), use_sudo=True, owner=user) diff --git a/rattail_fabric2/byjove.py b/rattail_fabric2/byjove.py index 60af4a6..ef4e814 100644 --- a/rattail_fabric2/byjove.py +++ b/rattail_fabric2/byjove.py @@ -33,7 +33,7 @@ def install_from_source(c, user='rattail'): """ if not exists(c, '/usr/local/src/byjove'): mkdir(c, '/usr/local/src/byjove', use_sudo=True, owner=user) - c.sudo('git clone https://kallithea.rattailproject.org/rattail-project/byjove /usr/local/src/byjove', + c.sudo('git clone https://forgejo.wuttaproject.org/rattail/byjove.git /usr/local/src/byjove', user=user) c.sudo("bash -l -c 'cd /usr/local/src/byjove; npm link'", user=user) From 8bd42362912486bde978cf1dadaec3c09642c791 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 3 Oct 2024 10:36:07 -0500 Subject: [PATCH 3/5] =?UTF-8?q?bump:=20version=200.4.3=20=E2=86=92=200.4.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 6 ++++++ pyproject.toml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ce74204..bab076e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to rattail-fabric2 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.4.4 (2024-10-03) + +### Fix + +- update project source links, kallithea -> forgejo + ## v0.4.3 (2024-08-06) ### Fix diff --git a/pyproject.toml b/pyproject.toml index 7633f05..1138238 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" [project] name = "rattail-fabric2" -version = "0.4.3" +version = "0.4.4" description = "Fabric (v2) Utilities for Rattail" readme = "README.md" authors = [{name = "Lance Edgar", email = "lance@edbob.org"}] From 542875a44c6251ecb36f14d8b5f625f98b41069f Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 18 Dec 2024 19:07:30 -0600 Subject: [PATCH 4/5] fix: purge email settings for wuttjamaican also --- rattail_fabric2/rattail.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rattail_fabric2/rattail.py b/rattail_fabric2/rattail.py index 2c59994..3094cf7 100644 --- a/rattail_fabric2/rattail.py +++ b/rattail_fabric2/rattail.py @@ -108,6 +108,14 @@ def delete_email_recipients(c, dbname): """ Purge all email recipient settings for the given database. """ + # purge new-style for wuttjamaican + postgresql.sql(c, "delete from setting where name like 'rattail.email.%.sender';", database=dbname) + postgresql.sql(c, "delete from setting where name like 'rattail.email.%.to';", database=dbname) + postgresql.sql(c, "delete from setting where name like 'rattail.email.%.cc';", database=dbname) + postgresql.sql(c, "delete from setting where name like 'rattail.email.%.bcc';", database=dbname) + + # purge old-style for rattail + postgresql.sql(c, "delete from setting where name like 'rattail.mail.%.from';", database=dbname) postgresql.sql(c, "delete from setting where name like 'rattail.mail.%.to';", database=dbname) postgresql.sql(c, "delete from setting where name like 'rattail.mail.%.cc';", database=dbname) postgresql.sql(c, "delete from setting where name like 'rattail.mail.%.bcc';", database=dbname) From 8bddce1329bd2849cc1621b19a8a52ee675645b0 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 1 Feb 2025 15:19:59 -0600 Subject: [PATCH 5/5] =?UTF-8?q?bump:=20version=200.4.4=20=E2=86=92=200.4.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 6 ++++++ pyproject.toml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bab076e..08bc6ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to rattail-fabric2 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.4.5 (2025-02-01) + +### Fix + +- purge email settings for wuttjamaican also + ## v0.4.4 (2024-10-03) ### Fix diff --git a/pyproject.toml b/pyproject.toml index 1138238..cad4da6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" [project] name = "rattail-fabric2" -version = "0.4.4" +version = "0.4.5" description = "Fabric (v2) Utilities for Rattail" readme = "README.md" authors = [{name = "Lance Edgar", email = "lance@edbob.org"}]