pas.plugins.authomatic 2.0.0b3__tar.gz → 2.0.0rc2__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 (80) hide show
  1. pas_plugins_authomatic-2.0.0rc2/CHANGELOG.md +238 -0
  2. pas_plugins_authomatic-2.0.0rc2/CONTRIBUTORS.md +7 -0
  3. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2}/PKG-INFO +12 -5
  4. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2}/README.md +3 -3
  5. pas_plugins_authomatic-2.0.0rc2/dependabot.yml +11 -0
  6. pas_plugins_authomatic-2.0.0rc2/docs/authomatic.svg +18 -0
  7. pas_plugins_authomatic-2.0.0rc2/docs/plone-control-panel.png +0 -0
  8. pas_plugins_authomatic-2.0.0rc2/docs/plugin-settings.png +0 -0
  9. pas_plugins_authomatic-2.0.0rc2/instance.yaml +3 -0
  10. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2}/pyproject.toml +54 -122
  11. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/__init__.py +1 -1
  12. pas_plugins_authomatic-2.0.0rc2/src/pas/plugins/authomatic/browser/add_plugin.pt +45 -0
  13. pas_plugins_authomatic-2.0.0rc2/src/pas/plugins/authomatic/browser/authomatic.pt +61 -0
  14. pas.plugins.authomatic-2.0.0b3/pas/plugins/authomatic/locales/update.py → pas_plugins_authomatic-2.0.0rc2/src/pas/plugins/authomatic/locales/__main__.py +15 -29
  15. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/locales/de/LC_MESSAGES/pas.plugins.authomatic.po +4 -4
  16. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/locales/es/LC_MESSAGES/pas.plugins.authomatic.po +4 -4
  17. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/locales/fr/LC_MESSAGES/pas.plugins.authomatic.po +4 -4
  18. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/locales/it/LC_MESSAGES/pas.plugins.authomatic.po +4 -4
  19. pas_plugins_authomatic-2.0.0rc2/src/pas/plugins/authomatic/locales/pas.plugins.authomatic-manual.pot +106 -0
  20. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/locales/pas.plugins.authomatic.pot +4 -4
  21. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/locales/pt_BR/LC_MESSAGES/pas.plugins.authomatic.po +4 -4
  22. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/locales/ro/LC_MESSAGES/pas.plugins.authomatic.po +4 -4
  23. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/patches/authomatic.py +8 -8
  24. pas_plugins_authomatic-2.0.0rc2/tests/conftest.py +76 -0
  25. pas_plugins_authomatic-2.0.0rc2/tests/functional/conftest.py +0 -0
  26. pas_plugins_authomatic-2.0.0rc2/tests/functional/test_controlpanel.py +66 -0
  27. pas_plugins_authomatic-2.0.0rc2/tests/functional/test_controlpanel_functional.py +57 -0
  28. pas_plugins_authomatic-2.0.0rc2/tests/plugin/conftest.py +7 -0
  29. pas_plugins_authomatic-2.0.0rc2/tests/plugin/test_plugin.py +128 -0
  30. pas_plugins_authomatic-2.0.0rc2/tests/plugin/test_useridentities.py +169 -0
  31. pas_plugins_authomatic-2.0.0rc2/tests/plugin/test_useridfactories.py +24 -0
  32. pas_plugins_authomatic-2.0.0rc2/tests/services/conftest.py +31 -0
  33. pas_plugins_authomatic-2.0.0rc2/tests/services/test_services_authomatic.py +51 -0
  34. pas_plugins_authomatic-2.0.0rc2/tests/services/test_services_login.py +27 -0
  35. pas_plugins_authomatic-2.0.0rc2/tests/setup/test_setup_install.py +17 -0
  36. pas_plugins_authomatic-2.0.0rc2/tests/setup/test_setup_uninstall.py +19 -0
  37. pas_plugins_authomatic-2.0.0rc2/tests/setup/test_setuphandler.py +36 -0
  38. pas_plugins_authomatic-2.0.0rc2/tests/setup/test_upgrades.py +29 -0
  39. pas.plugins.authomatic-2.0.0b3/pas/plugins/authomatic/browser/add_plugin.pt +0 -28
  40. pas.plugins.authomatic-2.0.0b3/pas/plugins/authomatic/browser/authomatic.pt +0 -49
  41. pas.plugins.authomatic-2.0.0b3/pas/plugins/authomatic/locales/pas.plugins.authomatic-manual.pot +0 -21
  42. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2}/.gitignore +0 -0
  43. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2}/LICENSE.txt +0 -0
  44. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/__init__.py +0 -0
  45. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/__init__.py +0 -0
  46. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/browser/__init__.py +0 -0
  47. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/browser/authomatic.png +0 -0
  48. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/browser/configure.zcml +0 -0
  49. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/browser/controlpanel.py +0 -0
  50. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/browser/resources/authomatic-logo.svg +0 -0
  51. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/browser/resources/authomatic.css +0 -0
  52. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/browser/resources/authomatic.less +0 -0
  53. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/browser/view.py +0 -0
  54. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/configure.zcml +0 -0
  55. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/integration/__init__.py +0 -0
  56. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/integration/restapi.py +0 -0
  57. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/integration/zope.py +0 -0
  58. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/interfaces.py +0 -0
  59. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/locales/__init__.py +0 -0
  60. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/log.py +0 -0
  61. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/meta.zcml +0 -0
  62. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/patches/__init__.py +0 -0
  63. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/plugin.py +0 -0
  64. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/profiles/default/browserlayer.xml +0 -0
  65. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/profiles/default/controlpanel.xml +0 -0
  66. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/profiles/default/metadata.xml +0 -0
  67. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/profiles/default/registry.xml +0 -0
  68. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/profiles/uninstall/browserlayer.xml +0 -0
  69. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/profiles/uninstall/controlpanel.xml +0 -0
  70. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/profiles/uninstall/registry.xml +0 -0
  71. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/profiles.zcml +0 -0
  72. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/services/__init__.py +0 -0
  73. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/services/authomatic.py +0 -0
  74. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/services/configure.zcml +0 -0
  75. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/services/login.py +0 -0
  76. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/setuphandlers.py +0 -0
  77. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/testing.py +0 -0
  78. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/useridentities.py +0 -0
  79. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/useridfactories.py +0 -0
  80. {pas.plugins.authomatic-2.0.0b3 → pas_plugins_authomatic-2.0.0rc2/src}/pas/plugins/authomatic/utils.py +0 -0
@@ -0,0 +1,238 @@
1
+ # Changelog
2
+ <!--
3
+ You should *NOT* be adding new change log entries to this file.
4
+ You should create a file in the news directory instead.
5
+ For helpful instructions, please see:
6
+ https://github.com/plone/plone.releaser/blob/master/ADD-A-NEWS-ITEM.rst
7
+ -->
8
+
9
+ <!-- towncrier release notes start -->
10
+
11
+ ## 2.0.0rc2 (2025-04-03)
12
+
13
+
14
+ ### Bug fixes:
15
+
16
+ - Add missing `plone.api` dependency. @mauritsvanrees [#95](https://github.com/collective/pas.plugins.authomatic/issues/95)
17
+
18
+ ## 2.0.0rc1 (2025-03-27)
19
+
20
+
21
+ ### New features:
22
+
23
+ - - Documented integration with Microsoft Entra ID @alecghica [#87](https://github.com/collective/pas.plugins.authomatic/issues/87)
24
+
25
+
26
+ ### Internal:
27
+
28
+ - Add suuport to Python 3.13 @ericof [#89](https://github.com/collective/pas.plugins.authomatic/issues/89)
29
+ - Use UV to manage the environment @ericof [#90](https://github.com/collective/pas.plugins.authomatic/issues/90)
30
+ - Update .vscode configuration @ericof [#91](https://github.com/collective/pas.plugins.authomatic/issues/91)
31
+ - GHA: Update workflows. @ericof [#92](https://github.com/collective/pas.plugins.authomatic/issues/92)
32
+ - Use pytest-plone 1.0.0a1 @ericof [#93](https://github.com/collective/pas.plugins.authomatic/issues/93)
33
+
34
+ ## 2.0.0b3 (2025-02-03)
35
+
36
+
37
+ ### New features:
38
+
39
+ - Register the adapter as needed by the @login endpoint present in plone.restapi @erral [#73](https://github.com/collective/pas.plugins.authomatic/issues/73)
40
+
41
+
42
+ ### Internal:
43
+
44
+ - Require plone.restapi higher than 9.10.0 [@ericof]
45
+
46
+ ## 2.0.0b2 (2025-01-14)
47
+
48
+
49
+ ### Internal:
50
+
51
+ - Move CHANGELOG.md entries to CHANGES.md [@ericof] [#84](https://github.com/collective/pas.plugins.authomatic/issues/84)
52
+ - Document release process [@ericof] [#85](https://github.com/collective/pas.plugins.authomatic/issues/85)
53
+ - Rename logging.py to log.py [@ericof] [#86](https://github.com/collective/pas.plugins.authomatic/issues/86)
54
+
55
+ ## 2.0.0b1 (2025-01-14)
56
+
57
+
58
+ ### Internal:
59
+
60
+ - Modernize package repository [@ericof] [#71](https://github.com/collective/pas.plugins.authomatic/issues/71)
61
+ - Move tests to pytest [@ericof] [#72](https://github.com/collective/pas.plugins.authomatic/issues/72)
62
+ - Drop Plone 5.2 support [@ericof] [#80](https://github.com/collective/pas.plugins.authomatic/issues/80)
63
+ - Update i18n mechanism, update Brazilian Portuguese translation [@ericof] [#82](https://github.com/collective/pas.plugins.authomatic/issues/82)
64
+
65
+
66
+ ## 1.4.0 (2024-12-13)
67
+
68
+
69
+ - Patch `authomatic.providers.BaseProvider._fetch` to support Python 3.12 @ericof.
70
+
71
+
72
+ ## 1.3.0 (2024-11-21)
73
+
74
+ - Search users by fullname and email. @alecghica
75
+ - Fix login on Volto frontend when already logged-in in Plone Classic. @avoinea
76
+ - Add the possibility to override the ZopeRequestAdapter.
77
+ - Fix the authomatic view when it is reporting an exception that does not have a message attribute
78
+
79
+
80
+ ## 1.2.0 (2023-09-13)
81
+
82
+ - Add Spanish translation. @macagua
83
+
84
+ - Better handle values from identity data. @cekk
85
+
86
+ - Add `username_userid` User ID factory. @ericof
87
+
88
+ - Annotate transaction in POST calls to authenticate a user. @ericof
89
+
90
+
91
+ ## 1.1.2 (2023-03-15)
92
+
93
+ - Support Python 3.11 for Plone 6. @ericof
94
+
95
+ - Lint fixes @ericof
96
+
97
+
98
+ ## 1.1.1 (2022-10-14)
99
+
100
+ - Upgrade plone/code-analysis-action to version 2. @ericof
101
+
102
+ - Fix packaging issue related to CHANGELOG.md not being included in the source package. @ericof
103
+
104
+ - Support Python 3.10 for Plone 6. @ericof
105
+
106
+
107
+ ## 1.1.0 (2022-10-10)
108
+
109
+ - Add the plone.restapi adapter to show the controlpanel in Volto. @erral
110
+
111
+ - Add possibility to redirect to `next_url` via provided cookie @avoinea
112
+
113
+
114
+ ## 1.0.0 (2022-07-25)
115
+
116
+ - Use plone/plone-setup GitHub Action. @ericof
117
+
118
+ - Add Brazilian Portuguese translation. @ericof
119
+
120
+ - Use plone/code-analysis-action GitHub Action for code analysis. @ericof
121
+
122
+ - Fix doChangeUser takes 2 positional arguments but 3 were given @avoinea
123
+
124
+ ## 1.0b2 (2021-08-18)
125
+
126
+ - Fix tox setup, move CI from TravisCI to GitHub Actions. @jensens
127
+
128
+ - Code Style Black, Isort, zpretty and Pyupgrade applied. @jensens
129
+
130
+ - Add missing no-op methods for IUserManagement to plugin.
131
+ This fixes the tests. @jensens
132
+
133
+ - Drop Python 2 support and so require Plone 5.2. @jensens
134
+
135
+ - Include permissions from CMFCore to avoid ComponentLookupError. @bsuttor
136
+
137
+ - Fixed ModuleNotFoundError: No module named 'App.class_init' on Zope 5. @bsuttor
138
+
139
+ - Add french translation @mpeeters
140
+
141
+ - PAS event notification IPrincipalCreatedEvent. @jensens
142
+
143
+ - Python 3 and Plone 52 compatibility. @cekk
144
+
145
+ - Fix #44: Fullfill strictly exact_match when enumerating users @allusa
146
+
147
+ - Allow users deletion. @cekk
148
+
149
+ - Drop Plone < 5.1.x compatibility. @cekk
150
+
151
+ - Fix #54: Notification of PrincipalCreated event. @ericof
152
+
153
+ - Closes #55: Support plone.restapi. @ericof
154
+
155
+ ## 1.0b1 (2017-11-20)
156
+
157
+ - Slighly beautify login modal. @jensens
158
+
159
+ - Fix #33" Page does not exist Control Settings. @jensens
160
+
161
+ - Fix #31: Link is broken to JSON configuration documentation in help text. @jensens
162
+
163
+ - Fix #28: After uninstall plone.external_login_url is still registered and the login broken. @jensens
164
+
165
+ - Support for Plone 5.1 tested (worked, ust control-panel icon needed some tweak).
166
+ Buildout configuration for 5.1 added. @jensens
167
+
168
+ - Install: Hide non-valid profiles at install form. @jensens
169
+
170
+ - Additional checks to ensure to never have an empty/None key stored. @jensens
171
+
172
+ - Fix #27: Update user data after login. @jensens
173
+
174
+ - Fix filter users bug in enumerateUsers plugin where it was always returning
175
+ all the users. @sneridagh
176
+
177
+ - fix typo and wording of login message @tkimnguyen
178
+
179
+
180
+ ## 1.0a7 (2016-02-15)
181
+
182
+ - Workaround for None users. @sneridagh
183
+
184
+
185
+ ## 1.0a6 (2016-01-11)
186
+
187
+ - Fix #21: When you logout and then login again, a new user is created. @jensens
188
+
189
+
190
+ ## 1.0a5 (2015-12-04)
191
+
192
+ - Fix: #18 "Provider Login" option for "Generator for Plone User ID" seems
193
+ broken @jensens
194
+
195
+ - Fix: Title indicates if an identity is added @jensens
196
+
197
+ - Fix: Correct usage of plone.protect @jensens
198
+
199
+
200
+ ## 1.0a4 (2015-11-20)
201
+
202
+ - Added german translation @jensens
203
+
204
+ - Restored Plone 4 compatibility @keul
205
+
206
+ - Added italian translation @keul
207
+
208
+ - Proper uninstall @keul
209
+
210
+ ## 1.0a3 (2015-11-15)
211
+
212
+ - Refactor authomatic-handler to enable adding identities. @jensens
213
+
214
+ - Fix: use secret from settings as secret for Authomatic. @jensens
215
+
216
+ - Renamed view ``authomatic-login`` to ``authomatic-handler``, because this
217
+ view will be used to add an identity too (url must be registered on provider
218
+ side sometimes and we want to do this only once). @jensens
219
+
220
+
221
+ ## 1.0a2 (2015-11-14)
222
+
223
+ - Minimal validation of JSON. @jensens
224
+
225
+ - Make the whole ``remember`` procedure a ``safeWrite`` if called from login
226
+ view. We can not pass a authenticator token here, because of redirects and
227
+ expected return urls . @jensens
228
+
229
+ - Allow selection of user id generator strategy. @jensens
230
+
231
+ - Allow multiple services for one user. This changes a lot behind the scenes. @jensens
232
+
233
+ - Use authomatic.core.User attributes instead of raw provider data. closes [#9](https://github.com/collective/pas.plugins.authomatic/issues/9) @ericof
234
+
235
+
236
+ ## 1.0a1 (2015-10-28)
237
+
238
+ - Initial release.
@@ -0,0 +1,7 @@
1
+ # Maintainers
2
+
3
+ * [Érico Andrei](https://github.com/ericof)
4
+ * [Jens Klein](https://github.com/jensens)
5
+
6
+ # Contributors
7
+ Several people helped to make this package work see [GitHub](https://github.com/collective/pas.plugins.authomatic/graphs/contributors) for the whole list.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pas.plugins.authomatic
3
- Version: 2.0.0b3
3
+ Version: 2.0.0rc2
4
4
  Summary: Provides OAuth2/OpenID login for Plone using Authomatic.
5
5
  Project-URL: Changelog, https://github.com/collective/pas.plugins.authomatic/blob/main/CHANGELOG.md
6
6
  Project-URL: Homepage, https://github.com/collective/pas.plugins.authomatic
@@ -22,10 +22,13 @@ Classifier: Framework :: Zope :: 5
22
22
  Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
23
23
  Classifier: Programming Language :: Python
24
24
  Classifier: Programming Language :: Python :: 3 :: Only
25
+ Classifier: Programming Language :: Python :: 3.10
25
26
  Classifier: Programming Language :: Python :: 3.11
26
27
  Classifier: Programming Language :: Python :: 3.12
27
- Requires-Python: >=3.11
28
+ Classifier: Programming Language :: Python :: 3.13
29
+ Requires-Python: >=3.10
28
30
  Requires-Dist: authomatic>=1.3.0
31
+ Requires-Dist: plone-api
29
32
  Requires-Dist: plone-restapi>=9.10.0
30
33
  Requires-Dist: products-cmfplone>=6.0
31
34
  Provides-Extra: test
@@ -33,7 +36,11 @@ Requires-Dist: collective-mockmailhost; extra == 'test'
33
36
  Requires-Dist: plone-app-robotframework[debug]; extra == 'test'
34
37
  Requires-Dist: plone-app-testing; extra == 'test'
35
38
  Requires-Dist: plone-restapi[test]; extra == 'test'
39
+ Requires-Dist: pytest-cov; extra == 'test'
40
+ Requires-Dist: pytest-plone>=1.0.0a1; extra == 'test'
36
41
  Requires-Dist: zest-releaser[recommended]; extra == 'test'
42
+ Requires-Dist: zest-releaser[recommended]>=9.5.0; extra == 'test'
43
+ Requires-Dist: zestreleaser-towncrier>=1.3.0; extra == 'test'
37
44
  Description-Content-Type: text/markdown
38
45
 
39
46
  <div align="center"><img alt="logo" src="https://raw.githubusercontent.com/collective/pas.plugins.authomatic/main/docs/authomatic.svg" width="70" /></div>
@@ -74,7 +81,6 @@ through standards like OAuth and OpenID.
74
81
  ```
75
82
  *by author Peter Hudec on Authomatic website*
76
83
 
77
-
78
84
  ### Supported Providers
79
85
 
80
86
  Out of the box, **pas.plugins.authomatic** supports the following providers
@@ -160,7 +166,6 @@ This package supports Plone sites using Volto or the Classic UI.
160
166
  }
161
167
  ```
162
168
 
163
-
164
169
  ### Classic UI
165
170
 
166
171
  - This package creates a view called `authomatic-handler` where you can login with different providers.
@@ -241,6 +246,9 @@ There are some differences in configuration:
241
246
  - Each provider can get an optional entry `propertymap`.
242
247
  It is a mapping from authomatic/provider user properties to plone user properties, like `"fullname": "name",`. Look at each providers documentation which properties are available.
243
248
 
249
+ ## Integration with Entra ID
250
+
251
+ Enumeration PAS plugin: if you're using **pas.plugins.authomatic** with *Microsoft Entra ID*, we recommend pairing it with [pas.plugins.eea](https://github.com/eea/pas.plugins.eea) for proper user enumeration and metadata synchronization. This complementary plugin enables listing all the Entra ID users and groups and is compatible with both Plone 5 and Plone 6.
244
252
 
245
253
  ## Source Code and Contributions
246
254
 
@@ -249,7 +257,6 @@ If you want to help with the development (improvement, update, bug-fixing, ...)
249
257
  - [Issue Tracker](https://github.com/collective/pas.plugins.authomatic/issues)
250
258
  - [Source Code](https://github.com/collective/pas.plugins.authomatic/)
251
259
 
252
-
253
260
  Please do larger changes on a branch and submit a Pull Request.
254
261
 
255
262
  Creator of **pas.plugins.authomatic** is Jens Klein.
@@ -36,7 +36,6 @@ through standards like OAuth and OpenID.
36
36
  ```
37
37
  *by author Peter Hudec on Authomatic website*
38
38
 
39
-
40
39
  ### Supported Providers
41
40
 
42
41
  Out of the box, **pas.plugins.authomatic** supports the following providers
@@ -122,7 +121,6 @@ This package supports Plone sites using Volto or the Classic UI.
122
121
  }
123
122
  ```
124
123
 
125
-
126
124
  ### Classic UI
127
125
 
128
126
  - This package creates a view called `authomatic-handler` where you can login with different providers.
@@ -203,6 +201,9 @@ There are some differences in configuration:
203
201
  - Each provider can get an optional entry `propertymap`.
204
202
  It is a mapping from authomatic/provider user properties to plone user properties, like `"fullname": "name",`. Look at each providers documentation which properties are available.
205
203
 
204
+ ## Integration with Entra ID
205
+
206
+ Enumeration PAS plugin: if you're using **pas.plugins.authomatic** with *Microsoft Entra ID*, we recommend pairing it with [pas.plugins.eea](https://github.com/eea/pas.plugins.eea) for proper user enumeration and metadata synchronization. This complementary plugin enables listing all the Entra ID users and groups and is compatible with both Plone 5 and Plone 6.
206
207
 
207
208
  ## Source Code and Contributions
208
209
 
@@ -211,7 +212,6 @@ If you want to help with the development (improvement, update, bug-fixing, ...)
211
212
  - [Issue Tracker](https://github.com/collective/pas.plugins.authomatic/issues)
212
213
  - [Source Code](https://github.com/collective/pas.plugins.authomatic/)
213
214
 
214
-
215
215
  Please do larger changes on a branch and submit a Pull Request.
216
216
 
217
217
  Creator of **pas.plugins.authomatic** is Jens Klein.
@@ -0,0 +1,11 @@
1
+ # Generated from:
2
+ # https://github.com/plone/meta/tree/main/config/default
3
+ # See the inline comments on how to expand/tweak this configuration file
4
+ version: 2
5
+ updates:
6
+
7
+ - package-ecosystem: "github-actions"
8
+ directory: "/"
9
+ schedule:
10
+ # Check for updates to GitHub Actions every week
11
+ interval: "weekly"
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <!-- Created with Inkscape (http://www.inkscape.org/) -->
3
+ <svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="580" height="220" viewBox="0 0 580 220" preserveAspectRatio="xMidYMid meet" id="svg4101">
4
+ <defs id="defs4103"/>
5
+ <metadata id="metadata4106">
6
+ <rdf:RDF>
7
+ <cc:Work rdf:about="">
8
+ <dc:format>image/svg+xml</dc:format>
9
+ <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
10
+ <dc:title/>
11
+ </cc:Work>
12
+ </rdf:RDF>
13
+ </metadata>
14
+ <g transform="translate(398.57602,240.48884)" id="layer1">
15
+ <path d="m 110.64273,-240.4677 c -15.68317,0.4029 -28.53567,12.9032 -29.1875,28.75 l -0.03125,0.4688 c -0.006,0.2484 5e-5,0.5029 0,0.75 l 0,10 0,20 0,9.2812 c -0.40591,16.561 12.6884,30.313 29.25,30.7188 0.25052,0.01 0.50078,0 0.75,0 l 39.25,0 c 16.36744,0.4011 30.04589,-12.4234 30.71875,-28.7812 l 0.0313,-0.4688 c 0.006,-0.2484 -5e-5,-0.5029 0,-0.75 l 0,-10 0,-20 0,-9.2812 c 0.40588,-16.561 -12.6884,-30.2817 -29.25,-30.6876 -0.25052,-0.01 -0.50078,0 -0.75,0 l -39.25,0 c -0.51148,-0.012 -1.02534,-0.013 -1.53125,0 z m 0.78125,20 0.25,0 39.75,0 0.25,0 c 5.43697,0.1332 9.74979,4.5607 9.75,9.9688 0,0.083 0.002,0.166 0,0.25 l 0,9.75 0,18.2812 0,1.7188 0,10 c 0,0.083 0.002,0.166 0,0.25 l 0,0.1562 c -0.2209,5.3702 -4.65441,9.5948 -10,9.5938 l -0.25,0 -39.75,0 -0.25,0 c -5.43697,-0.1332 -9.74979,-4.5919 -9.75,-10 0,-0.083 -0.002,-0.166 0,-0.25 l 0,-9.75 0,-1.7188 0,-16.5624 0,-1.7188 0,-10 c 0,-0.083 -0.002,-0.166 0,-0.25 l 0,-0.1562 c 0.2209,-5.3702 4.65441,-9.5626 10,-9.5626 z" id="path3875" style="fill:#f2cb05;fill-opacity:1;stroke:none"/>
16
+ <path d="m -388.8169,-240.48578 c -5.52115,0.13529 -9.88523,4.72854 -9.74993,10.24943 l 0,0.15629 c 0.22092,5.3706 4.65374,9.59447 9.99993,9.59317 0.0822,0 0.1674,0 0.25,0 l 31.46854,0 28.03105,0 0.25,0 c 5.40889,2e-4 9.86669,4.31216 9.99993,9.74946 0.1353,5.52089 -4.22878,10.11414 -9.74993,10.24943 -0.0826,0 -0.16783,0 -0.25,0 l -28.28105,0 -12.46867,0 c -16.56346,0.40588 -29.65571,14.18561 -29.2498,30.74829 l 0.0313,0.46867 c 0.67289,16.3596 14.34922,29.18078 30.71849,28.77971 l 19.24987,0 c 0.0822,0 0.1674,0 0.25,0 5.52115,-0.1353 9.88523,-4.72854 9.74993,-10.24943 -0.13325,-5.4373 -4.59105,-9.74926 -9.99993,-9.74946 l -0.24999,0 -19.49988,0 c -0.0826,0 -0.16783,0 -0.24999,0 -5.3462,0 -9.77902,-4.22257 -9.99994,-9.59327 l 0,-0.15619 c -0.1353,-5.52089 4.22878,-10.11414 9.74994,-10.24943 0.0836,0 0.16686,0 0.25,0 l 28.28105,0 11.46867,0 0.25,0 c 5.40889,2e-4 9.86669,4.31216 9.99993,9.74946 0.002,0.084 0,0.16689 0,0.24998 l 0,19.99889 c 0,0.083 -0.002,0.16639 0,0.24999 l 0,0.15619 c 0.22432,5.4532 4.79351,9.72696 10.24994,9.59327 5.43757,-0.1333 9.74972,-4.59085 9.74993,-9.99945 0,-0.083 0.002,-0.16639 0,-0.24998 l 0,-58.93423 c 0.0134,-0.51177 0.0127,-1.01354 0,-1.53112 -0.39982,-16.31419 -13.77008,-29.28267 -29.9998,-29.27967 l -59.99959,0 c -0.0831,0 -0.16642,0 -0.25,0 z m 239.99837,0 c -5.52115,0.13529 -9.88523,4.72854 -9.74994,10.24943 l 0,0.15629 c 0.22092,5.3706 4.65374,9.59447 9.99994,9.59317 0.0822,0 0.1674,0 0.24999,0 l 19.49987,0 0.25,0 c 5.40888,2e-4 9.86668,4.31216 9.99993,9.74946 0.002,0.084 0,0.16689 0,0.24998 l 0,59.99667 c 0,0.083 -0.002,0.16639 0,0.24999 l 0,0.15619 c 0.22432,5.4532 4.79351,9.72696 10.24993,9.59327 5.43758,-0.1333 9.749726,-4.59085 9.749936,-9.99945 0,-0.083 0.002,-0.16639 0,-0.24998 l 0,-59.34041 0,-0.15629 c -0.002,-0.084 0,-0.16679 0,-0.24999 2.1e-4,-5.4086 4.31236,-9.86615 9.749933,-9.99944 0.0836,0 0.166859,0 0.249999,0 l 19.999863,0 c 0.0822,0 0.167399,0 0.249999,0 5.521152,-0.13529 9.885232,-4.72854 9.749933,-10.24943 -0.133249,-5.4373 -4.591048,-9.74926 -9.999932,-9.74946 l -0.249998,0 -79.749453,0 c -0.0831,0 -0.16642,0 -0.25,0 z m 119.999181,0 c -5.437573,0.13329 -9.749724,4.59085 -9.749934,9.99945 0,0.083 -0.002,0.16649 0,0.24998 l 0,0.15629 0,79.58928 c 0,0.083 -0.002,0.16639 0,0.24999 l 0,0.15619 c 0.224319,5.4532 4.793507,9.72696 10.24993,9.59327 5.437573,-0.1333 9.749724,-4.59085 9.749934,-9.99945 0,-0.083 0.002,-0.16639 0,-0.24998 l 0,-19.34273 0,-0.15619 c -0.002,-0.084 0,-0.16689 0,-0.24999 2.1e-4,-5.4086 4.31236,-9.86615 9.7499333,-9.99944 0.0836,0 0.1668589,0 0.2499983,0 l 39.7497294,0 0.249998,0 c 5.408883,2e-4 9.866683,4.31216 9.999932,9.74946 0.002,0.084 0,0.16689 0,0.24998 l 0,19.99889 c 0,0.083 -0.002,0.16639 0,0.24999 l 0,0.15619 c 0.224318,5.4532 4.793507,9.72696 10.24993,9.59327 5.437573,-0.1333 9.749724,-4.59085 9.749934,-9.99945 0,-0.083 0.002,-0.16639 0,-0.24998 l 0,-79.74557 c 0,-0.083 0.002,-0.1664 0,-0.24999 -0.135299,-5.52089 -4.728778,-9.88475 -10.24993,-9.74946 -5.437573,0.13329 -9.749724,4.59085 -9.749934,9.99945 0,0.083 -0.002,0.16649 0,0.24998 l 0,0.15629 0,19.34263 c 0.002,0.084 0,0.16689 0,0.24998 -2.1e-4,5.4087 -4.312361,9.86626 -9.749934,9.99945 -0.0826,0 -0.167828,0 -0.249998,0 l -39.7497291,0 c -0.082599,0 -0.1678288,0 -0.2499983,0 -5.3461936,0 -9.7790236,-4.22257 -9.9999316,-9.59317 l 0,-0.15629 c -0.002,-0.084 0,-0.16679 0,-0.24999 l 0,-19.99888 c 0,-0.083 0.002,-0.1664 0,-0.24999 -0.135299,-5.52089 -4.728778,-9.88475 -10.24993,-9.74946 z m -239.998361,0 c -5.43758,0.13329 -9.74973,4.59085 -9.74994,9.99945 0,0.083 -0.002,0.16649 0,0.24998 l 0,0.15629 0,58.77794 0,0.81245 c 5e-5,0.24709 -0.006,0.50157 0,0.74996 l 0.0313,0.46867 c 0.66248,16.10781 13.93615,28.77901 29.96851,28.77971 0.24922,0 0.49949,0.01 0.74999,0 l 38.46848,0 0.78125,0 c 0.2492,0 0.49947,0.01 0.74999,0 16.3179,-0.39988 29.26149,-13.76344 29.2498,-29.99834 -1.7e-4,-0.24168 0.006,-0.47577 0,-0.71876 l 0,-59.2779 c 0,-0.083 0.002,-0.1664 0,-0.24999 -0.1353,-5.52089 -4.72878,-9.88475 -10.24993,-9.74946 -5.43757,0.13329 -9.74972,4.59085 -9.74993,9.99945 0,0.083 -0.002,0.16649 0,0.24998 l 0,0.15629 0,31.31076 0,28.02965 c 0.002,0.084 0,0.16689 0,0.24998 -2.1e-4,5.4085 -4.31265,9.86625 -9.74994,9.99945 -0.0826,0 -0.16783,0 -0.24999,0 l -39.74972,0 c -0.0826,0 -0.16783,0 -0.25,0 -5.34591,0 -9.77903,-4.22277 -9.99993,-9.59327 l 0,-0.15619 c -0.002,-0.084 0,-0.16689 0,-0.24999 l 0,-28.27963 0,-31.71703 c 0,-0.083 0.002,-0.1664 0,-0.24999 -0.13531,-5.52089 -4.72879,-9.88475 -10.24994,-9.74946 z m -40.00803,119.99334 c -5.43757,0.13319 -9.74973,4.59084 -9.74994,9.99944 0,0.083 -0.002,0.16639 0,0.24999 l 0,0.15619 0,79.589376 c 0,0.083 -0.002,0.166391 0,0.249986 l 0,0.156191 c 0.22431,5.453197 4.79351,9.72696 10.24994,9.593268 5.43757,-0.133293 9.74972,-4.590845 9.74993,-9.999445 0,-0.08299 0.002,-0.166391 0,-0.249986 l 0,-79.74557 c 0,-0.083 0.002,-0.16639 0,-0.24999 -0.1353,-5.52089 -4.72878,-9.88475 -10.24993,-9.74945 z m -39.99973,0 c -5.43757,0.13319 -9.74972,4.59084 -9.74993,9.99944 0,0.083 -0.002,0.16639 0,0.24999 l 0,0.15619 0,79.589376 c 0,0.083 -0.002,0.166391 0,0.249986 l 0,0.156191 c 0.22431,5.453197 4.7935,9.72696 10.24993,9.593268 5.43757,-0.133293 9.74972,-4.590845 9.74993,-9.999445 0,-0.08299 0.002,-0.166391 0,-0.249986 l 0,-79.74557 c 0,-0.083 0.002,-0.16639 0,-0.24999 -0.1353,-5.52089 -4.72878,-9.88475 -10.24993,-9.74945 z m -39.99973,0 c -5.43757,0.13319 -9.74972,4.59084 -9.74993,9.99944 0,0.083 -0.002,0.16639 0,0.24999 l 0,0.15619 0,79.589376 c 0,0.083 -0.002,0.166391 0,0.249986 l 0,0.156191 c 0.22432,5.453197 4.79351,9.72696 10.24993,9.593268 5.43757,-0.133293 9.74972,-4.590845 9.74993,-9.999445 0,-0.08299 0.002,-0.166391 0,-0.249986 l 0,-79.74557 c 0,-0.083 0.002,-0.16639 0,-0.24999 -0.1353,-5.52089 -4.72877,-9.88475 -10.24993,-9.74945 z m 119.99919,0 c -5.52116,0.13529 -9.88524,4.72853 -9.74994,10.24943 l 0,0.15619 c 0.22092,5.3707 4.65374,9.59446 9.99993,9.59326 0.0822,0 0.1674,0 0.25,0 l 31.46854,0 28.03106,0 0.25,0 c 5.40786,2e-4 9.86673,4.312665 9.99993,9.749463 0.1353,5.520393 -4.22977,10.114138 -9.74994,10.24943 -0.083,0 -0.1678,0 -0.24999,0 l -28.28106,0 -12.46867,0 c -16.56038,0.405878 -29.65559,14.187112 -29.2498,30.748292 l 0.0313,0.468674 c 0.67275,16.358092 14.3523,29.180779 30.71849,28.779702 l 19.24987,0 c 0.0822,0 0.1674,0 0.25,0 5.52115,-0.135293 9.88523,-4.728538 9.74993,-10.249431 -0.13325,-5.437298 -4.59105,-9.749259 -9.99993,-9.749459 l -0.24999,0 -19.49987,0 c -0.083,0 -0.1679,0 -0.25,0 -5.34527,0 -9.77914,-4.223065 -9.99993,-9.593267 l 0,-0.156191 c -0.1353,-5.520393 4.22987,-10.114138 9.74993,-10.249431 0.084,0 0.1668,0 0.25,0 l 28.28106,0 11.46867,0 0.25,0 c 5.40786,2e-4 9.86663,4.312661 9.99993,9.749459 l 0,0.249986 0,19.998889 c 0,0.083 -0.002,0.166391 0,0.249986 l 0,0.156191 c 0.22432,5.453197 4.7935,9.72696 10.24993,9.593268 5.43757,-0.133293 9.74972,-4.590845 9.74993,-9.999445 0,-0.08299 0.002,-0.166391 0,-0.249986 l 0,-58.934226 c 0.013,-0.511772 0.013,-1.013644 0,-1.531215 -0.3999,-16.312699 -13.77321,-29.282569 -29.99979,-29.279569 l -59.9996,0 c -0.0831,0 -0.16641,0 -0.24999,0 z m 119.99918,0 c -5.52115,0.13529 -9.88523,4.72853 -9.74994,10.24943 l 0,0.15619 c 0.22092,5.3707 4.65374,9.59446 9.99994,9.59326 0.0822,0 0.1674,0 0.24999,0 l 19.49988,0 0.25,0 c 5.40886,2e-4 9.86662,4.312165 9.99992,9.749463 l 0,0.249986 0,59.996667 c 0,0.083 -0.002,0.166391 0,0.249986 l 0,0.156191 c 0.22432,5.453197 4.79351,9.72696 10.24993,9.593268 5.43758,-0.133293 9.749726,-4.590845 9.749936,-9.999445 0,-0.08299 0.002,-0.166391 0,-0.249986 l 0,-59.340504 0,-0.156191 0,-0.249986 c 2e-4,-5.4086 4.312371,-9.866249 9.749933,-9.999449 0.084,0 0.166799,0 0.249999,0 l 19.999863,0 c 0.0822,0 0.167399,0 0.249999,0 5.521152,-0.13529 9.885232,-4.72853 9.749933,-10.24943 -0.133249,-5.43729 -4.591048,-9.74925 -9.999932,-9.74945 l -0.249998,0 -79.749453,0 c -0.0831,0 -0.16642,0 -0.25,0 z m 119.999181,0 c -5.521153,0.13529 -9.885233,4.72853 -9.749934,10.24943 l 0,0.15619 c 0.220919,5.3707 4.653738,9.59446 9.999932,9.59326 0.0822,0 0.167399,0 0.249998,0 l 19.3436185,0 0.1562489,0 0.2499983,0 c 5.4088631,2e-4 9.8666328,4.312165 9.9999318,9.749463 l 0,0.249986 0,39.747792 0,0.249986 c -2e-4,5.408599 -4.3123706,9.866152 -9.7499335,9.999444 l -0.2499983,0 -19.9998637,0 c -0.0831,0 -0.166419,0 -0.249998,0 -5.521153,0.135293 -9.885233,4.728538 -9.749934,10.249431 l 0,0.156191 c 0.220919,5.370702 4.653738,9.594467 9.999932,9.593268 0.0822,0 0.167399,0 0.249998,0 l 79.749457,0 c 0.0822,0 0.167399,0 0.249998,0 5.521153,-0.135293 9.885233,-4.728538 9.749934,-10.249431 -0.133249,-5.437298 -4.591049,-9.749259 -9.999932,-9.749459 l -0.249998,0 -19.499868,0 -0.249998,0 c -5.408863,-2e-4 -9.866733,-4.31216 -9.999932,-9.749458 l 0,-0.249986 0,-39.747792 0,-0.249986 c -0.001,-5.346003 4.222722,-9.778559 9.593685,-9.999449 l 0.156249,0 0.249998,0 19.999864,0 c 0.0822,0 0.167399,0 0.249998,0 5.521153,-0.13529 9.885233,-4.72853 9.749934,-10.24943 -0.133249,-5.43729 -4.591049,-9.74925 -9.999932,-9.74945 l -0.249998,0 -79.749457,0 c -0.0831,0 -0.166419,0 -0.249998,0 z m 139.499049,0 -0.46875,0.031 c -16.108087,0.66237 -28.780351,13.93593 -28.781051,29.967039 0,0.249186 -0.01,0.499472 0,0.749958 l 0,38.466563 0,0.781257 c 0,0.249186 -0.01,0.499472 0,0.749958 0.399898,16.316594 13.764407,29.260075 29.999801,29.248376 0.24169,-2e-4 0.47584,0.01 0.71874,0 l 59.28085,0 c 0.0822,0 0.1674,0 0.24999,0 5.52116,-0.135293 9.88524,-4.728538 9.74994,-10.249431 -0.13325,-5.437298 -4.59105,-9.749259 -9.99993,-9.749459 l -0.25,0 -31.46854,0 -28.03106,0 -0.24999,0 c -5.40857,-2e-4 -9.86664,-4.31266 -9.99994,-9.749458 l 0,-0.249986 0,-39.747792 0,-0.249986 c -10e-4,-5.345503 4.22302,-9.778559 9.59369,-9.999449 l 0.15625,0 0.25,0 28.28105,0 31.71854,0 c 0.0822,0 0.1674,0 0.24999,0 5.52116,-0.13529 9.88524,-4.72853 9.74994,-10.24943 -0.13325,-5.43729 -4.59105,-9.74925 -9.99993,-9.74945 l -0.25,0 -58.9371,0 -0.81249,0 c -0.2471,10e-5 -0.5015,-0.01 -0.75,0 z" id="path3087" style="fill:#413744;fill-opacity:1;stroke:none"/>
17
+ </g>
18
+ </svg>
@@ -0,0 +1,3 @@
1
+ default_context:
2
+ initial_user_password: 'admin'
3
+ zcml_package_includes: 'pas.plugins.authomatic'
@@ -1,14 +1,10 @@
1
- [build-system]
2
- requires = ["hatchling"]
3
- build-backend = "hatchling.build"
4
-
5
1
  [project]
6
2
  name = "pas.plugins.authomatic"
7
3
  dynamic = ["version"]
8
4
  description = "Provides OAuth2/OpenID login for Plone using Authomatic."
9
5
  readme = "README.md"
10
6
  license = {text = "GNU General Public License v2 (GPLv2)"}
11
- requires-python = ">=3.11"
7
+ requires-python = ">=3.10"
12
8
  authors = [
13
9
  { name = "Jens Klein", email = "dev@bluedynamics.com" },
14
10
  { name = "Érico Andrei", email = "ericof@plone.org" },
@@ -33,13 +29,16 @@ classifiers = [
33
29
  "License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
34
30
  "Programming Language :: Python",
35
31
  "Programming Language :: Python :: 3 :: Only",
32
+ "Programming Language :: Python :: 3.10",
36
33
  "Programming Language :: Python :: 3.11",
37
34
  "Programming Language :: Python :: 3.12",
35
+ "Programming Language :: Python :: 3.13",
38
36
  ]
39
37
  dependencies = [
38
+ "Products.CMFPlone>=6.0",
40
39
  "authomatic>=1.3.0",
41
40
  "plone.restapi>=9.10.0",
42
- "Products.CMFPlone>=6.0",
41
+ "plone.api",
43
42
  ]
44
43
 
45
44
  [project.optional-dependencies]
@@ -49,6 +48,10 @@ test = [
49
48
  "plone.app.testing",
50
49
  "plone.restapi[test]",
51
50
  "zest.releaser[recommended]",
51
+ "pytest-cov",
52
+ "pytest-plone>=1.0.0a1",
53
+ "zest-releaser[recommended]>=9.5.0",
54
+ "zestreleaser-towncrier>=1.3.0",
52
55
  ]
53
56
 
54
57
  [project.urls]
@@ -61,121 +64,40 @@ Repository = "https://github.com/collective/pas.plugins.authomatic/"
61
64
  [project.entry-points."z3c.autoinclude.plugin"]
62
65
  target = "plone"
63
66
 
67
+ [build-system]
68
+ requires = ["hatchling"]
69
+ build-backend = "hatchling.build"
70
+
64
71
  [tool.hatch.version]
65
72
  path = "src/pas/plugins/authomatic/__init__.py"
66
73
 
67
74
  [tool.hatch.build]
68
- strict-naming = false
69
- packages = ["src/pas","src/pas/plugins"]
75
+ strict-naming = true
70
76
 
71
77
  [tool.hatch.build.targets.sdist]
78
+ include = [
79
+ "/*.md",
80
+ "/*.yaml",
81
+ "/*.yml",
82
+ "/docs",
83
+ "/src",
84
+ "/tests",
85
+ ]
72
86
  exclude = [
73
87
  "/.github",
74
88
  ]
75
89
 
76
- [tool.hatch.env]
77
- requires = [
78
- "hatch-pip-compile"
79
- ]
80
-
81
- [tool.hatch.envs.default]
82
- type = "pip-compile"
83
- path = ".venv"
84
- pip-compile-resolver = "uv"
85
- pip-compile-installer = "uv"
86
- lock-filename = "requirements.lock"
87
- pip-compile-args = [
88
- "--constraint",
89
- "constraints-mxdev.txt",
90
- ]
91
- dependencies = [
92
- "hatch",
93
- "hatchling",
94
- "i18ndude",
95
- "isort",
96
- "plone.app.testing",
97
- "plone.app.upgrade",
98
- "plone.restapi[test]",
99
- "pytest-cov==5.0.0",
100
- "pytest-plone>=0.5.0",
101
- "pytest",
102
- "ruff",
103
- "towncrier",
104
- "zpretty",
105
- "zest.releaser[recommended]",
106
- "zestreleaser.towncrier",
107
- ]
108
-
109
- [tool.hatch.envs.default.scripts]
110
- test = "pytest {args:tests}"
111
- test-cov = "coverage run -m pytest {args:tests}"
112
- cov-report = [
113
- "- coverage combine",
114
- "coverage report",
115
- ]
116
- cov = [
117
- "test-cov",
118
- "cov-report",
119
- ]
120
- zpretty_lint = [
121
- "find src -name '*.xml'|xargs zpretty -x --check",
122
- "find src -name '*.zcml'|xargs zpretty -z --check",
123
- ]
124
- zpretty_format = [
125
- "find src -name '*.xml'|xargs zpretty -x -i",
126
- "find src -name '*.zcml'|xargs zpretty -z -i",
127
- ]
128
- lint = [
129
- "ruff check",
130
- "isort --check-only src/ tests/",
131
- "zpretty_lint"
132
- ]
133
- format = [
134
- "ruff format",
135
- "isort src/ tests/",
136
- "zpretty_format"
137
- ]
138
- i18n = [
139
- "python -m pas.plugins.authomatic.locales.update"
140
- ]
141
- changelog-draft = "towncrier --draft"
142
-
143
- [[tool.hatch.envs.all.matrix]]
144
- python = ["3.11", "3.12"]
145
-
146
- [tool.coverage.run]
147
- source_pkgs = ["pas.plugins.authomatic", "tests"]
148
- branch = true
149
- parallel = true
150
- omit = [
151
- "pas/plugins/authomatic/locales/__init__.py",
152
- "pas/plugins/authomatic/locales/update.py",
153
- ]
154
-
155
- [tool.coverage.paths]
156
- pas.plugins.authomatic = ["src/pas/plugins/authomatic"]
157
- tests = ["tests",]
90
+ [tool.hatch.build.targets.wheel]
91
+ packages = ["src/pas",]
158
92
 
159
- [tool.coverage.report]
160
- skip_empty = true
161
- show_missing = true
162
- exclude_lines = [
163
- "no cov",
164
- "if __name__ == .__main__.:",
165
- "if TYPE_CHECKING:",
166
- ]
167
-
168
- [tool.pytest.ini_options]
169
- testpaths = ["tests"]
170
-
171
- [tool.isort]
172
- profile = "plone"
93
+ [tool.uv]
94
+ managed = false
173
95
 
174
96
  [tool.towncrier]
175
97
  package = "pas.plugins.authomatic"
176
98
  package_dir = "src"
177
99
  directory = "news/"
178
- filename = "CHANGES.md"
100
+ filename = "CHANGELOG.md"
179
101
  start_string = "<!-- towncrier release notes start -->\n"
180
102
  issue_format = "[#{issue}](https://github.com/collective/pas.plugins.authomatic/issues/{issue})"
181
103
  title_format = "## {version} ({project_date})"
@@ -212,11 +134,13 @@ directory = "tests"
212
134
  name = "Tests"
213
135
  showcontent = true
214
136
 
215
- [tool.zest-releaser]
216
- python-file-with-version = "src/pas/plugins/authomatic/__init__.py"
137
+ [tool.black]
138
+ enable-unstable-feature = [
139
+ "hug_parens_with_braces_and_square_brackets"
140
+ ]
217
141
 
218
142
  [tool.ruff]
219
- target-version = "py311"
143
+ target-version = "py310"
220
144
  line-length = 88
221
145
  fix = true
222
146
  lint.select = [
@@ -250,26 +174,34 @@ lint.select = [
250
174
  lint.ignore = [
251
175
  # DoNotAssignLambda
252
176
  "E731",
253
- "S602",
254
- "SIM102",
255
- "S314",
256
- "S324"
257
177
  ]
258
178
 
179
+ [tool.ruff.lint.isort]
180
+ case-sensitive = false
181
+ no-sections = true
182
+ force-single-line = true
183
+ from-first = true
184
+ lines-after-imports = 2
185
+ lines-between-types = 1
186
+ order-by-type = false
187
+
259
188
  [tool.ruff.format]
260
189
  preview = true
261
190
 
262
191
  [tool.ruff.lint.per-file-ignores]
263
- "tests/*" = ["S101"]
192
+ "tests/*" = ["E501", "RUF001", "S101"]
264
193
 
265
- [tool.codespell]
266
- ignore-words-list = "discreet,vew"
267
- skip = "*.po,*.min.js"
194
+ [tool.pytest.ini_options]
195
+ testpaths = ["tests"]
268
196
 
269
- [tool.check-manifest]
270
- ignore = [
271
- ".editorconfig",
272
- ".flake8",
273
- "dependabot.yml",
274
- "mx.ini",
197
+ [tool.coverage.run]
198
+ source_pkgs = ["pas.plugins.authomatic", "tests"]
199
+ branch = true
200
+ parallel = true
201
+ omit = [
202
+ "src/pas/plugins/authomatic/locales/*",
275
203
  ]
204
+
205
+ [tool.zest-releaser]
206
+ upload-pypi = false # Build and upload with uv
207
+ python-file-with-version = "src/pas/plugins/authomatic/__init__.py"
@@ -1,7 +1,7 @@
1
1
  from pas.plugins.authomatic.patches import apply_patches
2
2
 
3
3
 
4
- __version__ = "2.0.0b3"
4
+ __version__ = "2.0.0rc2"
5
5
 
6
6
 
7
7
  PACKAGE_NAME = "pas.plugins.authomatic"