collective.geolocationbehavior 1.7.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 (62) hide show
  1. collective_geolocationbehavior-2.0.0/.editorconfig +56 -0
  2. collective_geolocationbehavior-2.0.0/.flake8 +22 -0
  3. collective_geolocationbehavior-2.0.0/.gitignore +58 -0
  4. collective_geolocationbehavior-2.0.0/.meta.toml +12 -0
  5. collective_geolocationbehavior-2.0.0/.pre-commit-config.yaml +94 -0
  6. {collective.geolocationbehavior-1.7.2 → collective_geolocationbehavior-2.0.0}/CHANGES.rst +59 -2
  7. {collective.geolocationbehavior-1.7.2/docs → collective_geolocationbehavior-2.0.0}/LICENSE.GPL +7 -7
  8. {collective.geolocationbehavior-1.7.2/docs → collective_geolocationbehavior-2.0.0}/LICENSE.txt +1 -1
  9. collective_geolocationbehavior-2.0.0/MANIFEST.in +6 -0
  10. collective_geolocationbehavior-2.0.0/PKG-INFO +402 -0
  11. collective_geolocationbehavior-2.0.0/README.rst +154 -0
  12. collective_geolocationbehavior-2.0.0/build-i18n.sh +9 -0
  13. collective_geolocationbehavior-2.0.0/docs/images/igeolocatable_behavior.png +0 -0
  14. collective_geolocationbehavior-2.0.0/docs/images/igeolocatable_behavior_used.png +0 -0
  15. collective_geolocationbehavior-2.0.0/pyproject.toml +251 -0
  16. collective_geolocationbehavior-2.0.0/setup.py +4 -0
  17. collective_geolocationbehavior-2.0.0/src/collective/geolocationbehavior/__init__.py +3 -0
  18. {collective.geolocationbehavior-1.7.2 → collective_geolocationbehavior-2.0.0/src}/collective/geolocationbehavior/configure.zcml +11 -7
  19. {collective.geolocationbehavior-1.7.2 → collective_geolocationbehavior-2.0.0/src}/collective/geolocationbehavior/geolocation.py +24 -21
  20. {collective.geolocationbehavior-1.7.2 → collective_geolocationbehavior-2.0.0/src}/collective/geolocationbehavior/indexer.py +0 -1
  21. {collective.geolocationbehavior-1.7.2 → collective_geolocationbehavior-2.0.0/src}/collective/geolocationbehavior/interfaces.py +4 -3
  22. collective_geolocationbehavior-2.0.0/src/collective/geolocationbehavior/locales/collective.geolocationbehavior.pot +48 -0
  23. {collective.geolocationbehavior-1.7.2 → collective_geolocationbehavior-2.0.0/src}/collective/geolocationbehavior/locales/de/LC_MESSAGES/collective.geolocationbehavior.po +26 -6
  24. collective_geolocationbehavior-2.0.0/src/collective/geolocationbehavior/locales/es/LC_MESSAGES/collective.geolocationbehavior.po +50 -0
  25. {collective.geolocationbehavior-1.7.2 → collective_geolocationbehavior-2.0.0/src}/collective/geolocationbehavior/locales/fr/LC_MESSAGES/collective.geolocationbehavior.po +28 -8
  26. {collective.geolocationbehavior-1.7.2 → collective_geolocationbehavior-2.0.0/src}/collective/geolocationbehavior/locales/it/LC_MESSAGES/collective.geolocationbehavior.po +26 -6
  27. collective_geolocationbehavior-2.0.0/src/collective/geolocationbehavior/profiles/default/catalog.xml +20 -0
  28. {collective.geolocationbehavior-1.7.2 → collective_geolocationbehavior-2.0.0/src}/collective/geolocationbehavior/profiles/default/metadata.xml +1 -1
  29. {collective.geolocationbehavior-1.7.2 → collective_geolocationbehavior-2.0.0/src}/collective/geolocationbehavior/profiles/uninstall/metadata.xml +1 -1
  30. collective_geolocationbehavior-2.0.0/src/collective/geolocationbehavior/testing.py +32 -0
  31. collective_geolocationbehavior-2.0.0/src/collective/geolocationbehavior/tests/__init__.py +0 -0
  32. collective_geolocationbehavior-2.0.0/src/collective/geolocationbehavior/tests/test_behavior.py +65 -0
  33. collective_geolocationbehavior-2.0.0/src/collective/geolocationbehavior/tests/test_setup.py +77 -0
  34. {collective.geolocationbehavior-1.7.2 → collective_geolocationbehavior-2.0.0/src}/collective/geolocationbehavior/upgrades/__init__.py +24 -19
  35. {collective.geolocationbehavior-1.7.2 → collective_geolocationbehavior-2.0.0/src}/collective/geolocationbehavior/upgrades/configure.zcml +8 -7
  36. collective_geolocationbehavior-2.0.0/src/collective.geolocationbehavior.egg-info/PKG-INFO +402 -0
  37. collective_geolocationbehavior-2.0.0/src/collective.geolocationbehavior.egg-info/SOURCES.txt +41 -0
  38. collective_geolocationbehavior-2.0.0/src/collective.geolocationbehavior.egg-info/entry_points.txt +2 -0
  39. collective_geolocationbehavior-2.0.0/src/collective.geolocationbehavior.egg-info/requires.txt +23 -0
  40. collective_geolocationbehavior-2.0.0/tox.ini +246 -0
  41. collective.geolocationbehavior-1.7.2/.gitignore +0 -4
  42. collective.geolocationbehavior-1.7.2/.travis.yml +0 -51
  43. collective.geolocationbehavior-1.7.2/MANIFEST.in +0 -4
  44. collective.geolocationbehavior-1.7.2/PKG-INFO +0 -174
  45. collective.geolocationbehavior-1.7.2/README.rst +0 -12
  46. collective.geolocationbehavior-1.7.2/build-i18n.sh +0 -13
  47. collective.geolocationbehavior-1.7.2/buildout.cfg +0 -31
  48. collective.geolocationbehavior-1.7.2/collective/__init__.py +0 -2
  49. collective.geolocationbehavior-1.7.2/collective/geolocationbehavior/__init__.py +0 -3
  50. collective.geolocationbehavior-1.7.2/collective/geolocationbehavior/locales/collective.geolocationbehavior.pot +0 -28
  51. collective.geolocationbehavior-1.7.2/collective/geolocationbehavior/profiles/default/catalog.xml +0 -20
  52. collective.geolocationbehavior-1.7.2/collective.geolocationbehavior.egg-info/PKG-INFO +0 -174
  53. collective.geolocationbehavior-1.7.2/collective.geolocationbehavior.egg-info/SOURCES.txt +0 -34
  54. collective.geolocationbehavior-1.7.2/collective.geolocationbehavior.egg-info/entry_points.txt +0 -4
  55. collective.geolocationbehavior-1.7.2/collective.geolocationbehavior.egg-info/namespace_packages.txt +0 -1
  56. collective.geolocationbehavior-1.7.2/collective.geolocationbehavior.egg-info/not-zip-safe +0 -1
  57. collective.geolocationbehavior-1.7.2/collective.geolocationbehavior.egg-info/requires.txt +0 -10
  58. collective.geolocationbehavior-1.7.2/docs/INSTALL.txt +0 -43
  59. collective.geolocationbehavior-1.7.2/setup.py +0 -54
  60. {collective.geolocationbehavior-1.7.2 → collective_geolocationbehavior-2.0.0}/setup.cfg +0 -0
  61. {collective.geolocationbehavior-1.7.2 → collective_geolocationbehavior-2.0.0/src}/collective.geolocationbehavior.egg-info/dependency_links.txt +0 -0
  62. {collective.geolocationbehavior-1.7.2 → collective_geolocationbehavior-2.0.0/src}/collective.geolocationbehavior.egg-info/top_level.txt +0 -0
@@ -0,0 +1,56 @@
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
+ #
5
+ # EditorConfig Configuration file, for more details see:
6
+ # http://EditorConfig.org
7
+ # EditorConfig is a convention description, that could be interpreted
8
+ # by multiple editors to enforce common coding conventions for specific
9
+ # file types
10
+
11
+ # top-most EditorConfig file:
12
+ # Will ignore other EditorConfig files in Home directory or upper tree level.
13
+ root = true
14
+
15
+
16
+ [*]
17
+ # Default settings for all files.
18
+ # Unix-style newlines with a newline ending every file
19
+ end_of_line = lf
20
+ insert_final_newline = true
21
+ trim_trailing_whitespace = true
22
+ # Set default charset
23
+ charset = utf-8
24
+ # Indent style default
25
+ indent_style = space
26
+ # Max Line Length - a hard line wrap, should be disabled
27
+ max_line_length = off
28
+
29
+ [*.{py,cfg,ini}]
30
+ # 4 space indentation
31
+ indent_size = 4
32
+
33
+ [*.{yml,zpt,pt,dtml,zcml,html,xml}]
34
+ # 2 space indentation
35
+ indent_size = 2
36
+
37
+ [*.{json,jsonl,js,jsx,ts,tsx,css,less,scss}]
38
+ # Frontend development
39
+ # 2 space indentation
40
+ indent_size = 2
41
+ max_line_length = 80
42
+
43
+ [{Makefile,.gitmodules}]
44
+ # Tab indentation (no size specified, but view as 4 spaces)
45
+ indent_style = tab
46
+ indent_size = unset
47
+ tab_width = unset
48
+
49
+
50
+ ##
51
+ # Add extra configuration options in .meta.toml:
52
+ # [editorconfig]
53
+ # extra_lines = """
54
+ # _your own configuration lines_
55
+ # """
56
+ ##
@@ -0,0 +1,22 @@
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
+ [flake8]
5
+ doctests = 1
6
+ ignore =
7
+ # black takes care of line length
8
+ E501,
9
+ # black takes care of where to break lines
10
+ W503,
11
+ # black takes care of spaces within slicing (list[:])
12
+ E203,
13
+ # black takes care of spaces after commas
14
+ E231,
15
+
16
+ ##
17
+ # Add extra configuration options in .meta.toml:
18
+ # [flake8]
19
+ # extra_lines = """
20
+ # _your own configuration lines_
21
+ # """
22
+ ##
@@ -0,0 +1,58 @@
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
+ # python related
5
+ *.egg-info
6
+ *.pyc
7
+ *.pyo
8
+
9
+ # translation related
10
+ *.mo
11
+
12
+ # tools related
13
+ build/
14
+ .coverage
15
+ .*project
16
+ coverage.xml
17
+ dist/
18
+ docs/_build
19
+ __pycache__/
20
+ .tox
21
+ .vscode/
22
+ node_modules/
23
+ forest.dot
24
+ forest.json
25
+
26
+ # venv / buildout related
27
+ bin/
28
+ develop-eggs/
29
+ eggs/
30
+ .eggs/
31
+ etc/
32
+ .installed.cfg
33
+ include/
34
+ lib/
35
+ lib64
36
+ .mr.developer.cfg
37
+ parts/
38
+ pyvenv.cfg
39
+ var/
40
+ local.cfg
41
+
42
+ # mxdev
43
+ /instance/
44
+ /.make-sentinels/
45
+ /*-mxdev.txt
46
+ /reports/
47
+ /sources/
48
+ /venv/
49
+ .installed.txt
50
+
51
+
52
+ ##
53
+ # Add extra configuration options in .meta.toml:
54
+ # [gitignore]
55
+ # extra_lines = """
56
+ # _your own configuration lines_
57
+ # """
58
+ ##
@@ -0,0 +1,12 @@
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
+ [meta]
5
+ template = "default"
6
+ commit-id = "2.12.0"
7
+
8
+ [tox]
9
+ test_matrix = { "6.2" = ["*"], "6.1" = ["*"] }
10
+
11
+ [pyproject]
12
+ dependencies_ignores = "['plone.api', 'plone.app.multilingual']"
@@ -0,0 +1,94 @@
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
+ ci:
5
+ autofix_prs: false
6
+ autoupdate_schedule: monthly
7
+
8
+ repos:
9
+ - repo: https://github.com/asottile/pyupgrade
10
+ rev: v3.22.0
11
+ hooks:
12
+ - id: pyupgrade
13
+ args: [--py310-plus]
14
+ - repo: https://github.com/pycqa/isort
15
+ rev: 9.0.2
16
+ hooks:
17
+ - id: isort
18
+ - repo: https://github.com/psf/black-pre-commit-mirror
19
+ rev: 26.10.1
20
+ hooks:
21
+ - id: black
22
+ - repo: https://github.com/collective/zpretty
23
+ rev: 4.0.3
24
+ hooks:
25
+ - id: zpretty
26
+
27
+ ##
28
+ # Add extra configuration options in .meta.toml:
29
+ # [pre_commit]
30
+ # zpretty_extra_lines = """
31
+ # _your own configuration lines_
32
+ # """
33
+ ##
34
+ - repo: https://github.com/PyCQA/flake8
35
+ rev: 7.4.1
36
+ hooks:
37
+ - id: flake8
38
+
39
+ ##
40
+ # Add extra configuration options in .meta.toml:
41
+ # [pre_commit]
42
+ # flake8_extra_lines = """
43
+ # _your own configuration lines_
44
+ # """
45
+ ##
46
+ - repo: https://github.com/codespell-project/codespell
47
+ rev: v2.4.3
48
+ hooks:
49
+ - id: codespell
50
+ additional_dependencies:
51
+ - tomli
52
+
53
+ ##
54
+ # Add extra configuration options in .meta.toml:
55
+ # [pre_commit]
56
+ # codespell_extra_lines = """
57
+ # _your own configuration lines_
58
+ # """
59
+ ##
60
+ - repo: https://github.com/mgedmin/check-manifest
61
+ rev: "0.51"
62
+ hooks:
63
+ - id: check-manifest
64
+ - repo: https://github.com/regebro/pyroma
65
+ rev: "5.1b2"
66
+ hooks:
67
+ - id: pyroma
68
+ - repo: https://github.com/mgedmin/check-python-versions
69
+ rev: "0.25.0"
70
+ hooks:
71
+ - id: check-python-versions
72
+ args: ['--only', 'pyproject.toml,tox.ini']
73
+ - repo: https://github.com/collective/i18ndude
74
+ rev: "6.3.0"
75
+ hooks:
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
+
87
+
88
+ ##
89
+ # Add extra configuration options in .meta.toml:
90
+ # [pre_commit]
91
+ # extra_lines = """
92
+ # _your own configuration lines_
93
+ # """
94
+ ##
@@ -1,6 +1,63 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ .. towncrier release notes start
5
+
6
+ 2.0.0 (2026-11-12)
7
+ ------------------
8
+
9
+ Breaking changes:
10
+
11
+
12
+ - Require Plone 6.1 or 6.2 and Python 3.10 to 3.14, drop support for
13
+ Plone 5.2 and 6.0.
14
+ [erral, petschki]
15
+ - Switch to a PEP 420 native namespace package (no ``collective/__init__.py``
16
+ with ``pkg_resources`` namespace declaration any more). Mixing native and
17
+ ``pkg_resources``-style packages in the ``collective`` namespace does not
18
+ work; in environments that still contain old-style ``collective.*`` eggs
19
+ (typically Plone 6.1 buildouts) use ``horse-with-no-namespace``.
20
+ [erral, petschki]
21
+
22
+
23
+ New features:
24
+
25
+
26
+ - Add Spanish translation and new translation strings.
27
+ [macagua]
28
+ - Complete the German translation.
29
+ [petschki]
30
+
31
+
32
+ Internal:
33
+
34
+
35
+ - Add an integration test suite (install/uninstall, behavior registration,
36
+ ``latitude``/``longitude`` indexes and metadata, GeoJSON properties adapter)
37
+ and a ``test`` extra, run on Plone 6.1 and 6.2 in CI.
38
+ [petschki]
39
+ - Fixed some errors from code-analysis scripts.
40
+ [macagua]
41
+ - Move package metadata from ``setup.py`` to ``pyproject.toml``.
42
+ [petschki]
43
+ - Move to the ``src/`` layout and configure the repository with plone/meta
44
+ (2.11.1): tox, GitHub workflows, pre-commit with pyupgrade, isort, black,
45
+ zpretty, flake8, codespell, check-manifest, pyroma, i18ndude.
46
+ [erral, petschki]
47
+ - Remove the obsolete ``buildout.cfg`` and ``docs/INSTALL.txt``; fix
48
+ ``build-i18n.sh`` for the ``src/`` layout.
49
+ [petschki]
50
+ - Replace the deprecated ``pkg_resources`` probe for ``plone.app.multilingual``
51
+ with ``importlib`` (setuptools 81+ warns about ``pkg_resources``).
52
+ [petschki]
53
+ - Update configuration files.
54
+ [plone devs]
55
+ - Use the SPDX license expression ``GPL-2.0-or-later`` (matching the
56
+ license grant in ``LICENSE.txt``) instead of the deprecated license
57
+ classifier; ``LICENSE.txt`` moved to the package root next to
58
+ ``LICENSE.GPL``.
59
+ [petschki]
60
+
4
61
 
5
62
  1.7.2 (2021-09-16)
6
63
  ------------------
@@ -45,7 +102,7 @@ Changelog
45
102
  1.5.1 (2017-04-04)
46
103
  ------------------
47
104
 
48
- - Explicitly include necessary zcml dependencies to avoid having to explictly doing that in tests.
105
+ - Explicitly include necessary zcml dependencies to avoid having to explicitly doing that in tests.
49
106
  plone.app.testing disables z3c.autoinclude.
50
107
  [thet]
51
108
 
@@ -54,7 +111,7 @@ Changelog
54
111
  ----------------
55
112
 
56
113
  - Register the ``collective.geolocationbehavior.geolocation.IGeolocatable`` behavior under the name ``geolocatable``.
57
- Do not bind ``for`` because its superfluos.
114
+ Do not bind ``for`` because its superfluous.
58
115
  [thet, jensens]
59
116
 
60
117
  - Code cleanup, remove BBB classes.
@@ -1,12 +1,12 @@
1
- GNU GENERAL PUBLIC LICENSE
2
- Version 2, June 1991
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 2, June 1991
3
3
 
4
4
  Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
5
5
  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
6
6
  Everyone is permitted to copy and distribute verbatim copies
7
7
  of this license document, but changing it is not allowed.
8
8
 
9
- Preamble
9
+ Preamble
10
10
 
11
11
  The licenses for most software are designed to take away your
12
12
  freedom to share and change it. By contrast, the GNU General Public
@@ -56,7 +56,7 @@ patent must be licensed for everyone's free use or not licensed at all.
56
56
  The precise terms and conditions for copying, distribution and
57
57
  modification follow.
58
58
 
59
- GNU GENERAL PUBLIC LICENSE
59
+ GNU GENERAL PUBLIC LICENSE
60
60
  TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61
61
 
62
62
  0. This License applies to any program or other work which contains
@@ -255,7 +255,7 @@ make exceptions for this. Our decision will be guided by the two goals
255
255
  of preserving the free status of all derivatives of our free software and
256
256
  of promoting the sharing and reuse of software generally.
257
257
 
258
- NO WARRANTY
258
+ NO WARRANTY
259
259
 
260
260
  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261
261
  FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
@@ -277,9 +277,9 @@ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277
277
  PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278
278
  POSSIBILITY OF SUCH DAMAGES.
279
279
 
280
- END OF TERMS AND CONDITIONS
280
+ END OF TERMS AND CONDITIONS
281
281
 
282
- How to Apply These Terms to Your New Programs
282
+ How to Apply These Terms to Your New Programs
283
283
 
284
284
  If you develop a new program, and you want it to be of the greatest
285
285
  possible use to the public, the best way to achieve this is to make it
@@ -12,5 +12,5 @@
12
12
 
13
13
  You should have received a copy of the GNU General Public License
14
14
  along with this program; if not, write to the Free Software
15
- Foundation, Inc., 59 Temple Place, Suite 330, Boston,
15
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston,
16
16
  MA 02111-1307 USA.
@@ -0,0 +1,6 @@
1
+ recursive-include src *
2
+ recursive-include docs *
3
+ recursive-exclude news *
4
+ exclude news
5
+ include *
6
+ global-exclude *.pyc