From 47507d05b6ec3540d2877bb91be446dbf850b029 Mon Sep 17 00:00:00 2001 From: Khairil Yusof Date: Wed, 4 Oct 2023 11:34:26 +0800 Subject: [PATCH 1/9] Update README.md With updated installation setup for Ubuntu 22.04 --- README.md | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/README.md b/README.md index e4da1bf..23bb269 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,54 @@ This website will contain further details about the IMAP project: * Development of test lists * The IMAP team and partners + ## Installation and Buildout + +### Ubuntu 22.04.2 LTS + +Setup system dependencies: + +``` +sudo apt install build-essential python3-dev +``` + +### Setup venv and buildout environment Ubuntu 22.04.2 + +``` +python3.8 -m venv venv +venv/bin/pip install setuptools==65.7.0 zc.buildout==3.0.1 wheel==0.38.4 \ +plonecli +venv/bin/buildout bootstrap +``` + +### venv and buildout environment where base Python is newer than 3.8 + +Plone 5.2 currently works best on Python 3.8, where base version is not +Python 3.8, you will need to install custom version of Python 3.8 using +tools such as `pyenv` + +Python module dependencies + +``` +apt install libssl-dev libsqlite3-dev libbz2-dev libncurses-dev \ +libffi-dev libreadline-dev liblzma-dev +``` + +Setup venv using pyenv Python3.8 binary +``` +git clone https://github.com/pyenv/pyenv.git ~/.pyenv +~/.pyenv/bin/install 3.8 +~/.pyenv/versions/3.8.17/bin/python3.8 -m venv venv +``` + +### Buildout + +Run buildout: + +``` +bin/buildout -vvv +``` + + ### To run test site: - Install zc.buildout: `pip install wheel zc.buildout` - Update add-on folders `bin/develop update` From 1e58de7e69337cb24cbf3a7685b638326d648c78 Mon Sep 17 00:00:00 2001 From: Khairil Yusof Date: Wed, 4 Oct 2023 11:34:52 +0800 Subject: [PATCH 2/9] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 23bb269..856d162 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ This website will contain further details about the IMAP project: * Development of test lists * The IMAP team and partners - ## Installation and Buildout +## Installation and Buildout ### Ubuntu 22.04.2 LTS From 72f4375d7b50d349d8046dadd84224ebb3755bfe Mon Sep 17 00:00:00 2001 From: Khairil Yusof Date: Wed, 4 Oct 2023 11:46:13 +0800 Subject: [PATCH 3/9] Update imap buildout to align with foe-km Also add missing imap.customization src and egg definitions --- buildout.cfg | 6 +++++- deployment.cfg | 6 ++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/buildout.cfg b/buildout.cfg index f7dcf02..fe56d4e 100644 --- a/buildout.cfg +++ b/buildout.cfg @@ -23,6 +23,7 @@ eggs = Plone Pillow collective.dexteritytextindexer + sinar.article sinar.citation sinar.resource sinar.activity @@ -36,6 +37,8 @@ eggs = plone.gallery collective.tiles.collection eea.facetednavigation + imap.customizations + zcml = # plone.reload @@ -58,6 +61,7 @@ threads = 2 [sources] sinar.activity = git git@github.com:Sinar/sinar.activity branch=main +sinar.article = git git@github.com:Sinar/sinar.article branch=main sinar.citation = git git@github.com:Sinar/sinar.citation branch=main sinar.miscbehavior = git git@github.com:Sinar/sinar.miscbehavior branch=main sinar.organization = git git@github.com:Sinar/sinar.organization branch=main @@ -65,7 +69,7 @@ sinar.project = git git@github.com:Sinar/sinar.project branch=main sinar.indicators = git git@github.com:Sinar/sinar.indicators branch=main sinar.resource = git git@github.com:Sinar/sinar.resource branch=main collective.vocabularies.iso = git git@github.com:Sinar/collective.vocabularies.iso.git - +imap.customizations = git git@github.com:Sinar/imap.customizations.git [instance] <= instance_base diff --git a/deployment.cfg b/deployment.cfg index f66f246..ec4db34 100644 --- a/deployment.cfg +++ b/deployment.cfg @@ -4,11 +4,13 @@ parts += [sources] sinar.activity = git https://github.com/Sinar/sinar.activity branch=main +sinar.article = git https://github.com/Sinar/sinar.article branch=main sinar.citation = git https://github.com/Sinar/sinar.citation branch=main sinar.resource = git https://github.com/Sinar/sinar.resource branch=main sinar.project = git https://github.com/Sinar/sinar.project branch=main sinar.indicators = git https://github.com/Sinar/sinar.indicators branch=main sinar.organization = git https://github.com/Sinar/sinar.organization branch=main -foecluster.km = git https://github.com/Sinar/foecluster.km branch=main sinar.miscbehavior = git https://github.com/Sinar/sinar.miscbehavior branch=main -collective.vocabularies.iso = git https://github.com/sinar/collective.vocabularies.iso +collective.vocabularies.iso = git https://github.com/Sinar/collective.vocabularies.iso +imap.customizations = git https://github.com/Sinar/imap.customizations.git + From 3808d723127d1f47c9316bfae47065384c8d0377 Mon Sep 17 00:00:00 2001 From: Khairil Yusof Date: Wed, 4 Oct 2023 12:11:46 +0800 Subject: [PATCH 4/9] checkout https for sinar.advisory for deployment.cfg --- deployment.cfg | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/deployment.cfg b/deployment.cfg index ec62d9b..8d8289b 100644 --- a/deployment.cfg +++ b/deployment.cfg @@ -4,7 +4,7 @@ parts += [sources] sinar.activity = git https://github.com/Sinar/sinar.activity branch=main -sinar.advisory = git git@github.com:Sinar/sinar.advisory branch=main +sinar.advisory = git https://github.com/Sinar/sinar.advisory branch=main sinar.article = git https://github.com/Sinar/sinar.article branch=main sinar.resource = git https://github.com/Sinar/sinar.resource branch=main sinar.project = git https://github.com/Sinar/sinar.project branch=main @@ -13,4 +13,3 @@ sinar.organization = git https://github.com/Sinar/sinar.organization branch=main sinar.miscbehavior = git https://github.com/Sinar/sinar.miscbehavior branch=main collective.vocabularies.iso = git https://github.com/Sinar/collective.vocabularies.iso imap.customizations = git https://github.com/Sinar/imap.customizations.git - From e26d5aea7a6fb366e9f0350a6fb24a45cde854cd Mon Sep 17 00:00:00 2001 From: Khairil Yusof Date: Wed, 4 Oct 2023 12:41:46 +0800 Subject: [PATCH 5/9] Missing colletive.relationshiphelpers --- buildout.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/buildout.cfg b/buildout.cfg index 24b81c3..5430dfe 100644 --- a/buildout.cfg +++ b/buildout.cfg @@ -23,6 +23,7 @@ eggs = Plone Pillow collective.dexteritytextindexer + collective.relationhelpers sinar.advisory sinar.activity sinar.article From 475b8e03c5d5a3e1ca2ed1ea5008eb7c22b290ef Mon Sep 17 00:00:00 2001 From: Khairil Yusof Date: Wed, 4 Oct 2023 12:44:05 +0800 Subject: [PATCH 6/9] Pin plone.restapi to newer version with relations endpoints --- buildout.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/buildout.cfg b/buildout.cfg index 5430dfe..f0e3844 100644 --- a/buildout.cfg +++ b/buildout.cfg @@ -76,3 +76,4 @@ http-address = 127.0.0.1:8080 [versions] +plone.restapi = 8.43.1 From 1814c36c5423446cd42ba71b978bcd5c11a948a9 Mon Sep 17 00:00:00 2001 From: Khairil Yusof Date: Wed, 4 Oct 2023 13:20:21 +0800 Subject: [PATCH 7/9] Add missing egg for sinar.indicators --- buildout.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/buildout.cfg b/buildout.cfg index f0e3844..90beb2a 100644 --- a/buildout.cfg +++ b/buildout.cfg @@ -27,6 +27,7 @@ eggs = sinar.advisory sinar.activity sinar.article + sinar.indicators sinar.organization sinar.project sinar.miscbehavior From 40d5115f31459a19998ff8e54b654dd4984b6713 Mon Sep 17 00:00:00 2001 From: sitinurliza Date: Fri, 2 Feb 2024 14:02:59 +0800 Subject: [PATCH 8/9] Plone 6 update --- buildout.cfg | 17 ++++++++++++----- deployment.cfg | 8 ++++---- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/buildout.cfg b/buildout.cfg index afee9e8..76b57e6 100644 --- a/buildout.cfg +++ b/buildout.cfg @@ -33,14 +33,20 @@ eggs = sinar.miscbehavior imap.customizations collective.vocabularies.iso - collective.behavior.banner + collective.behavior.banner==2.0 plone.app.mosaic==3.0 plone.gallery eea.facetednavigation imap.customizations plone.volto pandas - + plone.app.drafts + plone.app.standardtiles + plone.app.tiles + plone.jsonserializer + z3c.jbot + plone.app.blocks + zcml = # plone.reload @@ -60,8 +66,9 @@ verbose-security = off threads = 2 [sources] -sinar.advisory = git git@github.com:Sinar/sinar.advisory branch=main -sinar.article = git git@github.com:Sinar/sinar.article branch=main +sinar.activity = git git@github.com:Sinar/sinar.activity.git +sinar.advisory = git git@github.com:Sinar/sinar.advisory.git +sinar.article = git git@github.com:Sinar/sinar.article.git sinar.miscbehavior = git git@github.com:Sinar/sinar.miscbehavior branch=main sinar.organization = git git@github.com:Sinar/sinar.organization branch=main sinar.project = git git@github.com:Sinar/sinar.project branch=main @@ -69,7 +76,7 @@ sinar.indicators = git git@github.com:Sinar/sinar.indicators branch=main sinar.resource = git git@github.com:Sinar/sinar.resource branch=main imap.customizations = git git@github.com:Sinar/imap.customizations.git collective.vocabularies.iso = git git@github.com:Sinar/collective.vocabularies.iso.git -collective.behavior.banner = git git@github.com:collective/collective.behavior.banner branch=master +#collective.behavior.banner = git git@github.com:collective/collective.behavior.banner branch=master [instance] <= instance_base diff --git a/deployment.cfg b/deployment.cfg index 8d8289b..e0399e5 100644 --- a/deployment.cfg +++ b/deployment.cfg @@ -3,13 +3,13 @@ extends = buildout.cfg parts += [sources] -sinar.activity = git https://github.com/Sinar/sinar.activity branch=main -sinar.advisory = git https://github.com/Sinar/sinar.advisory branch=main -sinar.article = git https://github.com/Sinar/sinar.article branch=main +sinar.activity = git https://github.com/Sinar/sinar.activity.git +sinar.advisory = git https://github.com/Sinar/sinar.advisory.git +sinar.article = git https://github.com/Sinar/sinar.article.git sinar.resource = git https://github.com/Sinar/sinar.resource branch=main sinar.project = git https://github.com/Sinar/sinar.project branch=main sinar.indicators = git https://github.com/Sinar/sinar.indicators branch=main sinar.organization = git https://github.com/Sinar/sinar.organization branch=main sinar.miscbehavior = git https://github.com/Sinar/sinar.miscbehavior branch=main -collective.vocabularies.iso = git https://github.com/Sinar/collective.vocabularies.iso +collective.vocabularies.iso = git https://github.com/Sinar/collective.vocabularies.iso.git imap.customizations = git https://github.com/Sinar/imap.customizations.git From c811178cd3f3ac6ca6ad4f57864b0c9ef4979160 Mon Sep 17 00:00:00 2001 From: Khairil Yusof Date: Tue, 15 Oct 2024 11:53:46 +0800 Subject: [PATCH 9/9] Remove unused plone.mosaic and plone.gallery Plone instance is now working --- buildout.cfg | 2 -- 1 file changed, 2 deletions(-) diff --git a/buildout.cfg b/buildout.cfg index 76b57e6..6534550 100644 --- a/buildout.cfg +++ b/buildout.cfg @@ -34,8 +34,6 @@ eggs = imap.customizations collective.vocabularies.iso collective.behavior.banner==2.0 - plone.app.mosaic==3.0 - plone.gallery eea.facetednavigation imap.customizations plone.volto