plone.app.customerize 2.0.1__tar.gz → 2.0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/.editorconfig +4 -3
  2. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/.flake8 +1 -1
  3. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/.gitignore +6 -1
  4. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/.meta.toml +2 -2
  5. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/.pre-commit-config.yaml +19 -9
  6. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/CHANGES.rst +9 -0
  7. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/PKG-INFO +11 -6
  8. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/plone/app/customerize/registrations.pt +8 -12
  9. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/plone/app/customerize/tests/testBrowserLayers.txt +1 -1
  10. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/plone/app/customerize/tests/testCustomizeView.txt +1 -1
  11. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/plone.app.customerize.egg-info/PKG-INFO +11 -6
  12. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/plone.app.customerize.egg-info/requires.txt +1 -5
  13. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/pyproject.toml +4 -2
  14. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/setup.py +2 -6
  15. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/tox.ini +31 -4
  16. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/CONTRIBUTING.rst +0 -0
  17. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/MANIFEST.in +0 -0
  18. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/README.rst +0 -0
  19. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/docs/LICENSE.GPL +0 -0
  20. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/docs/LICENSE.txt +0 -0
  21. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/plone/__init__.py +0 -0
  22. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/plone/app/__init__.py +0 -0
  23. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/plone/app/customerize/README.txt +0 -0
  24. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/plone/app/customerize/TODO.txt +0 -0
  25. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/plone/app/customerize/__init__.py +0 -0
  26. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/plone/app/customerize/browser.py +0 -0
  27. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/plone/app/customerize/configure.zcml +0 -0
  28. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/plone/app/customerize/customize.pt +0 -0
  29. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/plone/app/customerize/dependencies.zcml +0 -0
  30. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/plone/app/customerize/registration.py +0 -0
  31. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/plone/app/customerize/testing.py +0 -0
  32. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/plone/app/customerize/tests/__init__.py +0 -0
  33. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/plone/app/customerize/tests/duplicate_viewlet.zcml +0 -0
  34. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/plone/app/customerize/tests/interfaces.py +0 -0
  35. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/plone/app/customerize/tests/local.pt +0 -0
  36. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/plone/app/customerize/tests/profiles/testing/viewlets.xml +0 -0
  37. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/plone/app/customerize/tests/standard.pt +0 -0
  38. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/plone/app/customerize/tests/testDocTests.py +0 -0
  39. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/plone/app/customerize/tests/testing.zcml +0 -0
  40. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/plone/app/customerize/tests/viewlets.py +0 -0
  41. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/plone/app/customerize/tool.gif +0 -0
  42. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/plone/app/customerize/tool.py +0 -0
  43. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/plone.app.customerize.egg-info/SOURCES.txt +0 -0
  44. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/plone.app.customerize.egg-info/dependency_links.txt +0 -0
  45. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/plone.app.customerize.egg-info/namespace_packages.txt +0 -0
  46. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/plone.app.customerize.egg-info/not-zip-safe +0 -0
  47. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/plone.app.customerize.egg-info/top_level.txt +0 -0
  48. {plone.app.customerize-2.0.1 → plone_app_customerize-2.0.2}/setup.cfg +0 -0
@@ -1,5 +1,5 @@
1
1
  # Generated from:
2
- # https://github.com/plone/meta/tree/master/config/default
2
+ # https://github.com/plone/meta/tree/main/config/default
3
3
  # See the inline comments on how to expand/tweak this configuration file
4
4
  #
5
5
  # EditorConfig Configuration file, for more details see:
@@ -29,13 +29,14 @@ max_line_length = off
29
29
  # 4 space indentation
30
30
  indent_size = 4
31
31
 
32
- [*.{yml,zpt,pt,dtml,zcml}]
32
+ [*.{yml,zpt,pt,dtml,zcml,html,xml}]
33
33
  # 2 space indentation
34
34
  indent_size = 2
35
35
 
36
- [*.{json,jsonl,js,jsx,ts,tsx,css,less,scss,html}] # Frontend development
36
+ [*.{json,jsonl,js,jsx,ts,tsx,css,less,scss}] # Frontend development
37
37
  # 2 space indentation
38
38
  indent_size = 2
39
+ max_line_length = 80
39
40
 
40
41
  [{Makefile,.gitmodules}]
41
42
  # Tab indentation (no size specified, but view as 4 spaces)
@@ -1,5 +1,5 @@
1
1
  # Generated from:
2
- # https://github.com/plone/meta/tree/master/config/default
2
+ # https://github.com/plone/meta/tree/main/config/default
3
3
  # See the inline comments on how to expand/tweak this configuration file
4
4
  [flake8]
5
5
  doctests = 1
@@ -1,14 +1,18 @@
1
1
  # Generated from:
2
- # https://github.com/plone/meta/tree/master/config/default
2
+ # https://github.com/plone/meta/tree/main/config/default
3
3
  # See the inline comments on how to expand/tweak this configuration file
4
4
  # python related
5
5
  *.egg-info
6
6
  *.pyc
7
7
  *.pyo
8
8
 
9
+ # translation related
10
+ *.mo
11
+
9
12
  # tools related
10
13
  build/
11
14
  .coverage
15
+ .*project
12
16
  coverage.xml
13
17
  dist/
14
18
  docs/_build
@@ -31,6 +35,7 @@ lib64
31
35
  parts/
32
36
  pyvenv.cfg
33
37
  var/
38
+ local.cfg
34
39
 
35
40
  # mxdev
36
41
  /instance/
@@ -1,9 +1,9 @@
1
1
  # Generated from:
2
- # https://github.com/plone/meta/tree/master/config/default
2
+ # https://github.com/plone/meta/tree/main/config/default
3
3
  # See the inline comments on how to expand/tweak this configuration file
4
4
  [meta]
5
5
  template = "default"
6
- commit-id = "cfffba8c"
6
+ commit-id = "6e36bcc4"
7
7
 
8
8
  [pre_commit]
9
9
  extra_lines = """
@@ -1,5 +1,5 @@
1
1
  # Generated from:
2
- # https://github.com/plone/meta/tree/master/config/default
2
+ # https://github.com/plone/meta/tree/main/config/default
3
3
  # See the inline comments on how to expand/tweak this configuration file
4
4
  ci:
5
5
  autofix_prs: false
@@ -7,16 +7,16 @@ ci:
7
7
 
8
8
  repos:
9
9
  - repo: https://github.com/asottile/pyupgrade
10
- rev: v3.14.0
10
+ rev: v3.19.1
11
11
  hooks:
12
12
  - id: pyupgrade
13
13
  args: [--py38-plus]
14
14
  - repo: https://github.com/pycqa/isort
15
- rev: 5.12.0
15
+ rev: 5.13.2
16
16
  hooks:
17
17
  - id: isort
18
18
  - repo: https://github.com/psf/black
19
- rev: 23.9.1
19
+ rev: 24.10.0
20
20
  hooks:
21
21
  - id: black
22
22
  - repo: https://github.com/collective/zpretty
@@ -32,7 +32,7 @@ repos:
32
32
  # """
33
33
  ##
34
34
  - repo: https://github.com/PyCQA/flake8
35
- rev: 6.1.0
35
+ rev: 7.1.1
36
36
  hooks:
37
37
  - id: flake8
38
38
 
@@ -44,7 +44,7 @@ repos:
44
44
  # """
45
45
  ##
46
46
  - repo: https://github.com/codespell-project/codespell
47
- rev: v2.2.6
47
+ rev: v2.3.0
48
48
  hooks:
49
49
  - id: codespell
50
50
  additional_dependencies:
@@ -58,7 +58,7 @@ repos:
58
58
  # """
59
59
  ##
60
60
  - repo: https://github.com/mgedmin/check-manifest
61
- rev: "0.49"
61
+ rev: "0.50"
62
62
  hooks:
63
63
  - id: check-manifest
64
64
  - repo: https://github.com/regebro/pyroma
@@ -66,14 +66,24 @@ repos:
66
66
  hooks:
67
67
  - id: pyroma
68
68
  - repo: https://github.com/mgedmin/check-python-versions
69
- rev: "0.21.2"
69
+ rev: "0.22.1"
70
70
  hooks:
71
71
  - id: check-python-versions
72
72
  args: ['--only', 'setup.py,pyproject.toml']
73
73
  - repo: https://github.com/collective/i18ndude
74
- rev: "6.0.0"
74
+ rev: "6.2.1"
75
75
  hooks:
76
76
  - id: i18ndude
77
+
78
+
79
+ ##
80
+ # Add extra configuration options in .meta.toml:
81
+ # [pre_commit]
82
+ # i18ndude_extra_lines = """
83
+ # _your own configuration lines_
84
+ # """
85
+ ##
86
+
77
87
  exclude: tests/.*pt
78
88
 
79
89
  ##
@@ -9,6 +9,15 @@ Changelog
9
9
 
10
10
  .. towncrier release notes start
11
11
 
12
+ 2.0.2 (2025-01-24)
13
+ ------------------
14
+
15
+ Bug fixes:
16
+
17
+
18
+ - Fix DeprecationWarnings. [maurits] (#4090)
19
+
20
+
12
21
  2.0.1 (2023-10-07)
13
22
  ------------------
14
23
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: plone.app.customerize
3
- Version: 2.0.1
3
+ Version: 2.0.2
4
4
  Summary: Integrate five.customerize into Plone.
5
5
  Home-page: https://pypi.org/project/plone.app.customerize/
6
6
  Author: Plone Foundation
@@ -30,12 +30,8 @@ Requires-Dist: setuptools
30
30
  Requires-Dist: five.customerize
31
31
  Requires-Dist: plone.browserlayer
32
32
  Requires-Dist: plone.portlets
33
- Requires-Dist: zope.component
34
- Requires-Dist: zope.interface
35
- Requires-Dist: zope.publisher
36
- Requires-Dist: zope.viewlet
37
33
  Requires-Dist: Products.CMFCore
38
- Requires-Dist: Acquisition
34
+ Requires-Dist: Zope
39
35
  Provides-Extra: test
40
36
  Requires-Dist: Products.GenericSetup; extra == "test"
41
37
  Requires-Dist: plone.app.layout; extra == "test"
@@ -65,6 +61,15 @@ Changelog
65
61
 
66
62
  .. towncrier release notes start
67
63
 
64
+ 2.0.2 (2025-01-24)
65
+ ------------------
66
+
67
+ Bug fixes:
68
+
69
+
70
+ - Fix DeprecationWarnings. [maurits] (#4090)
71
+
72
+
68
73
  2.0.1 (2023-10-07)
69
74
  ------------------
70
75
 
@@ -1,7 +1,9 @@
1
1
  <h1 tal:replace="structure context/manage_page_header"></h1>
2
2
  <h1 tal:replace="structure context/manage_tabs"></h1>
3
3
 
4
- <main class="container-fluid">
4
+ <main class="container-fluid"
5
+ i18n:ignore="true"
6
+ >
5
7
 
6
8
  <style type="text/css">
7
9
  dd span.type {
@@ -14,14 +16,13 @@
14
16
 
15
17
  <div class="alert alert-danger"
16
18
  role="alert"
17
- i18n:ignore="true"
18
19
  >
19
20
  ATTENTION: beware using this tool.
20
21
  Errors (e.g.
21
- <code i18n:ignore="true">TypeError</code>,
22
- <code i18n:ignore="true">Unauthorized</code>
22
+ <code>TypeError</code>,
23
+ <code>Unauthorized</code>
23
24
  etc) may popup if some kinds of
24
- <code i18n:ignore="true">python:</code>
25
+ <code>python:</code>
25
26
  expressions are used in the template.
26
27
  This makes it impossible to customize those here (try z3c.jbot or regular zcml overrides instead).
27
28
  The reason is that browser view templates are Chameleon Pagetemplates while items in portal_view_customization are Zope 2 templates.
@@ -29,17 +30,12 @@
29
30
  If that happens just delete the custom copy using the Contents tab above.
30
31
  </div>
31
32
 
32
- <p class="form-help"
33
- i18n:ignore="true"
34
- >
33
+ <p class="form-help">
35
34
  The following list shows all registered (template-based) views
36
35
  sorted by interface. Click one of the links to see the contents
37
36
  of the view template and possibly customize it. Views that already
38
37
  have been customized are
39
- <span class="customized"
40
- i18n:ignore="true"
41
- >highlighted like
42
- this</span>.
38
+ <span class="customized">highlighted like this</span>.
43
39
  </p>
44
40
 
45
41
  <article tal:repeat="iface python:view.getTemplateViewRegistrations(mangle=False)">
@@ -15,7 +15,7 @@ product is installed, we cannot view the view, though:
15
15
  >>> from plone.app.testing import SITE_OWNER_NAME, SITE_OWNER_PASSWORD
16
16
  >>> portal = layer['portal']
17
17
 
18
- >>> from plone.testing.z2 import Browser
18
+ >>> from plone.testing.zope import Browser
19
19
  >>> browser = Browser(layer['app'])
20
20
  >>> browser.handleErrors = False
21
21
  >>> browser.addHeader('Authorization', 'Basic %s:%s' % (
@@ -4,7 +4,7 @@ view via the ZMI:
4
4
  >>> import transaction
5
5
  >>> portal = layer['portal']
6
6
 
7
- >>> from plone.testing.z2 import Browser
7
+ >>> from plone.testing.zope import Browser
8
8
  >>> from plone.app.testing import SITE_OWNER_NAME, SITE_OWNER_PASSWORD
9
9
  >>> browser = Browser(layer['app'])
10
10
  >>> browser.addHeader('Authorization', 'Basic %s:%s' % (
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: plone.app.customerize
3
- Version: 2.0.1
3
+ Version: 2.0.2
4
4
  Summary: Integrate five.customerize into Plone.
5
5
  Home-page: https://pypi.org/project/plone.app.customerize/
6
6
  Author: Plone Foundation
@@ -30,12 +30,8 @@ Requires-Dist: setuptools
30
30
  Requires-Dist: five.customerize
31
31
  Requires-Dist: plone.browserlayer
32
32
  Requires-Dist: plone.portlets
33
- Requires-Dist: zope.component
34
- Requires-Dist: zope.interface
35
- Requires-Dist: zope.publisher
36
- Requires-Dist: zope.viewlet
37
33
  Requires-Dist: Products.CMFCore
38
- Requires-Dist: Acquisition
34
+ Requires-Dist: Zope
39
35
  Provides-Extra: test
40
36
  Requires-Dist: Products.GenericSetup; extra == "test"
41
37
  Requires-Dist: plone.app.layout; extra == "test"
@@ -65,6 +61,15 @@ Changelog
65
61
 
66
62
  .. towncrier release notes start
67
63
 
64
+ 2.0.2 (2025-01-24)
65
+ ------------------
66
+
67
+ Bug fixes:
68
+
69
+
70
+ - Fix DeprecationWarnings. [maurits] (#4090)
71
+
72
+
68
73
  2.0.1 (2023-10-07)
69
74
  ------------------
70
75
 
@@ -2,12 +2,8 @@ setuptools
2
2
  five.customerize
3
3
  plone.browserlayer
4
4
  plone.portlets
5
- zope.component
6
- zope.interface
7
- zope.publisher
8
- zope.viewlet
9
5
  Products.CMFCore
10
- Acquisition
6
+ Zope
11
7
 
12
8
  [test]
13
9
  Products.GenericSetup
@@ -1,6 +1,9 @@
1
1
  # Generated from:
2
- # https://github.com/plone/meta/tree/master/config/default
2
+ # https://github.com/plone/meta/tree/main/config/default
3
3
  # See the inline comments on how to expand/tweak this configuration file
4
+ [build-system]
5
+ requires = ["setuptools>=68.2"]
6
+
4
7
  [tool.towncrier]
5
8
  directory = "news/"
6
9
  filename = "CHANGES.rst"
@@ -125,7 +128,6 @@ python-dateutil = ['dateutil']
125
128
  # "gitpython = ['git']",
126
129
  # "pygithub = ['github']",
127
130
  # ]
128
- # """
129
131
  ##
130
132
 
131
133
  [tool.check-manifest]
@@ -3,7 +3,7 @@ from setuptools import find_packages
3
3
  from setuptools import setup
4
4
 
5
5
 
6
- version = "2.0.1"
6
+ version = "2.0.2"
7
7
 
8
8
  long_description = (
9
9
  f"{Path('README.rst').read_text()}\n{Path('CHANGES.rst').read_text()}"
@@ -57,12 +57,8 @@ setup(
57
57
  "five.customerize",
58
58
  "plone.browserlayer",
59
59
  "plone.portlets",
60
- "zope.component",
61
- "zope.interface",
62
- "zope.publisher",
63
- "zope.viewlet",
64
60
  "Products.CMFCore",
65
- "Acquisition",
61
+ "Zope",
66
62
  ],
67
63
  platforms="Any",
68
64
  zip_safe=False,
@@ -1,5 +1,5 @@
1
1
  # Generated from:
2
- # https://github.com/plone/meta/tree/master/config/default
2
+ # https://github.com/plone/meta/tree/main/config/default
3
3
  # See the inline comments on how to expand/tweak this configuration file
4
4
  [tox]
5
5
  # We need 4.4.0 for constrain_package_deps.
@@ -32,6 +32,21 @@ commands =
32
32
  echo "Unrecognized environment name {envname}"
33
33
  false
34
34
 
35
+ ##
36
+ # Add extra configuration options in .meta.toml:
37
+ # [tox]
38
+ # testenv_options = """
39
+ # basepython = /usr/bin/python3.8
40
+ # """
41
+ ##
42
+
43
+ [testenv:init]
44
+ description = Prepare environment
45
+ skip_install = true
46
+ commands =
47
+ echo "Initial setup complete"
48
+
49
+
35
50
  [testenv:format]
36
51
  description = automatically reformat code
37
52
  skip_install = true
@@ -56,9 +71,9 @@ description = check if the package defines all its dependencies
56
71
  skip_install = true
57
72
  deps =
58
73
  build
59
- z3c.dependencychecker==2.11
74
+ z3c.dependencychecker==2.14.3
60
75
  commands =
61
- python -m build --sdist --no-isolation
76
+ python -m build --sdist
62
77
  dependencychecker
63
78
 
64
79
  [testenv:dependencies-graph]
@@ -86,11 +101,20 @@ set_env =
86
101
  # test_environment_variables = """
87
102
  # PIP_EXTRA_INDEX_URL=https://my-pypi.my-server.com/
88
103
  # """
104
+ #
105
+ # Set constrain_package_deps .meta.toml:
106
+ # [tox]
107
+ # constrain_package_deps = "false"
89
108
  ##
90
109
  deps =
91
110
  zope.testrunner
92
111
  -c https://dist.plone.org/release/6.0-dev/constraints.txt
112
+
93
113
  ##
114
+ # Specify additional deps in .meta.toml:
115
+ # [tox]
116
+ # test_deps_additional = "-esources/plonegovbr.portal_base[test]"
117
+ #
94
118
  # Specify a custom constraints file in .meta.toml:
95
119
  # [tox]
96
120
  # constraints_file = "https://my-server.com/constraints.txt"
@@ -128,6 +152,7 @@ deps =
128
152
  coverage
129
153
  zope.testrunner
130
154
  -c https://dist.plone.org/release/6.0-dev/constraints.txt
155
+
131
156
  commands =
132
157
  coverage run --branch --source plone.app.customerize {envbindir}/zope-testrunner --quiet --all --test-path={toxinidir} -s plone.app.customerize {posargs}
133
158
  coverage report -m --format markdown
@@ -144,12 +169,13 @@ deps =
144
169
  build
145
170
  towncrier
146
171
  -c https://dist.plone.org/release/6.0-dev/constraints.txt
172
+
147
173
  commands =
148
174
  # fake version to not have to install the package
149
175
  # we build the change log as news entries might break
150
176
  # the README that is displayed on PyPI
151
177
  towncrier build --version=100.0.0 --yes
152
- python -m build --sdist --no-isolation
178
+ python -m build --sdist
153
179
  twine check dist/*
154
180
 
155
181
  [testenv:circular]
@@ -171,6 +197,7 @@ deps =
171
197
  pipdeptree
172
198
  pipforester
173
199
  -c https://dist.plone.org/release/6.0-dev/constraints.txt
200
+
174
201
  commands =
175
202
  # Generate the full dependency tree
176
203
  sh -c 'pipdeptree -j > forest.json'