Compare commits
5 commits
Author | SHA1 | Date | |
---|---|---|---|
|
8bddce1329 | ||
|
542875a44c | ||
![]() |
8bd4236291 | ||
![]() |
00b0082302 | ||
![]() |
515ccc9f0c |
12
CHANGELOG.md
12
CHANGELOG.md
|
@ -5,6 +5,18 @@ 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/)
|
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.5 (2025-02-01)
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
- purge email settings for wuttjamaican also
|
||||||
|
|
||||||
|
## v0.4.4 (2024-10-03)
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
- update project source links, kallithea -> forgejo
|
||||||
|
|
||||||
## v0.4.3 (2024-08-06)
|
## v0.4.3 (2024-08-06)
|
||||||
|
|
||||||
### Fix
|
### Fix
|
||||||
|
|
11
README.md
Normal file
11
README.md
Normal file
|
@ -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.
|
14
README.rst
14
README.rst
|
@ -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/
|
|
|
@ -6,9 +6,9 @@ build-backend = "hatchling.build"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "rattail-fabric2"
|
name = "rattail-fabric2"
|
||||||
version = "0.4.3"
|
version = "0.4.5"
|
||||||
description = "Fabric (v2) Utilities for Rattail"
|
description = "Fabric (v2) Utilities for Rattail"
|
||||||
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 = [
|
||||||
|
@ -31,8 +31,8 @@ dependencies = [
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
Homepage = "https://rattailproject.org"
|
Homepage = "https://rattailproject.org"
|
||||||
Repository = "https://kallithea.rattailproject.org/rattail-project/rattail-fabric2"
|
Repository = "https://forgejo.wuttaproject.org/rattail/rattail-fabric2"
|
||||||
Changelog = "https://kallithea.rattailproject.org/rattail-project/rattail-fabric2/files/master/CHANGELOG.md"
|
Changelog = "https://forgejo.wuttaproject.org/rattail/rattail-fabric2/src/branch/master/CHANGELOG.md"
|
||||||
|
|
||||||
|
|
||||||
[tool.commitizen]
|
[tool.commitizen]
|
||||||
|
|
|
@ -103,7 +103,7 @@ def deploy_backup_app(c, deploy, envname, mkvirtualenv=True, user='rattail',
|
||||||
# rattail
|
# rattail
|
||||||
mkdir(c, os.path.join(envpath, 'src'), use_sudo=True, runas_user=user)
|
mkdir(c, os.path.join(envpath, 'src'), use_sudo=True, runas_user=user)
|
||||||
if not exists(c, os.path.join(envpath, 'src/rattail')):
|
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),
|
c.sudo("bash -c 'PIP_CONFIG_FILE={0}/pip.conf {0}/bin/pip install --editable {0}/src/rattail'".format(envpath),
|
||||||
user=user)
|
user=user)
|
||||||
deploy_generic(c, 'backup/git-exclude', os.path.join(envpath, 'src/rattail/.git/info/exclude'), use_sudo=True, owner=user)
|
deploy_generic(c, 'backup/git-exclude', os.path.join(envpath, 'src/rattail/.git/info/exclude'), use_sudo=True, owner=user)
|
||||||
|
|
|
@ -33,7 +33,7 @@ def install_from_source(c, user='rattail'):
|
||||||
"""
|
"""
|
||||||
if not exists(c, '/usr/local/src/byjove'):
|
if not exists(c, '/usr/local/src/byjove'):
|
||||||
mkdir(c, '/usr/local/src/byjove', use_sudo=True, owner=user)
|
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)
|
user=user)
|
||||||
c.sudo("bash -l -c 'cd /usr/local/src/byjove; npm link'",
|
c.sudo("bash -l -c 'cd /usr/local/src/byjove; npm link'",
|
||||||
user=user)
|
user=user)
|
||||||
|
|
|
@ -108,6 +108,14 @@ def delete_email_recipients(c, dbname):
|
||||||
"""
|
"""
|
||||||
Purge all email recipient settings for the given database.
|
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.%.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.%.cc';", database=dbname)
|
||||||
postgresql.sql(c, "delete from setting where name like 'rattail.mail.%.bcc';", database=dbname)
|
postgresql.sql(c, "delete from setting where name like 'rattail.mail.%.bcc';", database=dbname)
|
||||||
|
|
Loading…
Reference in a new issue