Skip to content

Commit d16b588

Browse files
committed
Merge branch 'main' into blocktypes
2 parents 57a4029 + 75100ae commit d16b588

File tree

15 files changed

+85
-33
lines changed

15 files changed

+85
-33
lines changed

.github/workflows/test-matrix.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,29 @@ jobs:
2121
# [Python version, visual name, tox env]
2222
- ["3.13", "6.2 on py3.13", "py313-plone62"]
2323
- ["3.10", "6.2 on py3.10", "py310-plone62"]
24-
- ["3.13", "6.1 on py3.13", "py313-plone61"]
25-
- ["3.10", "6.1 on py3.10", "py310-plone61"]
2624

2725
runs-on: ${{ matrix.os[1] }}
2826
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
2927
name: ${{ matrix.config[1] }}
3028
steps:
31-
- uses: actions/checkout@v5
29+
- uses: actions/checkout@v6
3230
with:
3331
persist-credentials: false
3432
- name: Set up Python
3533
uses: actions/setup-python@v6
3634
with:
3735
python-version: ${{ matrix.config[0] }}
3836
allow-prereleases: true
37+
38+
##
39+
# Add extra configuration options in .meta.toml:
40+
# [github]
41+
# extra_lines_after_os_dependencies = """
42+
# _your own configuration lines_
43+
# """
44+
##
3945
- name: Pip cache
40-
uses: actions/cache@v4
46+
uses: actions/cache@v5
4147
with:
4248
path: ~/.cache/pip
4349
key: ${{ runner.os }}-pip-${{ matrix.config[0] }}-${{ hashFiles('setup.*', 'tox.ini') }}
@@ -55,3 +61,12 @@ jobs:
5561
if [ `tox list --no-desc -f init|wc -l` = 1 ]; then tox -e init;else true; fi
5662
- name: Test
5763
run: tox -e ${{ matrix.config[2] }}
64+
65+
66+
##
67+
# Add extra configuration options in .meta.toml:
68+
# [github]
69+
# extra_lines = """
70+
# _your own configuration lines_
71+
# """
72+
##

.meta.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# See the inline comments on how to expand/tweak this configuration file
44
[meta]
55
template = "default"
6-
commit-id = "2.0.1.dev0"
6+
commit-id = "2.2.2"
77

88
[gitignore]
99
extra_lines = """
@@ -24,4 +24,4 @@ test_runner = "pytest"
2424
test_path = "/tests"
2525
use_mxdev = true
2626
test_deps_additional = ""
27-
test_matrix = { "6.2" = ["3.13", "3.12", "3.11", "3.10"], "6.1" = ["3.13", "3.12", "3.11", "3.10"] }
27+
test_matrix = {"6.2" = ["*"]}

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ ci:
77

88
repos:
99
- repo: https://github.com/asottile/pyupgrade
10-
rev: v3.20.0
10+
rev: v3.21.0
1111
hooks:
1212
- id: pyupgrade
1313
args: [--py38-plus]
1414
- repo: https://github.com/pycqa/isort
15-
rev: 6.0.1
15+
rev: 7.0.0
1616
hooks:
1717
- id: isort
18-
- repo: https://github.com/psf/black
19-
rev: 25.1.0
18+
- repo: https://github.com/psf/black-pre-commit-mirror
19+
rev: 25.9.0
2020
hooks:
2121
- id: black
2222
- repo: https://github.com/collective/zpretty
@@ -58,15 +58,15 @@ repos:
5858
# """
5959
##
6060
- repo: https://github.com/mgedmin/check-manifest
61-
rev: "0.50"
61+
rev: "0.51"
6262
hooks:
6363
- id: check-manifest
6464
- repo: https://github.com/regebro/pyroma
6565
rev: "5.0"
6666
hooks:
6767
- id: pyroma
6868
- repo: https://github.com/mgedmin/check-python-versions
69-
rev: "0.22.1"
69+
rev: "0.23.0"
7070
hooks:
7171
- id: check-python-versions
7272
args: ['--only', 'setup.py,pyproject.toml']

CHANGES.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,29 @@
99

1010
<!-- towncrier release notes start -->
1111

12+
## 6.0.0a1 (2026-01-13)
13+
14+
15+
### Breaking changes:
16+
17+
- Replace ``pkg_resources`` namespace with PEP 420 native namespace.
18+
Support only Plone 6.2 and Python 3.10+. #3928
19+
20+
21+
### New features:
22+
23+
- Add larger scales to `plone.allowed_sizes` for new sites. This helps avoid the
24+
need to serve the original image which can be very large. @davisagli
25+
26+
- `2k` is large enough for a default-width image on a high-density display.
27+
- `4k` is large enough for a full-width images on high-density viewports up to 2000 pixels wide.
28+
29+
30+
### Bug fixes:
31+
32+
- Support collective.html2blocks to convert HTML to Volto blocks as a replacement for blocks-conversion-tool.
33+
@pbauer #201
34+
1235
## 5.2.2 (2025-10-01)
1336

1437

news/207.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add getRemoteUrl to summary field serializer. @jackahl

setup.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from setuptools import find_packages
21
from setuptools import setup
32

43

@@ -13,15 +12,15 @@
1312

1413
setup(
1514
name="plone.volto",
16-
version="5.2.3.dev0",
15+
version="6.0.0a2.dev0",
1716
description="Volto integration add-on for Plone",
1817
long_description=long_description,
1918
long_description_content_type="text/markdown",
2019
classifiers=[
2120
"Development Status :: 5 - Production/Stable",
2221
"Environment :: Web Environment",
2322
"Framework :: Plone",
24-
"Framework :: Plone :: 6.1",
23+
"Framework :: Plone :: 6.2",
2524
"Programming Language :: Python",
2625
"Programming Language :: Python :: 3.10",
2726
"Programming Language :: Python :: 3.11",
@@ -34,9 +33,6 @@
3433
author_email="tisto@plone.org",
3534
url="https://github.com/plone/plone.volto",
3635
license="GPL version 2",
37-
packages=find_packages("src"),
38-
namespace_packages=["plone"],
39-
package_dir={"": "src"},
4036
include_package_data=True,
4137
zip_safe=False,
4238
python_requires=">=3.10",
@@ -48,7 +44,6 @@
4844
"plone.distribution",
4945
"plone.restapi>=8.41.0",
5046
"Products.CMFPlone",
51-
"setuptools",
5247
],
5348
extras_require={
5449
"test": [

src/plone/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/plone/volto/browser/migrate_richtext.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ def get_blocks_from_richtext(
149149
r = requests.post(service_url, headers=headers, json=payload)
150150
r.raise_for_status()
151151
slate_data = r.json()
152-
slate_data = slate_data["data"]
152+
# blocks-conversion-tool vs. collective.html2blocks
153+
if isinstance(slate_data, dict) and "data" in slate_data:
154+
slate_data = slate_data["data"]
153155
blocks = {}
154156
uuids = []
155157
# generate slate blocks

src/plone/volto/profiles/default/metadata.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<metadata>
3-
<version>1020</version>
3+
<version>1100</version>
44
<dependencies>
55
<dependency>profile-plone.restapi:blocks</dependency>
66
</dependencies>

src/plone/volto/profiles/default/registry/plone.base.interfaces.controlpanel.IImagingSchema.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
55
<record field="allowed_sizes"
66
interface="plone.base.interfaces.controlpanel.IImagingSchema"
77
name="plone.allowed_sizes"
8-
purge="True"
98
>
10-
<!-- Purge the existing ones! -->
11-
<value>
9+
<value purge="true">
1210
<element>icon 32:32</element>
1311
<element>tile 64:64</element>
1412
<element>thumb 128:128</element>
@@ -19,6 +17,8 @@
1917
<element>larger 1000:65536</element>
2018
<element>great 1200:65536</element>
2119
<element>huge 1600:65536</element>
20+
<element>2k 2000:65536</element>
21+
<element>4k 4000:65536</element>
2222
</value>
2323
</record>
2424
</registry>

0 commit comments

Comments
 (0)