fix: update project source links, kallithea -> forgejo
This commit is contained in:
parent
da526824f9
commit
65ac2baf43
|
@ -12,8 +12,8 @@ Rattail and Tailbone are the 2 main packages, responsible for the
|
|||
Usually there are also some POS integration packages involved; see
|
||||
:ref:`pos-integration` for links to those.
|
||||
|
||||
Source code for *all* packages is hosted on the rattailproject.org
|
||||
server, specifically under https://kallithea.rattailproject.org/
|
||||
Source code for *all* packages is hosted on
|
||||
https://forgejo.wuttaproject.org/rattail/
|
||||
|
||||
You can request an account there, and then "fork" anything as you
|
||||
like. Or skip the account and just clone whatever.
|
||||
|
|
|
@ -28,9 +28,9 @@ you just want the latest releases:
|
|||
|
||||
Or if you want to run from source then you can clone/install these:
|
||||
|
||||
* https://kallithea.rattailproject.org/rattail-project/pycorepos
|
||||
* https://kallithea.rattailproject.org/rattail-project/rattail-corepos
|
||||
* https://kallithea.rattailproject.org/rattail-project/tailbone-corepos
|
||||
* https://forgejo.wuttaproject.org/rattail/pycorepos
|
||||
* https://forgejo.wuttaproject.org/rattail/rattail-corepos
|
||||
* https://forgejo.wuttaproject.org/rattail/tailbone-corepos
|
||||
|
||||
But then just in case, do also run the above command as well, to
|
||||
ensure all dependencies are got.
|
||||
|
|
|
@ -80,9 +80,9 @@ e.g.::
|
|||
|
||||
Then clone any packages you don't yet have, e.g.::
|
||||
|
||||
git clone https://kallithea.rattailproject.org/rattail-project/rattail
|
||||
git clone https://kallithea.rattailproject.org/rattail-project/tailbone
|
||||
git clone https://kallithea.rattailproject.org/rattail-project/theo
|
||||
git clone https://forgejo.wuttaproject.org/rattail/rattail.git
|
||||
git clone https://forgejo.wuttaproject.org/rattail/tailbone.git
|
||||
git clone https://forgejo.wuttaproject.org/rattail/theo.git
|
||||
|
||||
Finally install all packages to your virtual environment, e.g.::
|
||||
|
||||
|
@ -122,8 +122,8 @@ just made above.
|
|||
We'll do the more complicated ones first. You can grab copies of them
|
||||
from Theo source code:
|
||||
|
||||
* `rattail.conf <https://kallithea.rattailproject.org/rattail-project/theo/rawfile/master/dev/rattail.conf>`_
|
||||
* `web.conf <https://kallithea.rattailproject.org/rattail-project/theo/rawfile/master/dev/web.conf>`_
|
||||
* `rattail.conf <https://forgejo.wuttaproject.org/rattail/theo/src/branch/master/dev/rattail.conf>`_
|
||||
* `web.conf <https://forgejo.wuttaproject.org/rattail/theo/src/branch/master/dev/web.conf>`_
|
||||
|
||||
Put each copy in your Theo "app" folder and edit as needed, in
|
||||
particular replacing ``<ENVDIR>`` and similar strings (e.g. ``<SEP>``
|
||||
|
|
|
@ -11,7 +11,7 @@ Clone the source code for Theo wherever you like, e.g. ``~/src/theo``::
|
|||
|
||||
mkdir -p ~/src
|
||||
cd ~/src
|
||||
git clone https://kallithea.rattailproject.org/rattail-project/theo
|
||||
git clone https://forgejo.wuttaproject.org/rattail/theo.git
|
||||
|
||||
Your local PostgreSQL service should be available, and user (named ``rattail``)
|
||||
and DB (named ``theo``) created::
|
||||
|
|
|
@ -72,11 +72,11 @@ env.restricted_pypi_username = 'username'
|
|||
env.restricted_pypi_password = 'password'
|
||||
|
||||
# these credentials are used to access the Rattail Project source code on
|
||||
# Kallithea (https://kallithea.rattailproject.org/). they are only needed if
|
||||
# Forgejo (https://forgejo.wuttaproject.org/rattail/). they are only needed if
|
||||
# you are integrating with a proprietary POS system, and running from source
|
||||
# instead of released packages; i.e. a typical stage setup.
|
||||
env.kallithea_username = 'username'
|
||||
env.kallithea_password = 'password'
|
||||
env.forgejo_username = 'username'
|
||||
env.forgejo_password = 'password'
|
||||
|
||||
|
||||
##############################
|
||||
|
|
29
machines/theo-server/fabfile.py
vendored
29
machines/theo-server/fabfile.py
vendored
|
@ -47,6 +47,10 @@ def bootstrap_base(c):
|
|||
# rattail user + common config
|
||||
make_system_user(c, 'rattail', home='/var/lib/rattail', shell='/bin/bash')
|
||||
postfix.alias(c, 'rattail', 'root')
|
||||
# c.sudo('git config --global credential.helper store',
|
||||
# user='rattail')
|
||||
# c.sudo('git config --global credential.https://forgejo.wuttaproject.org.username MYUSERNAME',
|
||||
# user='rattail')
|
||||
mkdir(c, '/etc/rattail', use_sudo=True)
|
||||
deploy(c, 'rattail/rattail.conf.mako', '/etc/rattail/rattail.conf',
|
||||
use_sudo=True, context={'env': env})
|
||||
|
@ -313,30 +317,25 @@ def install_theo_source(c, envroot):
|
|||
|
||||
# catapult
|
||||
elif env.theo_integrates_with == 'catapult':
|
||||
install_source_package(c, envroot, 'onager', restricted=True)
|
||||
install_source_package(c, envroot, 'rattail-onager', restricted=True)
|
||||
install_source_package(c, envroot, 'tailbone-onager', restricted=True)
|
||||
install_source_package(c, envroot, 'onager')
|
||||
install_source_package(c, envroot, 'rattail-onager')
|
||||
install_source_package(c, envroot, 'tailbone-onager')
|
||||
|
||||
# locsms
|
||||
elif env.theo_integrates_with == 'locsms':
|
||||
install_source_package(c, envroot, 'luckysmores', restricted=True)
|
||||
install_source_package(c, envroot, 'rattail-luckysmores', restricted=True)
|
||||
install_source_package(c, envroot, 'tailbone-locsms', restricted=True)
|
||||
install_source_package(c, envroot, 'luckysmores')
|
||||
install_source_package(c, envroot, 'rattail-luckysmores')
|
||||
install_source_package(c, envroot, 'tailbone-locsms')
|
||||
|
||||
# theo
|
||||
install_source_package(c, envroot, 'theo')
|
||||
|
||||
|
||||
def install_source_package(c, envroot, name, restricted=False):
|
||||
def install_source_package(c, envroot, name):
|
||||
if not exists(c, '{}/src/{}'.format(envroot, name)):
|
||||
if restricted:
|
||||
c.sudo('git clone https://{0}:{1}@kallithea.rattailproject.org/rattail-restricted/{2} {3}/src/{2}'.format(
|
||||
env.kallithea_username, env.kallithea_password, name, envroot),
|
||||
user='rattail', echo=False)
|
||||
else:
|
||||
c.sudo('git clone https://kallithea.rattailproject.org/rattail-project/{0} {1}/src/{0}'.format(name, envroot),
|
||||
user='rattail')
|
||||
c.sudo("bash -c 'PIP_CONFIG_FILE={0}/pip.conf cd {0} && bin/pip install -e src/{1}'".format(envroot, name),
|
||||
c.sudo(f'git clone https://forgejo.wuttaproject.org/rattail/{name} {envroot}/src/{name}',
|
||||
user='rattail')
|
||||
c.sudo(f"bash -c 'PIP_CONFIG_FILE={envroot}/pip.conf cd {envroot} && bin/pip install -e src/{name}'",
|
||||
user='rattail')
|
||||
|
||||
|
||||
|
|
|
@ -66,10 +66,10 @@ theo = "theo.config:TheoConfig"
|
|||
|
||||
|
||||
[project.urls]
|
||||
Homepage = "https://redmine.rattailproject.org/projects/theo"
|
||||
Repository = "https://kallithea.rattailproject.org/rattail-project/theo"
|
||||
Issues = "https://redmine.rattailproject.org/projects/theo/issues"
|
||||
Changelog = "https://kallithea.rattailproject.org/rattail-project/theo/files/master/CHANGELOG.md"
|
||||
Homepage = "https://rattailproject.org"
|
||||
Repository = "https://forgejo.wuttaproject.org/rattail/theo"
|
||||
Issues = "https://forgejo.wuttaproject.org/rattail/theo/issues"
|
||||
Changelog = "https://forgejo.wuttaproject.org/rattail/theo/src/branch/master/CHANGELOG.md"
|
||||
|
||||
|
||||
[tool.commitizen]
|
||||
|
|
Loading…
Reference in a new issue