Skip to content

Instantly share code, notes, and snippets.

@rnixx
Created June 15, 2024 10:29
Show Gist options
  • Save rnixx/dc9dd286555e5ef4e6964a74bbae4180 to your computer and use it in GitHub Desktop.
Save rnixx/dc9dd286555e5ef4e6964a74bbae4180 to your computer and use it in GitHub Desktop.

Minimal Plone site setup with mxmake

Create new project from scratch

Install mxmake:

$ pip install git+https://github.com/mxstack/mxmake.git@main

Create target folder and initialize project:

$ mkdir <project-folder>
$ cd <project-folder>
$ mxmake init

Follow the wizard and include applications.plone domain.

Edit Makefile and adjust the following settings:

RUN_TARGET?=zope-start
PYTHON_MIN_VERSION?=3.10
PYTHON_PACKAGE_INSTALLER?=uv

Create a requirements.txt containing:

plone
plone.distribution

Create a constraints.txt containing:

-c https://dist.plone.org/release/6.1-latest/constraints.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment