collective.dms.scanbehavior 1.3.2__tar.gz → 2.0.0__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 (72) hide show
  1. {collective_dms_scanbehavior-1.3.2 → collective_dms_scanbehavior-2.0.0}/CHANGES.rst +22 -0
  2. collective_dms_scanbehavior-2.0.0/MANIFEST.in +9 -0
  3. collective_dms_scanbehavior-2.0.0/Makefile +105 -0
  4. {collective_dms_scanbehavior-1.3.2/src/collective.dms.scanbehavior.egg-info → collective_dms_scanbehavior-2.0.0}/PKG-INFO +67 -15
  5. {collective_dms_scanbehavior-1.3.2 → collective_dms_scanbehavior-2.0.0}/README.rst +16 -6
  6. collective_dms_scanbehavior-2.0.0/base.cfg +103 -0
  7. collective_dms_scanbehavior-2.0.0/checkouts.cfg +18 -0
  8. collective_dms_scanbehavior-2.0.0/pyproject.toml +133 -0
  9. collective_dms_scanbehavior-2.0.0/requirements-6.2.txt +3 -0
  10. {collective_dms_scanbehavior-1.3.2 → collective_dms_scanbehavior-2.0.0}/setup.py +28 -15
  11. {collective_dms_scanbehavior-1.3.2 → collective_dms_scanbehavior-2.0.0}/src/collective/dms/scanbehavior/__init__.py +0 -2
  12. {collective_dms_scanbehavior-1.3.2 → collective_dms_scanbehavior-2.0.0}/src/collective/dms/scanbehavior/behaviors/behaviors.py +14 -17
  13. collective_dms_scanbehavior-2.0.0/src/collective/dms/scanbehavior/behaviors/configure.zcml +25 -0
  14. {collective_dms_scanbehavior-1.3.2 → collective_dms_scanbehavior-2.0.0}/src/collective/dms/scanbehavior/browser/configure.zcml +4 -3
  15. collective_dms_scanbehavior-2.0.0/src/collective/dms/scanbehavior/configure.zcml +37 -0
  16. {collective_dms_scanbehavior-1.3.2 → collective_dms_scanbehavior-2.0.0}/src/collective/dms/scanbehavior/interfaces.py +0 -1
  17. collective_dms_scanbehavior-2.0.0/src/collective/dms/scanbehavior/profiles/default/browserlayer.xml +6 -0
  18. collective_dms_scanbehavior-2.0.0/src/collective/dms/scanbehavior/profiles/default/catalog.xml +9 -0
  19. collective_dms_scanbehavior-2.0.0/src/collective/dms/scanbehavior/profiles/default/metadata.xml +4 -0
  20. {collective_dms_scanbehavior-1.3.2 → collective_dms_scanbehavior-2.0.0}/src/collective/dms/scanbehavior/profiles/testing/metadata.xml +1 -1
  21. collective_dms_scanbehavior-2.0.0/src/collective/dms/scanbehavior/profiles/testing/types/ScannedDocument.xml +59 -0
  22. collective_dms_scanbehavior-2.0.0/src/collective/dms/scanbehavior/profiles/testing/types.xml +8 -0
  23. collective_dms_scanbehavior-2.0.0/src/collective/dms/scanbehavior/profiles/uninstall/browserlayer.xml +7 -0
  24. collective_dms_scanbehavior-2.0.0/src/collective/dms/scanbehavior/profiles/uninstall/catalog.xml +7 -0
  25. {collective_dms_scanbehavior-1.3.2 → collective_dms_scanbehavior-2.0.0}/src/collective/dms/scanbehavior/setuphandlers.py +0 -3
  26. collective_dms_scanbehavior-2.0.0/src/collective/dms/scanbehavior/testing.py +52 -0
  27. {collective_dms_scanbehavior-1.3.2 → collective_dms_scanbehavior-2.0.0}/src/collective/dms/scanbehavior/testing.zcml +6 -2
  28. collective_dms_scanbehavior-2.0.0/src/collective/dms/scanbehavior/tests/robot/scanbehavior.robot +69 -0
  29. collective_dms_scanbehavior-2.0.0/src/collective/dms/scanbehavior/tests/robot/test_scan_fields.robot +26 -0
  30. collective_dms_scanbehavior-2.0.0/src/collective/dms/scanbehavior/tests/robot/ui_plone4.robot +121 -0
  31. collective_dms_scanbehavior-2.0.0/src/collective/dms/scanbehavior/tests/robot/ui_plone6.robot +101 -0
  32. collective_dms_scanbehavior-2.0.0/src/collective/dms/scanbehavior/tests/test_behaviors.py +148 -0
  33. collective_dms_scanbehavior-2.0.0/src/collective/dms/scanbehavior/tests/test_robot.py +35 -0
  34. collective_dms_scanbehavior-2.0.0/src/collective/dms/scanbehavior/tests/test_setup.py +38 -0
  35. collective_dms_scanbehavior-2.0.0/src/collective/dms/scanbehavior/upgrades.py +3 -0
  36. {collective_dms_scanbehavior-1.3.2 → collective_dms_scanbehavior-2.0.0/src/collective.dms.scanbehavior.egg-info}/PKG-INFO +67 -15
  37. {collective_dms_scanbehavior-1.3.2 → collective_dms_scanbehavior-2.0.0}/src/collective.dms.scanbehavior.egg-info/SOURCES.txt +15 -6
  38. collective_dms_scanbehavior-2.0.0/src/collective.dms.scanbehavior.egg-info/requires.txt +22 -0
  39. collective_dms_scanbehavior-2.0.0/test-6.2.cfg +11 -0
  40. collective_dms_scanbehavior-1.3.2/MANIFEST.in +0 -10
  41. collective_dms_scanbehavior-1.3.2/requirements.txt +0 -4
  42. collective_dms_scanbehavior-1.3.2/src/collective/__init__.py +0 -7
  43. collective_dms_scanbehavior-1.3.2/src/collective/dms/__init__.py +0 -7
  44. collective_dms_scanbehavior-1.3.2/src/collective/dms/scanbehavior/behaviors/configure.zcml +0 -24
  45. collective_dms_scanbehavior-1.3.2/src/collective/dms/scanbehavior/configure.zcml +0 -41
  46. collective_dms_scanbehavior-1.3.2/src/collective/dms/scanbehavior/profiles/default/browserlayer.xml +0 -7
  47. collective_dms_scanbehavior-1.3.2/src/collective/dms/scanbehavior/profiles/default/catalog.xml +0 -7
  48. collective_dms_scanbehavior-1.3.2/src/collective/dms/scanbehavior/profiles/default/metadata.xml +0 -4
  49. collective_dms_scanbehavior-1.3.2/src/collective/dms/scanbehavior/testing.py +0 -228
  50. collective_dms_scanbehavior-1.3.2/src/collective/dms/scanbehavior/tests/robot/.gitkeep +0 -0
  51. collective_dms_scanbehavior-1.3.2/src/collective/dms/scanbehavior/tests/robot/test_scanbehavior.robot +0 -46
  52. collective_dms_scanbehavior-1.3.2/src/collective/dms/scanbehavior/tests/test_robot.py +0 -24
  53. collective_dms_scanbehavior-1.3.2/src/collective/dms/scanbehavior/tests/test_setup.py +0 -35
  54. collective_dms_scanbehavior-1.3.2/src/collective/dms/scanbehavior/upgrades.py +0 -43
  55. collective_dms_scanbehavior-1.3.2/src/collective.dms.scanbehavior.egg-info/namespace_packages.txt +0 -2
  56. collective_dms_scanbehavior-1.3.2/src/collective.dms.scanbehavior.egg-info/requires.txt +0 -13
  57. {collective_dms_scanbehavior-1.3.2 → collective_dms_scanbehavior-2.0.0}/CONTRIBUTORS.rst +0 -0
  58. {collective_dms_scanbehavior-1.3.2 → collective_dms_scanbehavior-2.0.0}/docs/LICENSE.GPL +0 -0
  59. {collective_dms_scanbehavior-1.3.2 → collective_dms_scanbehavior-2.0.0}/docs/LICENSE.rst +0 -0
  60. {collective_dms_scanbehavior-1.3.2 → collective_dms_scanbehavior-2.0.0}/setup.cfg +0 -0
  61. {collective_dms_scanbehavior-1.3.2 → collective_dms_scanbehavior-2.0.0}/src/collective/dms/scanbehavior/behaviors/__init__.py +0 -0
  62. {collective_dms_scanbehavior-1.3.2 → collective_dms_scanbehavior-2.0.0}/src/collective/dms/scanbehavior/browser/__init__.py +0 -0
  63. {collective_dms_scanbehavior-1.3.2 → collective_dms_scanbehavior-2.0.0}/src/collective/dms/scanbehavior/browser/static/.gitkeep +0 -0
  64. {collective_dms_scanbehavior-1.3.2 → collective_dms_scanbehavior-2.0.0}/src/collective/dms/scanbehavior/locales/collective.dms.scanbehavior.pot +0 -0
  65. {collective_dms_scanbehavior-1.3.2 → collective_dms_scanbehavior-2.0.0}/src/collective/dms/scanbehavior/locales/fr/LC_MESSAGES/collective.dms.scanbehavior.po +0 -0
  66. {collective_dms_scanbehavior-1.3.2 → collective_dms_scanbehavior-2.0.0}/src/collective/dms/scanbehavior/locales/update.sh +0 -0
  67. {collective_dms_scanbehavior-1.3.2 → collective_dms_scanbehavior-2.0.0}/src/collective/dms/scanbehavior/profiles/default/collectivedmsscanbehavior_marker.txt +0 -0
  68. {collective_dms_scanbehavior-1.3.2 → collective_dms_scanbehavior-2.0.0}/src/collective/dms/scanbehavior/tests/__init__.py +0 -0
  69. {collective_dms_scanbehavior-1.3.2 → collective_dms_scanbehavior-2.0.0}/src/collective.dms.scanbehavior.egg-info/dependency_links.txt +0 -0
  70. {collective_dms_scanbehavior-1.3.2 → collective_dms_scanbehavior-2.0.0}/src/collective.dms.scanbehavior.egg-info/entry_points.txt +0 -0
  71. {collective_dms_scanbehavior-1.3.2 → collective_dms_scanbehavior-2.0.0}/src/collective.dms.scanbehavior.egg-info/not-zip-safe +0 -0
  72. {collective_dms_scanbehavior-1.3.2 → collective_dms_scanbehavior-2.0.0}/src/collective.dms.scanbehavior.egg-info/top_level.txt +0 -0
@@ -2,6 +2,28 @@ Changelog
2
2
  =========
3
3
 
4
4
 
5
+ 2.0.0 (2026-12-01)
6
+ ------------------
7
+
8
+ - Migrated to Plone 6.2 / Python 3 (Plone 4 dropped), based on the work started by
9
+ @laulaz on `python3`.
10
+ [laulaz, chris-adam]
11
+ - Fixed `scan_id` indexer on Plone 6: emptying a scan id broke reindexing.
12
+ [chris-adam]
13
+ - Added plone.meta configuration (tox, pre-commit, GitHub Actions).
14
+ [chris-adam]
15
+ - Switched to PEP 420 native namespace packages.
16
+ [chris-adam]
17
+ - Dropped support for Plone versions below 6.2.
18
+ [chris-adam]
19
+
20
+
21
+ 1.3.3 (2026-04-14)
22
+ ------------------
23
+
24
+ - Removed scan_id column.
25
+ [sgeulette]
26
+
5
27
  1.3.2 (2025-12-16)
6
28
  ------------------
7
29
 
@@ -0,0 +1,9 @@
1
+ graft src/collective
2
+ graft docs
3
+ include *.cfg *.rst *.in Makefile requirements-*.txt
4
+ exclude .coveragerc
5
+ exclude .installed.cfg
6
+ exclude .mr.developer.cfg
7
+ recursive-include docs *.GPL
8
+ recursive-include docs *.rst
9
+ global-exclude *.pyc
@@ -0,0 +1,105 @@
1
+ #!/usr/bin/make
2
+ # pyenv is a requirement, with 3.10, 3.13 python versions, and virtualenv installed in each version
3
+ # plone parameter must be passed to create environment 'make setup plone=6.2' or after a make cleanall
4
+ # The original Makefile can be found on https://github.com/IMIO/scripts-buildout
5
+
6
+ SHELL=/bin/bash
7
+ plones=6.2
8
+ b_o=
9
+ old_plone=$(shell [ -e .plone-version ] && cat .plone-version)
10
+
11
+ ifeq (, $(shell which pyenv))
12
+ $(error "pyenv command not found! Aborting")
13
+ endif
14
+
15
+ ifndef plone
16
+ ifeq (,$(filter setup,$(MAKECMDGOALS)))
17
+ plone=$(old_plone)
18
+ endif
19
+ endif
20
+
21
+ ifneq ($(wildcard bin/instance),)
22
+ b_o=-N
23
+ endif
24
+
25
+ ifndef python
26
+ ifeq ($(plone),6.2)
27
+ python=3.13
28
+ endif
29
+ endif
30
+
31
+ all: buildout
32
+
33
+ .PHONY: help
34
+ help:
35
+ @awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n\nTargets:\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-10s\033[0m %s\n", $$1, $$2 }' $(MAKEFILE_LIST)
36
+
37
+ .python-version: ## Setups pyenv version
38
+ @pyenv local `pyenv versions |grep " $(python)" |tail -1 |xargs`
39
+ @echo "Local pyenv version is `cat .python-version`"
40
+ @ if [[ `pyenv which virtualenv` != `pyenv prefix`* ]] ; then echo "You need to install virtualenv in `cat .python-version` pyenv python (pip install virtualenv)"; exit 1; fi
41
+
42
+ bin/buildout: .python-version ## Setups environment
43
+ virtualenv .
44
+ ./bin/pip install --upgrade pip
45
+ ./bin/pip install -r requirements-$(plone).txt
46
+ @echo "$(plone)" > .plone-version
47
+
48
+ .PHONY: setup
49
+ setup: oneof-plone backup cleanall bin/buildout restore ## Setups environment
50
+
51
+ .PHONY: buildout
52
+ buildout: oneof-plone bin/buildout ## Runs setup and buildout
53
+ rm -f .installed.cfg .mr.developer.cfg
54
+ bin/buildout -t 5 -c test-$(plone).cfg ${b_o}
55
+
56
+ .PHONY: test
57
+ test: oneof-plone bin/buildout ## run bin/test without robot
58
+ # can be run by example with: make test opt='-t "settings"'
59
+ bin/test -t \!robot ${opt}
60
+
61
+ .PHONY: robot
62
+ robot: oneof-plone bin/buildout ## run robot tests in headless firefox
63
+ # can be run by example with: make robot opt='-t "*scan date*"'
64
+ MOZ_HEADLESS=1 bin/test --all -t robot ${opt}
65
+
66
+ .PHONY: robot-server
67
+ robot-server: ## Starts robot server (layer=<layer name in testing.py>, default ACCEPTANCE)
68
+ # run a robot file against it with: ZSERVER_HOST=localhost ZSERVER_PORT=55001 bin/robot -v PLONE_MAJOR:$(firstword $(subst ., ,$(plone))) src/collective/dms/scanbehavior/tests/robot/test_scan_fields.robot
69
+ # --no-reload: the reload watchdog restarts the server when a template is read
70
+ env ZSERVER_HOST=localhost ZSERVER_PORT=55001 bin/robot-server --no-reload -v collective.dms.scanbehavior.testing.$(or $(layer),ACCEPTANCE)
71
+
72
+ .PHONY: cleanall
73
+ cleanall: ## Cleans all installed buildout files
74
+ rm -fr bin include lib local share develop-eggs downloads eggs parts .installed.cfg .mr.developer.cfg .python-version pyvenv.cfg
75
+
76
+ .PHONY: backup
77
+ backup: ## Backups db files
78
+ @if [ '$(old_plone)' != '' ] && [ -f var/filestorage/Data.fs ]; then mv var/filestorage/Data.fs var/filestorage/Data.fs.$(old_plone); mv var/blobstorage var/blobstorage.$(old_plone); fi
79
+
80
+ .PHONY: restore
81
+ restore: ## Restores db files
82
+ @if [ '$(plone)' != '' ] && [ -f var/filestorage/Data.fs.$(plone) ]; then mv var/filestorage/Data.fs.$(plone) var/filestorage/Data.fs; mv var/blobstorage.$(plone) var/blobstorage; fi
83
+
84
+ .PHONY: which-python
85
+ which-python: oneof-plone ## Displays versions information
86
+ @echo "current plone = $(old_plone)"
87
+ @echo "current python = `cat .python-version`"
88
+ @echo "plone var = $(plone)"
89
+ @echo "python var = $(python)"
90
+
91
+ .PHONY: vcr
92
+ vcr: ## Shows requirements in checkversion-r.html
93
+ @bin/versioncheck -rbo checkversion-r-$(plone).html test-$(plone).cfg
94
+
95
+ .PHONY: vcn
96
+ vcn: ## Shows newer packages in checkversion-n.html
97
+ @bin/versioncheck -npbo checkversion-n-$(plone).html test-$(plone).cfg
98
+
99
+ .PHONY: guard-%
100
+ guard-%:
101
+ @ if [ "${${*}}" = "" ]; then echo "You must give a value for variable '$*' : like $*=xxx"; exit 1; fi
102
+
103
+ .PHONY: oneof-%
104
+ oneof-%:
105
+ @ if ! echo "${${*}s}" | tr " " '\n' |grep -Fqx "${${*}}"; then echo "Invalid '$*' parameter ('${${*}}') : must be one of '${${*}s}'"; exit 1; fi
@@ -1,29 +1,48 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: collective.dms.scanbehavior
3
- Version: 1.3.2
3
+ Version: 2.0.0
4
4
  Summary: Behavior adding scan metadata
5
5
  Home-page: http://pypi.python.org/pypi/collective.dms.scanbehavior
6
6
  Author: Franck NGAHA, Stephan Geulette
7
7
  Author-email: franck.o.ngaha@gmail.com, sgeulette@imio.be
8
8
  License: GPL
9
9
  Keywords: Python Zope Plone
10
+ Classifier: Development Status :: 5 - Production/Stable
10
11
  Classifier: Environment :: Web Environment
11
12
  Classifier: Framework :: Plone
12
- Classifier: Framework :: Plone :: 4.3
13
+ Classifier: Framework :: Plone :: Addon
14
+ Classifier: Framework :: Plone :: 6.2
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
17
+ Classifier: Operating System :: OS Independent
13
18
  Classifier: Programming Language :: Python
14
- Classifier: Programming Language :: Python :: 2.7
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Programming Language :: Python :: 3.14
23
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
24
+ Requires-Python: >=3.11
15
25
  Requires-Dist: plone.api
16
- Requires-Dist: setuptools
17
26
  Requires-Dist: plone.app.dexterity
27
+ Requires-Dist: plone.autoform
28
+ Requires-Dist: plone.base
18
29
  Requires-Dist: plone.behavior
19
- Requires-Dist: plone.directives.form
20
- Requires-Dist: zope.schema
30
+ Requires-Dist: plone.dexterity
31
+ Requires-Dist: plone.indexer
32
+ Requires-Dist: plone.supermodel
33
+ Requires-Dist: Products.GenericSetup
34
+ Requires-Dist: zope.i18nmessageid
21
35
  Requires-Dist: zope.interface
22
- Requires-Dist: zope.component
23
- Requires-Dist: rwproperty
36
+ Requires-Dist: zope.publisher
37
+ Requires-Dist: zope.schema
24
38
  Provides-Extra: test
25
- Requires-Dist: plone.app.testing; extra == "test"
26
39
  Requires-Dist: plone.app.robotframework[debug]; extra == "test"
40
+ Requires-Dist: plone.app.testing; extra == "test"
41
+ Requires-Dist: plone.browserlayer; extra == "test"
42
+ Requires-Dist: plone.testing; extra == "test"
43
+ Requires-Dist: robotsuite; extra == "test"
44
+ Requires-Dist: zope.component; extra == "test"
45
+ Requires-Dist: zope.i18n; extra == "test"
27
46
  Dynamic: author
28
47
  Dynamic: author-email
29
48
  Dynamic: classifier
@@ -33,8 +52,12 @@ Dynamic: keywords
33
52
  Dynamic: license
34
53
  Dynamic: provides-extra
35
54
  Dynamic: requires-dist
55
+ Dynamic: requires-python
36
56
  Dynamic: summary
37
57
 
58
+ .. image:: https://github.com/collective/collective.dms.scanbehavior/actions/workflows/meta.yml/badge.svg?branch=master
59
+ :target: https://github.com/collective/collective.dms.scanbehavior/actions/workflows/meta.yml
60
+
38
61
  ==========================================================================
39
62
  collective.dms.scanbehavior
40
63
  ==========================================================================
@@ -43,12 +66,13 @@ Features
43
66
  --------
44
67
 
45
68
  This behavior adds some metadata related to scanning:
46
- * scan_id : scan identification as a barcode
47
- * version : version number
48
- * pages_number : pages number
49
- * scan_date : scan date
50
- * scan_user : scan user
51
- * scanner : scanner or pc information
69
+
70
+ - scan_id : scan identification as a barcode
71
+ - version : version number
72
+ - pages_number : pages number
73
+ - scan_date : scan date
74
+ - scan_user : scan user
75
+ - scanner : scanner or pc information
52
76
 
53
77
  Translations
54
78
  ------------
@@ -73,6 +97,12 @@ Install collective.dms.scanbehavior by adding it to your buildout::
73
97
 
74
98
  and then running "bin/buildout"
75
99
 
100
+ Versions
101
+ --------
102
+
103
+ - Version 2.x is for Plone 6+ only
104
+ - Version 1.x is for Plone 4
105
+
76
106
  Contribute
77
107
  ----------
78
108
 
@@ -99,6 +129,28 @@ Changelog
99
129
  =========
100
130
 
101
131
 
132
+ 2.0.0 (2026-12-01)
133
+ ------------------
134
+
135
+ - Migrated to Plone 6.2 / Python 3 (Plone 4 dropped), based on the work started by
136
+ @laulaz on `python3`.
137
+ [laulaz, chris-adam]
138
+ - Fixed `scan_id` indexer on Plone 6: emptying a scan id broke reindexing.
139
+ [chris-adam]
140
+ - Added plone.meta configuration (tox, pre-commit, GitHub Actions).
141
+ [chris-adam]
142
+ - Switched to PEP 420 native namespace packages.
143
+ [chris-adam]
144
+ - Dropped support for Plone versions below 6.2.
145
+ [chris-adam]
146
+
147
+
148
+ 1.3.3 (2026-04-14)
149
+ ------------------
150
+
151
+ - Removed scan_id column.
152
+ [sgeulette]
153
+
102
154
  1.3.2 (2025-12-16)
103
155
  ------------------
104
156
 
@@ -1,3 +1,6 @@
1
+ .. image:: https://github.com/collective/collective.dms.scanbehavior/actions/workflows/meta.yml/badge.svg?branch=master
2
+ :target: https://github.com/collective/collective.dms.scanbehavior/actions/workflows/meta.yml
3
+
1
4
  ==========================================================================
2
5
  collective.dms.scanbehavior
3
6
  ==========================================================================
@@ -6,12 +9,13 @@ Features
6
9
  --------
7
10
 
8
11
  This behavior adds some metadata related to scanning:
9
- * scan_id : scan identification as a barcode
10
- * version : version number
11
- * pages_number : pages number
12
- * scan_date : scan date
13
- * scan_user : scan user
14
- * scanner : scanner or pc information
12
+
13
+ - scan_id : scan identification as a barcode
14
+ - version : version number
15
+ - pages_number : pages number
16
+ - scan_date : scan date
17
+ - scan_user : scan user
18
+ - scanner : scanner or pc information
15
19
 
16
20
  Translations
17
21
  ------------
@@ -36,6 +40,12 @@ Install collective.dms.scanbehavior by adding it to your buildout::
36
40
 
37
41
  and then running "bin/buildout"
38
42
 
43
+ Versions
44
+ --------
45
+
46
+ - Version 2.x is for Plone 6+ only
47
+ - Version 1.x is for Plone 4
48
+
39
49
  Contribute
40
50
  ----------
41
51
 
@@ -0,0 +1,103 @@
1
+ [buildout]
2
+ package-name = collective.dms.scanbehavior
3
+ package-extras = [test]
4
+
5
+ extends =
6
+ https://raw.githubusercontent.com/collective/buildout.plonetest/master/qa.cfg
7
+ checkouts.cfg
8
+
9
+ extensions =
10
+ mr.developer
11
+ plone.versioncheck
12
+
13
+ parts +=
14
+ instance
15
+ omelette
16
+ ploneversioncheck
17
+ createcoverage
18
+ robot
19
+ # coverage
20
+ # test-coverage
21
+ # plone-helper-scripts
22
+
23
+ develop = .
24
+
25
+ eggs +=
26
+ Plone
27
+ Pillow
28
+ # Products.PDBDebugMode
29
+ # collective.profiler
30
+ # ipdb
31
+ pdbp
32
+ # plone.reload
33
+
34
+ package-extras +=
35
+ pdbp
36
+
37
+ always-checkout = force
38
+
39
+ [instance]
40
+ environment-vars +=
41
+ PYTHONBREAKPOINT pdbp.set_trace
42
+ eggs +=
43
+ ${buildout:eggs}
44
+ zcml +=
45
+
46
+ [test]
47
+ environment = testenv
48
+ initialization +=
49
+ os.environ['PYTHONBREAKPOINT'] = 'pdbp.set_trace'
50
+
51
+ [testenv]
52
+ zope_i18n_compile_mo_files = true
53
+
54
+ [omelette]
55
+ recipe = collective.recipe.omelette
56
+ eggs = ${test:eggs}
57
+
58
+ [ploneversioncheck]
59
+ recipe = zc.recipe.egg
60
+ eggs = plone.versioncheck
61
+
62
+ [code-analysis]
63
+ recipe = plone.recipe.codeanalysis
64
+ pre-commit-hook = True
65
+ return-status-codes = True
66
+ directory = ${buildout:directory}/src/collective/dms/scanbehavior
67
+ flake8-ignore = E123,E124,E501,E126,E127,E128,W391,C901,W503,W504
68
+ flake8-extensions =
69
+ flake8-isort
70
+
71
+ [robot]
72
+ recipe = zc.recipe.egg
73
+ eggs =
74
+ Pillow
75
+ ${test:eggs}
76
+ plone.app.robotframework[reload, debug]
77
+
78
+ [coverage]
79
+ recipe = zc.recipe.egg
80
+ eggs = coverage
81
+
82
+ [test-coverage]
83
+ recipe = collective.recipe.template
84
+ input = inline:
85
+ #!/bin/bash
86
+ export TZ=UTC
87
+ ${buildout:directory}/bin/coverage run bin/test $*
88
+ ${buildout:directory}/bin/coverage html
89
+ ${buildout:directory}/bin/coverage report -m --fail-under=90
90
+ # Fail (exit status 1) if coverage returns exit status 2 (this happens
91
+ # when test coverage is below 100%.
92
+ output = ${buildout:directory}/bin/test-coverage
93
+ mode = 755
94
+
95
+ [plone-helper-scripts]
96
+ recipe = zc.recipe.egg
97
+ eggs =
98
+ Products.CMFPlone
99
+ ${instance:eggs}
100
+ interpreter = zopepy
101
+ scripts =
102
+ zopepy
103
+ plone-compile-resources
@@ -0,0 +1,18 @@
1
+ [buildout]
2
+ always-checkout = force
3
+ auto-checkout +=
4
+
5
+ [remotes]
6
+ imio = https://github.com/imio
7
+ imio_push = git@github.com:imio
8
+ plone = https://github.com/plone
9
+ plone_push = git@github.com:plone
10
+ ftw = https://github.com/4teamwork
11
+ ftw_push = git@github.com:4teamwork
12
+ zopefoundation = https://github.com/zopefoundation
13
+ zopefoundation_push = git@github.com:zopefoundation
14
+ collective = https://github.com/collective
15
+ collective_push = git@github.com:collective
16
+
17
+ [sources]
18
+ imio.helpers = git ${remotes:imio}/imio.helpers.git pushurl=${remotes:imio_push}/imio.helpers.git
@@ -0,0 +1,133 @@
1
+ # Generated from:
2
+ # https://github.com/plone/meta/tree/2.x/src/plone/meta/default
3
+ # See the inline comments on how to expand/tweak this configuration file
4
+ [build-system]
5
+ requires = ["setuptools>=68.2,<83", "wheel"]
6
+
7
+
8
+
9
+ ##
10
+ # Add extra configuration options in .meta.toml:
11
+ # [pyproject]
12
+ # towncrier_extra_lines = """
13
+ # extra_configuration
14
+ # """
15
+ ##
16
+
17
+ [tool.isort]
18
+ profile = "plone"
19
+
20
+ ##
21
+ # Add extra configuration options in .meta.toml:
22
+ # [pyproject]
23
+ # isort_extra_lines = """
24
+ # extra_configuration
25
+ # """
26
+ ##
27
+
28
+ [tool.black]
29
+ target-version = ["py311"]
30
+
31
+ ##
32
+ # Add extra configuration options in .meta.toml:
33
+ # [pyproject]
34
+ # black_extra_lines = """
35
+ # extra_configuration
36
+ # """
37
+ ##
38
+
39
+ [tool.codespell]
40
+ ignore-words-list = "discreet,assertin,thet,"
41
+ skip = "*.po,"
42
+ ##
43
+ # Add extra configuration options in .meta.toml:
44
+ # [pyproject]
45
+ # codespell_ignores = "foo,bar"
46
+ # codespell_skip = "*.po,*.map,package-lock.json"
47
+ ##
48
+
49
+ [tool.dependencychecker]
50
+ Zope = [
51
+ # Zope own provided namespaces
52
+ 'App', 'OFS', 'Products.Five', 'Products.OFSP', 'Products.PageTemplates',
53
+ 'Products.SiteAccess', 'Shared', 'Testing', 'ZPublisher', 'ZTUtils',
54
+ 'Zope2', 'webdav', 'zmi',
55
+ # ExtensionClass own provided namespaces
56
+ 'ExtensionClass', 'ComputedAttribute', 'MethodObject',
57
+ # Zope dependencies
58
+ 'AccessControl', 'Acquisition', 'AuthEncoding', 'beautifulsoup4', 'BTrees',
59
+ 'cffi', 'Chameleon', 'DateTime', 'DocumentTemplate',
60
+ 'MultiMapping', 'multipart', 'PasteDeploy', 'Persistence', 'persistent',
61
+ 'pycparser', 'python-gettext', 'pytz', 'RestrictedPython', 'roman',
62
+ 'soupsieve', 'transaction', 'waitress', 'WebOb', 'WebTest', 'WSGIProxy2',
63
+ 'z3c.pt', 'zc.lockfile', 'ZConfig', 'zExceptions', 'ZODB', 'zodbpickle',
64
+ 'zope.annotation', 'zope.browser', 'zope.browsermenu', 'zope.browserpage',
65
+ 'zope.browserresource', 'zope.cachedescriptors', 'zope.component',
66
+ 'zope.configuration', 'zope.container', 'zope.contentprovider',
67
+ 'zope.contenttype', 'zope.datetime', 'zope.deferredimport',
68
+ 'zope.deprecation', 'zope.dottedname', 'zope.event', 'zope.exceptions',
69
+ 'zope.filerepresentation', 'zope.globalrequest', 'zope.hookable',
70
+ 'zope.i18n', 'zope.i18nmessageid', 'zope.interface', 'zope.lifecycleevent',
71
+ 'zope.location', 'zope.pagetemplate', 'zope.processlifetime', 'zope.proxy',
72
+ 'zope.ptresource', 'zope.publisher', 'zope.schema', 'zope.security',
73
+ 'zope.sequencesort', 'zope.site', 'zope.size', 'zope.structuredtext',
74
+ 'zope.tal', 'zope.tales', 'zope.testbrowser', 'zope.testing',
75
+ 'zope.traversing', 'zope.viewlet'
76
+ ]
77
+ 'Products.CMFCore' = [
78
+ 'docutils', 'five.localsitemanager', 'Missing', 'Products.BTreeFolder2',
79
+ 'Products.GenericSetup', 'Products.MailHost', 'Products.PythonScripts',
80
+ 'Products.StandardCacheManagers', 'Products.ZCatalog', 'Record',
81
+ 'zope.sendmail', 'Zope'
82
+ ]
83
+ 'plone.base' = [
84
+ 'plone.batching', 'plone.registry', 'plone.schema','plone.z3cform',
85
+ 'Products.CMFCore', 'Products.CMFDynamicViewFTI',
86
+ ]
87
+ python-dateutil = ['dateutil']
88
+ pytest-plone = ['pytest', 'zope.pytestlayer', 'plone.testing', 'plone.app.testing']
89
+
90
+ ##
91
+ # Add extra configuration options in .meta.toml:
92
+ # [pyproject]
93
+ # dependencies_ignores = "['zestreleaser.towncrier']"
94
+ # dependencies_mappings = [
95
+ # "gitpython = ['git']",
96
+ # "pygithub = ['github']",
97
+ # ]
98
+ ##
99
+
100
+ [tool.check-manifest]
101
+ ignore = [
102
+ ".editorconfig",
103
+ ".flake8",
104
+ ".meta.toml",
105
+ ".pre-commit-config.yaml",
106
+ "dependabot.yml",
107
+ "mx.ini",
108
+ "tox.ini",
109
+
110
+ ]
111
+
112
+ ##
113
+ # Add extra configuration options in .meta.toml:
114
+ # [pyproject]
115
+ # check_manifest_ignores = """
116
+ # "*.map.js",
117
+ # "*.pyc",
118
+ # """
119
+ # check_manifest_extra_lines = """
120
+ # ignore-bad-ideas = [
121
+ # "some/test/file/PKG-INFO",
122
+ # ]
123
+ # """
124
+ ##
125
+
126
+
127
+ ##
128
+ # Add extra configuration options in .meta.toml:
129
+ # [pyproject]
130
+ # extra_lines = """
131
+ # _your own configuration lines_
132
+ # """
133
+ ##
@@ -0,0 +1,3 @@
1
+ -c https://dist.plone.org/release/6.2-latest/requirements.txt
2
+ setuptools
3
+ zc.buildout
@@ -1,10 +1,7 @@
1
- # -*- coding: utf-8 -*-
2
1
  """Installer for the collective.dms.scanbehavior package."""
3
2
 
4
- from setuptools import find_packages
5
3
  from setuptools import setup
6
4
 
7
-
8
5
  long_description = (
9
6
  open("README.rst").read() + "\n" + "Contributors\n"
10
7
  "============\n"
@@ -18,42 +15,58 @@ long_description = (
18
15
 
19
16
  setup(
20
17
  name="collective.dms.scanbehavior",
21
- version="1.3.2",
18
+ version="2.0.0",
22
19
  description="Behavior adding scan metadata",
23
20
  long_description=long_description,
24
21
  # Get more from http://pypi.python.org/pypi?%3Aaction=list_classifiers
25
22
  classifiers=[
23
+ "Development Status :: 5 - Production/Stable",
26
24
  "Environment :: Web Environment",
27
25
  "Framework :: Plone",
28
- "Framework :: Plone :: 4.3",
26
+ "Framework :: Plone :: Addon",
27
+ "Framework :: Plone :: 6.2",
28
+ "Intended Audience :: Developers",
29
+ "License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
30
+ "Operating System :: OS Independent",
29
31
  "Programming Language :: Python",
30
- "Programming Language :: Python :: 2.7",
32
+ "Programming Language :: Python :: 3.11",
33
+ "Programming Language :: Python :: 3.12",
34
+ "Programming Language :: Python :: 3.13",
35
+ "Programming Language :: Python :: 3.14",
36
+ "Topic :: Software Development :: Libraries :: Python Modules",
31
37
  ],
32
38
  keywords="Python Zope Plone",
33
39
  author="Franck NGAHA, Stephan Geulette",
34
40
  author_email="franck.o.ngaha@gmail.com, sgeulette@imio.be",
35
41
  url="http://pypi.python.org/pypi/collective.dms.scanbehavior",
36
42
  license="GPL",
37
- packages=find_packages("src", exclude=["ez_setup"]),
38
- namespace_packages=["collective", "collective.dms"],
39
- package_dir={"": "src"},
40
43
  include_package_data=True,
41
44
  zip_safe=False,
45
+ python_requires=">=3.11",
42
46
  install_requires=[
43
47
  "plone.api",
44
- "setuptools",
45
48
  "plone.app.dexterity",
49
+ "plone.autoform",
50
+ "plone.base",
46
51
  "plone.behavior",
47
- "plone.directives.form",
48
- "zope.schema",
52
+ "plone.dexterity",
53
+ "plone.indexer",
54
+ "plone.supermodel",
55
+ "Products.GenericSetup",
56
+ "zope.i18nmessageid",
49
57
  "zope.interface",
50
- "zope.component",
51
- "rwproperty",
58
+ "zope.publisher",
59
+ "zope.schema",
52
60
  ],
53
61
  extras_require={
54
62
  "test": [
55
- "plone.app.testing",
56
63
  "plone.app.robotframework[debug]",
64
+ "plone.app.testing",
65
+ "plone.browserlayer",
66
+ "plone.testing",
67
+ "robotsuite",
68
+ "zope.component",
69
+ "zope.i18n",
57
70
  ],
58
71
  },
59
72
  entry_points="""
@@ -1,9 +1,7 @@
1
- # -*- coding: utf-8 -*-
2
1
  """Init and utils."""
3
2
 
4
3
  from zope.i18nmessageid import MessageFactory
5
4
 
6
-
7
5
  _ = MessageFactory("collective.dms.scanbehavior")
8
6
 
9
7