Skip to content

Commit d816f5f

Browse files
authored
Merge pull request #667 from plone/pep-420
PEP 420 namespace packaging and resource updates
2 parents 2e6c20d + c29d33c commit d816f5f

28 files changed

+373
-448
lines changed

.github/workflows/test-matrix.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
config:
2121
# [Python version, visual name, tox env]
2222
- ["3.13", "6.2 on py3.13", "py313-plone62"]
23-
- ["3.12", "6.1 on py3.12", "py312-plone61"]
23+
- ["3.10", "6.2 on py3.10", "py310-plone62"]
2424

2525
runs-on: ${{ matrix.os[1] }}
2626
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
@@ -34,6 +34,14 @@ jobs:
3434
with:
3535
python-version: ${{ matrix.config[0] }}
3636
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+
##
3745
- name: Pip cache
3846
uses: actions/cache@v5
3947
with:
@@ -53,3 +61,12 @@ jobs:
5361
if [ `tox list --no-desc -f init|wc -l` = 1 ]; then tox -e init;else true; fi
5462
- name: Test
5563
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.1.0"
6+
commit-id = "2.3.1"
77

88
[pyproject]
99
codespell_ignores = "foo,bar"
@@ -22,7 +22,7 @@ zpretty_extra_lines = """
2222
"""
2323

2424
[tox]
25-
test_matrix = {"6.2" = ["3.13"], "6.1" = ["3.12"]}
25+
test_matrix = {"6.2" = ["*"]}
2626

2727
[github]
2828
jobs = [

news/+pep420.breaking.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Replace ``pkg_resources`` namespace with PEP 420 native namespace.
2+
Support only Plone 6.2 and Python 3.10+.
3+
@petschki

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,18 @@
55
"license": "GPL-2.0-only",
66
"dependencies": {
77
"@patternslib/patternslib": "^9.10.2",
8-
"@plone/mockup": "^5.4.4"
8+
"@plone/mockup": "^5.5.0"
99
},
1010
"devDependencies": {
1111
"@patternslib/dev": "3.8.1",
1212
"bootstrap": "5.3.8",
1313
"clean-css-cli": "5.6.3",
1414
"nodemon": "^3.1.10",
1515
"npm-run-all": "^4.1.5",
16-
"prettier": "3.6.2",
17-
"sass": "1.77.8",
18-
"sass-loader": "16.0.6"
16+
"prettier": "3.6.2"
17+
},
18+
"resolutions": {
19+
"sass": "1.77.8"
1920
},
2021
"scripts": {
2122
"build": "npm-run-all build:webpack build:css",

setup.py

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from pathlib import Path
2-
from setuptools import find_packages
32
from setuptools import setup
43

54

@@ -11,37 +10,32 @@
1110
setup(
1211
# metadata in setup.cfg
1312
name="plone.app.mosaic",
14-
version="3.3.3.dev0",
13+
version="4.0.0.dev0",
1514
description="Plone Mosaic Site Builder and Site Layout",
1615
long_description=long_description,
1716
long_description_content_type="text/x-rst",
1817
classifiers=[
1918
"Development Status :: 5 - Production/Stable",
2019
"Environment :: Web Environment",
2120
"Framework :: Plone",
22-
"Framework :: Plone :: 6.0",
23-
"Framework :: Plone :: 6.1",
21+
"Framework :: Plone :: 6.2",
2422
"Framework :: Plone :: Addon",
2523
"Framework :: Zope :: 5",
2624
"Programming Language :: Python",
27-
"Programming Language :: Python :: 3.8",
28-
"Programming Language :: Python :: 3.9",
2925
"Programming Language :: Python :: 3.10",
3026
"Programming Language :: Python :: 3.11",
3127
"Programming Language :: Python :: 3.12",
28+
"Programming Language :: Python :: 3.13",
3229
"Operating System :: OS Independent",
3330
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
3431
],
3532
keywords="Python Plone javascript mosaic grideditor",
3633
author="Plone Foundation",
3734
author_email="foundation@plone.org",
3835
url="https://github.com/plone/plone.app.mosaic",
39-
packages=find_packages("src"),
40-
package_dir={"": "src"},
41-
namespace_packages=["plone", "plone.app"],
4236
include_package_data=True,
4337
zip_safe=False,
44-
python_requires=">=3.8",
38+
python_requires=">=3.10",
4539
install_requires=[
4640
"lxml",
4741
"plone.api",
@@ -54,7 +48,7 @@
5448
"plone.app.layout",
5549
"plone.app.standardtiles",
5650
"plone.app.tiles",
57-
"plone.app.z3cform >= 4.1.0", # deprecated plone.app.widgets
51+
"plone.app.z3cform",
5852
"plone.autoform",
5953
"plone.base",
6054
"plone.dexterity",

src/plone/__init__.py

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

src/plone/app/__init__.py

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

src/plone/app/mosaic/browser/static/chunks/15528.c948a471d704a52304c4.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/plone/app/mosaic/browser/static/chunks/27365.8781d2035011431ff632.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/plone/app/mosaic/browser/static/chunks/31875.7c8e31059a066e8a0622.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)