Skip to content

Commit

Permalink
Test backend/requirements-docker.txt updating relstorage/psycopg2 ver…
Browse files Browse the repository at this point in the history
…sions.

Update to Plone 6.0.10.1.
Sync requirements-bootstrap.txt
Add collective.revisionmanager 1.2.2.
Update instance.yaml for cookiecutter-zope-instance
  • Loading branch information
fredvd committed Mar 27, 2024
1 parent b5417ac commit 15017f2
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 27 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
## 1.0.17 (unreleased)


- Pin cookiecutter-zope-instance version in backend/Makefile. [fredvd]

- Update instance(-filstorage).yaml to remove deprecated load_zcml. [fredvd]

- Test backend/requirements-docker.txt updating relstorage/psycopg2 versions. [fredvd]

- Update to Plone 6.0.10.1. Sync requirements-bootstrap.txt[fredvd]

- Add collective.revisionmanager 1.2.2. [fredvd]

- Add volto-fullcalendar-block [fredvd]

- Add recurrence index to catalog.xml [fredvd]
Expand Down
4 changes: 2 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG PLONE_VERSION=6.0.9
ARG PLONE_VERSION=6.0.10.1
FROM plone/plone-backend:${PLONE_VERSION}
ARG PLONE_VERSION=6.0.9
ARG PLONE_VERSION=6.0.10.1

LABEL maintainer="Plone Foundation <[email protected]>" \
org.label-schema.name="plone.org-backend" \
Expand Down
8 changes: 3 additions & 5 deletions backend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,19 +88,17 @@ clean-test: ## remove test and coverage artifacts
bin/pip:
@echo "$(GREEN)==> Setup Virtual Env$(RESET)"
$(PYTHON) -m venv .
bin/pip install -U -r requirements-bootstrap.txt -c constraints-mxdev.txt
bin/pip install -U -r requirements-bootstrap.txt

.PHONY: config
config: bin/pip ## Create instance configuration
@echo "$(GREEN)==> Create instance configuration$(RESET)"
bin/cookiecutter -f --no-input --config-file instance.yaml gh:plone/cookiecutter-zope-instance
bin/cookiecutter -f --no-input --config-file instance.yaml --checkout 2.1.0 gh:plone/cookiecutter-zope-instance

.PHONY: config-fs
config-fs: bin/pip ## Create instance configuration
@echo "$(GREEN)==> Create instance configuration$(RESET)"
bin/cookiecutter -f --no-input --config-file instance-filestorage.yaml gh:plone/cookiecutter-zope-instance


bin/cookiecutter -f --no-input --config-file instance-filestorage.yaml --checkout 2.1.0 gh:plone/cookiecutter-zope-instance

# i18n
bin/i18ndude: bin/pip
Expand Down
2 changes: 1 addition & 1 deletion backend/constraints.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
-c https://dist.plone.org/release/6.0.9/constraints.txt
-c https://dist.plone.org/release/6.0.10.1/constraints.txt
9 changes: 2 additions & 7 deletions backend/instance-filestorage.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
default_context:
initial_user_name: 'admin'
initial_user_password: 'admin'

load_zcml:
package_includes: ['ploneorg']

initial_user_password: 'adminadmin'
zcml_package_includes: ploneorg, collective.revisionmanager
dos_protection_available: true

db_storage: direct

db_filestorage_location: ../data/filestorage/Data.fs
db_blobs_location: ../data/blobs
8 changes: 2 additions & 6 deletions backend/instance.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
default_context:
initial_user_name: 'admin'
initial_user_password: 'admin'

load_zcml:
package_includes: ['ploneorg']

initial_user_password: 'adminadmin'
zcml_package_includes: ploneorg
dos_protection_available: true

db_storage: relstorage
db_relstorage_postgresql_driver: psycopg2
db_relstorage_postgresql_dsn: dbname='ploneorg' user='ploneorg' host='127.0.0.1' password='ploneorg'
Expand Down
4 changes: 1 addition & 3 deletions backend/mx.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
; version-overrides =
; example.package==2.1.0a2

version-overrides =
pip==23.3.2
mxdev==3.1.0
;version-overrides =

[plone.app.vulnerabilities]
url = https://github.com/plone/plone.app.vulnerabilities.git
Expand Down
5 changes: 3 additions & 2 deletions backend/requirements-bootstrap.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# These packages are installed after creating the virtualenv and are needed to further configure and
# install the main backend application. Keep these versions pinned and add possible subdependencies
pip==23.3.2
# We cannoot use the generated constraints-mxdev.txt because it doesn't exist when bootstrapping
pip==24.0
wheel==0.42.0
cookiecutter==2.5.0
mxdev==3.1.0
cookiecutter==2.6.0
prettyconf==2.2.1
4 changes: 4 additions & 0 deletions backend/requirements-docker.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
-c constraints.txt
-e src/ploneorg

relstorage==4.0.0
psycopg2==2.9.9
collective.revisionmanager==1.2.2
1 change: 1 addition & 0 deletions backend/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@

relstorage==4.0.0
psycopg2==2.9.9
collective.revisionmanager==1.2.2
zope.testrunner
1 change: 1 addition & 0 deletions backend/src/ploneorg/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"collective.volto.secondarymenu",
"collective.volto.socialsettings",
"collective.casestudy",
"collective.revisionmanager",
],
extras_require={
"test": [
Expand Down
2 changes: 1 addition & 1 deletion backend/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.0.9
6.0.10.1

0 comments on commit 15017f2

Please sign in to comment.