From 7705fb94a8748a717eda0d5ea33f4306d1c34491 2024-09-14 10:47:02 From: Lance Edgar Date: 2024-09-14 10:47:02 Subject: [PATCH] fix: update project links, kallithea -> forgejo --- diff --git a/pyproject.toml b/pyproject.toml index aa5e0a04bde36deead6abe764fe2fcdac329d3d9..95e69767b21283828c4537a47df2a21d8bd0c369 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -144,9 +144,9 @@ rattail = "rattail.sil.columns:provide_columns" [project.urls] Homepage = "https://rattailproject.org" -Repository = "https://kallithea.rattailproject.org/rattail-project/rattail" -Issues = "https://redmine.rattailproject.org/projects/rattail/issues" -Changelog = "https://kallithea.rattailproject.org/rattail-project/rattail/files/master/CHANGELOG.md" +Repository = "https://forgejo.wuttaproject.org/rattail/rattail" +Issues = "https://forgejo.wuttaproject.org/rattail/rattail/issues" +Changelog = "https://forgejo.wuttaproject.org/rattail/rattail/src/branch/master/CHANGELOG.md" [tool.commitizen] diff --git a/rattail/projects/fabric/machines/theo-server/fabenv.py.dist.mako b/rattail/projects/fabric/machines/theo-server/fabenv.py.dist.mako index f2d83f3dbb1a19ef6de4f69992fdecd807ca8aaa..ab10d38c0477ef3f8757313fe32e5b7321355e13 100644 --- a/rattail/projects/fabric/machines/theo-server/fabenv.py.dist.mako +++ b/rattail/projects/fabric/machines/theo-server/fabenv.py.dist.mako @@ -38,11 +38,11 @@ env.password_postgresql_rattail = 'password' # this is used to secure the user session and/or cookie for the web app env.theo_beaker_secret = 'ABCDEFGHIJKLMNOPQRST' -# these credentials are used to access the Rattail Project source code on -# Kallithea. they are only needed if you are integrating with a proprietary -# POS system, and running from source -env.kallithea_username = 'username' -env.kallithea_password = 'password' +# these credentials are used to access the Rattail Project source code +# on Forgejo. they are only needed if you are integrating with a +# proprietary POS system, and running from source +env.forgejo_username = 'username' +env.forgejo_password = 'password' # these credentials are used to access the "restricted" Rattail Project PyPI. # they are only needed if you are integrating with a proprietary POS system, diff --git a/rattail/projects/fabric/machines/theo-server/fabfile.py.mako b/rattail/projects/fabric/machines/theo-server/fabfile.py.mako index 1d8eb5d3f0a4c5019b70ead57cacd3038f7ac6b5..f8b2b46c7703515df8f324462d0f227703c01932 100644 --- a/rattail/projects/fabric/machines/theo-server/fabfile.py.mako +++ b/rattail/projects/fabric/machines/theo-server/fabfile.py.mako @@ -209,14 +209,14 @@ def install_theo_source(c, envroot): """ # rattail if not exists(c, '{}/src/rattail'.format(envroot)): - c.sudo('git clone https://kallithea.rattailproject.org/rattail-project/rattail {}/src/rattail'.format(envroot), + c.sudo(f'git clone https://forgejo.wuttaproject.org/rattail/rattail.git {envroot}/src/rattail', user='rattail') c.sudo("bash -c 'PIP_CONFIG_FILE={0}/pip.conf cd {0} && bin/pip install -e src/rattail'".format(envroot), user='rattail') # tailbone if not exists(c, '{}/src/tailbone'.format(envroot)): - c.sudo('git clone https://kallithea.rattailproject.org/rattail-project/tailbone {}/src/tailbone'.format(envroot), + c.sudo(f'git clone https://forgejo.wuttaproject.org/rattail/tailbone.git {envroot}/src/tailbone', user='rattail') c.sudo("bash -c 'PIP_CONFIG_FILE={0}/pip.conf cd {0} && bin/pip install -e src/tailbone'".format(envroot), user='rattail') @@ -226,24 +226,21 @@ def install_theo_source(c, envroot): # onager if not exists(c, '{}/src/onager'.format(envroot)): - c.sudo('git clone https://{}:{}@kallithea.rattailproject.org/rattail-restricted/onager {}/src/onager'.format( - env.kallithea_username, env.kallithea_password, envroot), + c.sudo(f'git clone https://{env.forgejo_username}:{env.forgejo_password}@forgejo.wuttaproject.org/rattail/onager.git {envroot}/src/onager', user='rattail', echo=False) c.sudo("bash -c 'PIP_CONFIG_FILE={0}/pip.conf cd {0} && bin/pip install -e src/onager'".format(envroot), user='rattail') # rattail-onager if not exists(c, '{}/src/rattail-onager'.format(envroot)): - c.sudo('git clone https://{}:{}@kallithea.rattailproject.org/rattail-restricted/rattail-onager {}/src/rattail-onager'.format( - env.kallithea_username, env.kallithea_password, envroot), + c.sudo(f'git clone https://{env.forgejo_username}:{env.forgejo_password}@forgejo.wuttaproject.org/rattail/rattail-onager.git {envroot}/src/rattail-onager', user='rattail', echo=False) c.sudo("bash -c 'PIP_CONFIG_FILE={0}/pip.conf cd {0} && bin/pip install -e src/rattail-onager'".format(envroot), user='rattail') # tailbone-onager if not exists(c, '{}/src/tailbone-onager'.format(envroot)): - c.sudo('git clone https://{}:{}@kallithea.rattailproject.org/rattail-restricted/tailbone-onager {}/src/tailbone-onager'.format( - env.kallithea_username, env.kallithea_password, envroot), + c.sudo(f'git clone https://{env.forgejo_username}:{env.forgejo_password}@forgejo.wuttaproject.org/rattail/tailbone-onager.git {envroot}/src/tailbone-onager', user='rattail', echo=False) c.sudo("bash -c 'PIP_CONFIG_FILE={0}/pip.conf cd {0} && bin/pip install -e src/tailbone-onager'".format(envroot), user='rattail') @@ -256,21 +253,21 @@ def install_theo_source(c, envroot): # pycorepos if not exists(c, '{}/src/pycorepos'.format(envroot)): - c.sudo('git clone https://kallithea.rattailproject.org/rattail-project/pycorepos {}/src/pycorepos'.format(envroot), + c.sudo(f'git clone https://forgejo.wuttaproject.org/rattail/pycorepos.git {envroot}/src/pycorepos', user='rattail') c.sudo("bash -c 'PIP_CONFIG_FILE={0}/pip.conf cd {0} && bin/pip install -e src/pycorepos'".format(envroot), user='rattail') # rattail-corepos if not exists(c, '{}/src/rattail-corepos'.format(envroot)): - c.sudo('git clone https://kallithea.rattailproject.org/rattail-project/rattail-corepos {}/src/rattail-corepos'.format(envroot), + c.sudo(f'git clone https://forgejo.wuttaproject.org/rattail/rattail-corepos.git {envroot}/src/rattail-corepos', user='rattail') c.sudo("bash -c 'PIP_CONFIG_FILE={0}/pip.conf cd {0} && bin/pip install -e src/rattail-corepos'".format(envroot), user='rattail') # tailbone-corepos if not exists(c, '{}/src/tailbone-corepos'.format(envroot)): - c.sudo('git clone https://kallithea.rattailproject.org/rattail-project/tailbone-corepos {}/src/tailbone-corepos'.format(envroot), + c.sudo(f'git clone https://forgejo.wuttaproject.org/rattail/tailbone-corepos.git {envroot}/src/tailbone-corepos', user='rattail') c.sudo("bash -c 'PIP_CONFIG_FILE={0}/pip.conf cd {0} && bin/pip install -e src/tailbone-corepos'".format(envroot), user='rattail') @@ -280,7 +277,7 @@ def install_theo_source(c, envroot): # theo if not exists(c, '{}/src/theo'.format(envroot)): - c.sudo('git clone https://kallithea.rattailproject.org/rattail-project/theo {}/src/theo'.format(envroot), + c.sudo(f'git clone https://forgejo.wuttaproject.org/rattail/theo.git {envroot}/src/theo', user='rattail') c.sudo("bash -c 'PIP_CONFIG_FILE={0}/pip.conf cd {0} && bin/pip install -e src/theo'".format(envroot), user='rattail')