yafowil.widget.array 2.0a1__tar.gz → 2.0.1__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.
- yafowil_widget_array-2.0.1/.gitignore +18 -0
- yafowil_widget_array-2.0.1/CHANGES.rst +241 -0
- {yafowil.widget.array-2.0a1 → yafowil_widget_array-2.0.1}/LICENSE.rst +1 -1
- yafowil_widget_array-2.0.1/PKG-INFO +63 -0
- yafowil_widget_array-2.0.1/README.rst +39 -0
- yafowil_widget_array-2.0.1/biome.json +31 -0
- yafowil_widget_array-2.0.1/include.mk +16 -0
- yafowil_widget_array-2.0.1/pyproject.toml +93 -0
- yafowil_widget_array-2.0.1/src/yafowil/widget/array/__init__.py +195 -0
- {yafowil.widget.array-2.0a1 → yafowil_widget_array-2.0.1}/src/yafowil/widget/array/example.py +240 -114
- yafowil_widget_array-2.0.1/src/yafowil/widget/array/resources/bootstrap/widget.min.css +1 -0
- yafowil_widget_array-2.0.1/src/yafowil/widget/array/resources/bootstrap5/widget.js +278 -0
- yafowil_widget_array-2.0.1/src/yafowil/widget/array/resources/bootstrap5/widget.min.css +1 -0
- yafowil_widget_array-2.0.1/src/yafowil/widget/array/resources/bootstrap5/widget.min.js +1 -0
- {yafowil.widget.array-2.0a1/src/yafowil/widget/array/resources → yafowil_widget_array-2.0.1/src/yafowil/widget/array/resources/default}/widget.js +90 -81
- yafowil_widget_array-2.0.1/src/yafowil/widget/array/resources/default/widget.min.css +1 -0
- yafowil_widget_array-2.0.1/src/yafowil/widget/array/resources/default/widget.min.js +1 -0
- yafowil_widget_array-2.0.1/src/yafowil/widget/array/resources/plone5/widget.min.css +1 -0
- yafowil.widget.array-2.0a1/src/yafowil/widget/array/tests.py → yafowil_widget_array-2.0.1/src/yafowil/widget/array/tests/test_widget.py +629 -695
- {yafowil.widget.array-2.0a1 → yafowil_widget_array-2.0.1}/src/yafowil/widget/array/widget.py +62 -54
- yafowil.widget.array-2.0a1/CHANGES.rst +0 -145
- yafowil.widget.array-2.0a1/MANIFEST.in +0 -6
- yafowil.widget.array-2.0a1/PKG-INFO +0 -219
- yafowil.widget.array-2.0a1/README.rst +0 -23
- yafowil.widget.array-2.0a1/setup.cfg +0 -7
- yafowil.widget.array-2.0a1/setup.py +0 -64
- yafowil.widget.array-2.0a1/src/yafowil/__init__.py +0 -1
- yafowil.widget.array-2.0a1/src/yafowil/widget/__init__.py +0 -1
- yafowil.widget.array-2.0a1/src/yafowil/widget/array/__init__.py +0 -158
- yafowil.widget.array-2.0a1/src/yafowil/widget/array/resources/bootstrap/widget.css +0 -76
- yafowil.widget.array-2.0a1/src/yafowil/widget/array/resources/default/widget.css +0 -68
- yafowil.widget.array-2.0a1/src/yafowil/widget/array/resources/plone5/widget.css +0 -97
- yafowil.widget.array-2.0a1/src/yafowil/widget/array/resources/widget.min.js +0 -1
- yafowil.widget.array-2.0a1/src/yafowil.widget.array.egg-info/PKG-INFO +0 -219
- yafowil.widget.array-2.0a1/src/yafowil.widget.array.egg-info/SOURCES.txt +0 -31
- yafowil.widget.array-2.0a1/src/yafowil.widget.array.egg-info/dependency_links.txt +0 -1
- yafowil.widget.array-2.0a1/src/yafowil.widget.array.egg-info/entry_points.txt +0 -3
- yafowil.widget.array-2.0a1/src/yafowil.widget.array.egg-info/namespace_packages.txt +0 -2
- yafowil.widget.array-2.0a1/src/yafowil.widget.array.egg-info/not-zip-safe +0 -1
- yafowil.widget.array-2.0a1/src/yafowil.widget.array.egg-info/requires.txt +0 -6
- yafowil.widget.array-2.0a1/src/yafowil.widget.array.egg-info/top_level.txt +0 -1
- {yafowil.widget.array-2.0a1 → yafowil_widget_array-2.0.1}/src/yafowil/widget/array/resources/default/images/icon_add.png +0 -0
- {yafowil.widget.array-2.0a1 → yafowil_widget_array-2.0.1}/src/yafowil/widget/array/resources/default/images/icon_down.png +0 -0
- {yafowil.widget.array-2.0a1 → yafowil_widget_array-2.0.1}/src/yafowil/widget/array/resources/default/images/icon_down_disabled.png +0 -0
- {yafowil.widget.array-2.0a1 → yafowil_widget_array-2.0.1}/src/yafowil/widget/array/resources/default/images/icon_remove.png +0 -0
- {yafowil.widget.array-2.0a1 → yafowil_widget_array-2.0.1}/src/yafowil/widget/array/resources/default/images/icon_up.png +0 -0
- {yafowil.widget.array-2.0a1 → yafowil_widget_array-2.0.1}/src/yafowil/widget/array/resources/default/images/icon_up_disabled.png +0 -0
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
Changes
|
|
2
|
+
=======
|
|
3
|
+
|
|
4
|
+
2.0.1 (2026-10-31)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
- Fix ids containing the dotted path of an array entry on adding, removing or
|
|
8
|
+
moving rows, e.g. the ``yafowil.widget.dict`` table id
|
|
9
|
+
``dictwidget_myform.myarray.0.entry``. Such ids kept the template or old
|
|
10
|
+
index, or lost their ``.entry`` suffix.
|
|
11
|
+
[rnix]
|
|
12
|
+
|
|
13
|
+
- Fix names with a suffix after the index losing the suffix on adding, removing
|
|
14
|
+
or moving rows, e.g. the ``myform.myarray.0-exists`` marker of checkbox and
|
|
15
|
+
select widgets inside arrays.
|
|
16
|
+
[rnix]
|
|
17
|
+
|
|
18
|
+
- Fix the array path matching inside other names on adding, removing or moving
|
|
19
|
+
rows. E.g. the id ``array-arr-0-sub`` of an array inside the root array
|
|
20
|
+
``arr`` became ``arra1-arr-0-sub``. The path now matches only at a name
|
|
21
|
+
delimiter and followed by an index.
|
|
22
|
+
[rnix]
|
|
23
|
+
|
|
24
|
+
- Extend the JS tests to 100 % coverage, all modules including bundles are
|
|
25
|
+
loaded by the tests now.
|
|
26
|
+
[rnix]
|
|
27
|
+
|
|
28
|
+
- Lint and format the JS code with biome. ``make check`` runs ``biome check``,
|
|
29
|
+
``make format`` runs ``biome check --write`` (see ``include.mk``). Behavior
|
|
30
|
+
unchanged.
|
|
31
|
+
[rnix]
|
|
32
|
+
|
|
33
|
+
- JS tooling: Use ``pnpm-lock.yaml`` instead of ``package-lock.json``. Upgrade
|
|
34
|
+
``@web/test-runner`` to 1.0 and run the JS tests headless in Chromium via
|
|
35
|
+
Playwright, installed in the JS CI workflow. Replace the unmaintained
|
|
36
|
+
``rollup-plugin-terser`` with ``@rollup/plugin-terser``. Drop the accidental
|
|
37
|
+
``install`` dev dependency. Pin patched versions of vulnerable transitive
|
|
38
|
+
dependencies via ``pnpm.overrides``.
|
|
39
|
+
[rnix]
|
|
40
|
+
|
|
41
|
+
- Modernise the code ruff flags as outdated: ``u''`` prefixes and ``.format()``
|
|
42
|
+
over f-strings. Behaviour unchanged. ``super(Class, self)`` is kept, see
|
|
43
|
+
``cone.app``.
|
|
44
|
+
[rnix]
|
|
45
|
+
|
|
46
|
+
- Sort the imports with ruff (one per line, ``from`` imports first, no
|
|
47
|
+
sections) and format the code with ``ruff format`` (90 characters per line,
|
|
48
|
+
single quotes).
|
|
49
|
+
[rnix]
|
|
50
|
+
|
|
51
|
+
- Add ``qa.ruff`` domain to Makefile and pin the ruff configuration in
|
|
52
|
+
``pyproject.toml``, ``make check`` runs ``ruff check``.
|
|
53
|
+
[rnix]
|
|
54
|
+
|
|
55
|
+
- Drop the Python 2 remnants: ``yafowil.compat`` usage and ``IS_PY2`` branches.
|
|
56
|
+
[rnix]
|
|
57
|
+
|
|
58
|
+
- Declare ``requires-python = ">=3.10"``.
|
|
59
|
+
[rnix]
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
2.0.0 (2026-02-03)
|
|
63
|
+
------------------
|
|
64
|
+
|
|
65
|
+
- Refactor package layout to use ``pyproject.toml`` and implicit namespace packages.
|
|
66
|
+
[rnix]
|
|
67
|
+
|
|
68
|
+
- Update jQuery to version ``4.0.0-beta.2``.
|
|
69
|
+
[lenadax]
|
|
70
|
+
|
|
71
|
+
- Use ``bootstrap-icons`` font instead of glyphicons.
|
|
72
|
+
[lenadax]
|
|
73
|
+
|
|
74
|
+
- Add visual effects to distinguish rows that have been moved or created.
|
|
75
|
+
[lenadax]
|
|
76
|
+
|
|
77
|
+
- Implement dark theme for ``Bootstrap5`` dark theme mode.
|
|
78
|
+
[lenadax]
|
|
79
|
+
|
|
80
|
+
- Use rollup for bundling scss. Use ``make rollup`` to compile js and scss.
|
|
81
|
+
[lenadax]
|
|
82
|
+
|
|
83
|
+
- Use ``webtestrunner`` instead of ``karma`` for js tests. Use ``make wtr`` to run tests.
|
|
84
|
+
[lenadax]
|
|
85
|
+
|
|
86
|
+
- Use ``pnpm`` as package manager.
|
|
87
|
+
[lenadax]
|
|
88
|
+
|
|
89
|
+
- Create Bootstrap5 widget version.
|
|
90
|
+
[lenadax]
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
2.0a1 (2023-05-15)
|
|
94
|
+
------------------
|
|
95
|
+
|
|
96
|
+
- Add ``webresource`` support.
|
|
97
|
+
[rnix]
|
|
98
|
+
|
|
99
|
+
- Add ``inside_template`` JS utility function.
|
|
100
|
+
[rnix]
|
|
101
|
+
|
|
102
|
+
- ``array.hooks`` are deprecated. Use ``on_array_event`` instead.
|
|
103
|
+
[rnix]
|
|
104
|
+
|
|
105
|
+
- Rewrite JavaScript using ES6.
|
|
106
|
+
[rnix]
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
1.8 (2025-11-03)
|
|
110
|
+
----------------
|
|
111
|
+
|
|
112
|
+
- Pin upper versions of dependencies.
|
|
113
|
+
[lenadax]
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
1.7 (2022-10-06)
|
|
117
|
+
----------------
|
|
118
|
+
|
|
119
|
+
- Introduce new method ``set_value_index`` to allow correct custom indexing
|
|
120
|
+
in index hooks.
|
|
121
|
+
[lenadax]
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
1.6.1 (2019-11-20)
|
|
125
|
+
------------------
|
|
126
|
+
|
|
127
|
+
- Use ``bdajax.register`` for registering binder function.
|
|
128
|
+
[rnix]
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
1.6 (2019-07-31)
|
|
132
|
+
----------------
|
|
133
|
+
|
|
134
|
+
- Add additional JS hooks when array gets modified. Provided hooks are now
|
|
135
|
+
``before_add``, ``add``, ``remove``, ``before_up``, ``up``, ``before_down``,
|
|
136
|
+
``down`` and ``index``.
|
|
137
|
+
[rnix]
|
|
138
|
+
|
|
139
|
+
- Add ``array_display_renderer``.
|
|
140
|
+
[rnix]
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
1.5 (2018-07-16)
|
|
144
|
+
----------------
|
|
145
|
+
|
|
146
|
+
- Python 3 compatibility.
|
|
147
|
+
[rnix]
|
|
148
|
+
|
|
149
|
+
- Convert doctests to unittests.
|
|
150
|
+
[rnix]
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
1.4 (2016-09-09)
|
|
154
|
+
----------------
|
|
155
|
+
|
|
156
|
+
- Add dedicated CSS for ``plone5`` theme provided by ``yafowil.plone``.
|
|
157
|
+
[rnix, 2016-06-28]
|
|
158
|
+
|
|
159
|
+
- Use ``yafowil.utils.entry_point`` decorator.
|
|
160
|
+
[rnix, 2016-06-27]
|
|
161
|
+
|
|
162
|
+
- Minor bootstrap theme CSS changes.
|
|
163
|
+
[rnix, 2016-06-27]
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
1.3.1 (2015-06-25)
|
|
167
|
+
------------------
|
|
168
|
+
|
|
169
|
+
- Resolve JSHint errors and warnings.
|
|
170
|
+
[thet]
|
|
171
|
+
|
|
172
|
+
- Fix CSS for displaying icons in default theme.
|
|
173
|
+
[marfago]
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
1.3 (2015-01-23)
|
|
177
|
+
----------------
|
|
178
|
+
|
|
179
|
+
- Fix ``mark_disabled`` function.
|
|
180
|
+
[rnix]
|
|
181
|
+
|
|
182
|
+
- Adopt to ``yafowil.bootstrap`` 1.2.
|
|
183
|
+
[rnix]
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
1.2.1
|
|
187
|
+
-----
|
|
188
|
+
|
|
189
|
+
- Do not hook ``array_display_proxy`` if ``display_proxy`` proerty set on
|
|
190
|
+
widget attributes.
|
|
191
|
+
[rnix, 2012-10-26]
|
|
192
|
+
|
|
193
|
+
- Use ``yafowil.utils.attr_value`` wherever possible.
|
|
194
|
+
[rnix, 2012-10-25]
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
1.2
|
|
198
|
+
---
|
|
199
|
+
|
|
200
|
+
- Add ``array`` CSS class to array wrapper DOM element if not present (may
|
|
201
|
+
happen if ``class`` property for array blueprint gets overwritten). Javascript
|
|
202
|
+
depends on this CSS class.
|
|
203
|
+
[rnix, 2012-07-25]
|
|
204
|
+
|
|
205
|
+
- Adopt resource providing.
|
|
206
|
+
[rnix, 2012-06-12]
|
|
207
|
+
|
|
208
|
+
- Remove example app.
|
|
209
|
+
[rnix, 2012-06-12]
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
1.1
|
|
213
|
+
---
|
|
214
|
+
|
|
215
|
+
- pass parent to array extractor explicit extract call (as compound extractor
|
|
216
|
+
does).
|
|
217
|
+
[jensens, 2012-05-20]
|
|
218
|
+
|
|
219
|
+
- Handle ``required`` property in ``array`` blueprint.
|
|
220
|
+
[rnix, 2012-04-19]
|
|
221
|
+
|
|
222
|
+
- Handle ``display`` mode and ``disabled`` property for leaf array children.
|
|
223
|
+
[rnix, 2012-04-17]
|
|
224
|
+
|
|
225
|
+
- Introduce ``add``, ``remove``, ``sort`` and ``static`` properties for
|
|
226
|
+
``array`` blueprint.
|
|
227
|
+
[rnix, 2012-04-13]
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
1.0
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
- Implement yafowil 1.3 entry_point registration
|
|
234
|
+
[agitator, 2012-02-15]
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
0.9
|
|
238
|
+
---
|
|
239
|
+
|
|
240
|
+
- Make it work
|
|
241
|
+
[rnix]
|
|
@@ -2,7 +2,7 @@ License
|
|
|
2
2
|
=======
|
|
3
3
|
|
|
4
4
|
Copyright (c) 2011-2021, BlueDynamics Alliance, Austria, Germany, Switzerland
|
|
5
|
-
Copyright (c) 2021-
|
|
5
|
+
Copyright (c) 2021-2025, Yafowil Contributors
|
|
6
6
|
All rights reserved.
|
|
7
7
|
|
|
8
8
|
Redistribution and use in source and binary forms, with or without
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: yafowil.widget.array
|
|
3
|
+
Version: 2.0.1
|
|
4
|
+
Summary: Array Widget for YAFOWIL
|
|
5
|
+
Author-email: Yafowil Contributors <dev@conestack.org>
|
|
6
|
+
License: Simplified BSD
|
|
7
|
+
License-File: LICENSE.rst
|
|
8
|
+
Classifier: Environment :: Web Environment
|
|
9
|
+
Classifier: License :: OSI Approved :: BSD License
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Classifier: Programming Language :: Python
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
17
|
+
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
|
|
18
|
+
Requires-Python: >=3.10
|
|
19
|
+
Requires-Dist: yafowil>3.99
|
|
20
|
+
Provides-Extra: test
|
|
21
|
+
Requires-Dist: lxml; extra == 'test'
|
|
22
|
+
Requires-Dist: pytest; extra == 'test'
|
|
23
|
+
Description-Content-Type: text/x-rst
|
|
24
|
+
|
|
25
|
+
.. image:: https://img.shields.io/pypi/v/yafowil.widget.array.svg
|
|
26
|
+
:target: https://pypi.python.org/pypi/yafowil.widget.array
|
|
27
|
+
:alt: Latest PyPI version
|
|
28
|
+
|
|
29
|
+
.. image:: https://img.shields.io/pypi/dm/yafowil.widget.array.svg
|
|
30
|
+
:target: https://pypi.python.org/pypi/yafowil.widget.array
|
|
31
|
+
:alt: Number of PyPI downloads
|
|
32
|
+
|
|
33
|
+
.. image:: https://github.com/conestack/yafowil.widget.array/actions/workflows/test_py.yaml/badge.svg
|
|
34
|
+
:target: https://github.com/conestack/yafowil.widget.array/actions/workflows/test_py.yaml
|
|
35
|
+
:alt: Test yafowil.widget.array Python
|
|
36
|
+
|
|
37
|
+
.. image:: https://github.com/conestack/yafowil.widget.array/actions/workflows/test_js.yaml/badge.svg
|
|
38
|
+
:target: https://github.com/conestack/yafowil.widget.array/actions/workflows/test_js.yaml
|
|
39
|
+
:alt: Test yafowil.widget.array JS
|
|
40
|
+
|
|
41
|
+
This is an **array widget** for for `YAFOWIL
|
|
42
|
+
<http://pypi.python.org/pypi/yafowil>`_.
|
|
43
|
+
|
|
44
|
+
- `Documentation <http://docs.yafowil.info/en/latest/blueprints.html#array>`_
|
|
45
|
+
- `DEMO - see it Live <http://demo.yafowil.info/++widget++yafowil.widget.array/index.html>`_
|
|
46
|
+
|
|
47
|
+
Source Code
|
|
48
|
+
===========
|
|
49
|
+
|
|
50
|
+
The sources are in a GIT DVCS with its main branches at
|
|
51
|
+
`github <http://github.com/conestack/yafowil.widget.array>`_.
|
|
52
|
+
|
|
53
|
+
We'd be happy to see many forks and pull-requests to make YAFOWIL even better.
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
Contributors
|
|
57
|
+
============
|
|
58
|
+
|
|
59
|
+
- Robert Niederreiter
|
|
60
|
+
|
|
61
|
+
- Georg Bernhard
|
|
62
|
+
|
|
63
|
+
- Lena Daxenbichler
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
.. image:: https://img.shields.io/pypi/v/yafowil.widget.array.svg
|
|
2
|
+
:target: https://pypi.python.org/pypi/yafowil.widget.array
|
|
3
|
+
:alt: Latest PyPI version
|
|
4
|
+
|
|
5
|
+
.. image:: https://img.shields.io/pypi/dm/yafowil.widget.array.svg
|
|
6
|
+
:target: https://pypi.python.org/pypi/yafowil.widget.array
|
|
7
|
+
:alt: Number of PyPI downloads
|
|
8
|
+
|
|
9
|
+
.. image:: https://github.com/conestack/yafowil.widget.array/actions/workflows/test_py.yaml/badge.svg
|
|
10
|
+
:target: https://github.com/conestack/yafowil.widget.array/actions/workflows/test_py.yaml
|
|
11
|
+
:alt: Test yafowil.widget.array Python
|
|
12
|
+
|
|
13
|
+
.. image:: https://github.com/conestack/yafowil.widget.array/actions/workflows/test_js.yaml/badge.svg
|
|
14
|
+
:target: https://github.com/conestack/yafowil.widget.array/actions/workflows/test_js.yaml
|
|
15
|
+
:alt: Test yafowil.widget.array JS
|
|
16
|
+
|
|
17
|
+
This is an **array widget** for for `YAFOWIL
|
|
18
|
+
<http://pypi.python.org/pypi/yafowil>`_.
|
|
19
|
+
|
|
20
|
+
- `Documentation <http://docs.yafowil.info/en/latest/blueprints.html#array>`_
|
|
21
|
+
- `DEMO - see it Live <http://demo.yafowil.info/++widget++yafowil.widget.array/index.html>`_
|
|
22
|
+
|
|
23
|
+
Source Code
|
|
24
|
+
===========
|
|
25
|
+
|
|
26
|
+
The sources are in a GIT DVCS with its main branches at
|
|
27
|
+
`github <http://github.com/conestack/yafowil.widget.array>`_.
|
|
28
|
+
|
|
29
|
+
We'd be happy to see many forks and pull-requests to make YAFOWIL even better.
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
Contributors
|
|
33
|
+
============
|
|
34
|
+
|
|
35
|
+
- Robert Niederreiter
|
|
36
|
+
|
|
37
|
+
- Georg Bernhard
|
|
38
|
+
|
|
39
|
+
- Lena Daxenbichler
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.6.3/schema.json",
|
|
3
|
+
"files": {
|
|
4
|
+
"includes": ["js/src/**/*.js", "js/tests/**/*.js"]
|
|
5
|
+
},
|
|
6
|
+
"formatter": {
|
|
7
|
+
"enabled": true,
|
|
8
|
+
"indentStyle": "space",
|
|
9
|
+
"indentWidth": 4,
|
|
10
|
+
"lineWidth": 100
|
|
11
|
+
},
|
|
12
|
+
"linter": {
|
|
13
|
+
"enabled": true,
|
|
14
|
+
"rules": {
|
|
15
|
+
"preset": "recommended",
|
|
16
|
+
"correctness": {
|
|
17
|
+
"noUnusedVariables": "warn"
|
|
18
|
+
},
|
|
19
|
+
"complexity": {
|
|
20
|
+
"noStaticOnlyClass": "off",
|
|
21
|
+
"noThisInStatic": "off"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"javascript": {
|
|
26
|
+
"formatter": {
|
|
27
|
+
"quoteStyle": "single",
|
|
28
|
+
"semicolons": "always"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
##############################################################################
|
|
2
|
+
# biome (JS linting and formatting)
|
|
3
|
+
##############################################################################
|
|
4
|
+
|
|
5
|
+
.PHONY: biome-check
|
|
6
|
+
biome-check: $(NODEJS_TARGET)
|
|
7
|
+
@echo "Run biome check"
|
|
8
|
+
@biome check
|
|
9
|
+
|
|
10
|
+
.PHONY: biome-format
|
|
11
|
+
biome-format: $(NODEJS_TARGET)
|
|
12
|
+
@echo "Run biome format"
|
|
13
|
+
@biome check --write
|
|
14
|
+
|
|
15
|
+
CHECK_TARGETS+=biome-check
|
|
16
|
+
FORMAT_TARGETS+=biome-format
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling", "hatch-fancy-pypi-readme"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "yafowil.widget.array"
|
|
7
|
+
version = "2.0.1"
|
|
8
|
+
description = "Array Widget for YAFOWIL"
|
|
9
|
+
readme = "README.rst"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = {text = "Simplified BSD"}
|
|
12
|
+
authors = [{name = "Yafowil Contributors", email = "dev@conestack.org"}]
|
|
13
|
+
classifiers = [
|
|
14
|
+
"Environment :: Web Environment",
|
|
15
|
+
"Operating System :: OS Independent",
|
|
16
|
+
"Programming Language :: Python",
|
|
17
|
+
"Programming Language :: Python :: 3.10",
|
|
18
|
+
"Programming Language :: Python :: 3.11",
|
|
19
|
+
"Programming Language :: Python :: 3.12",
|
|
20
|
+
"Programming Language :: Python :: 3.13",
|
|
21
|
+
"Programming Language :: Python :: 3.14",
|
|
22
|
+
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
|
|
23
|
+
"License :: OSI Approved :: BSD License",
|
|
24
|
+
]
|
|
25
|
+
dependencies = [
|
|
26
|
+
"yafowil>3.99",
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
[project.optional-dependencies]
|
|
30
|
+
test = [
|
|
31
|
+
"lxml",
|
|
32
|
+
"pytest",
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
[project.entry-points."yafowil.plugin"]
|
|
36
|
+
register = "yafowil.widget.array:register"
|
|
37
|
+
example = "yafowil.widget.array.example:get_example"
|
|
38
|
+
|
|
39
|
+
[tool.hatch.metadata.hooks.fancy-pypi-readme]
|
|
40
|
+
content-type = "text/x-rst"
|
|
41
|
+
fragments = [
|
|
42
|
+
{path = "README.rst"},
|
|
43
|
+
{text = "\n\n"},
|
|
44
|
+
{path = "CHANGES.rst"},
|
|
45
|
+
{text = "\n\n"},
|
|
46
|
+
{path = "LICENSE.rst"},
|
|
47
|
+
]
|
|
48
|
+
|
|
49
|
+
[tool.hatch.build.targets.sdist]
|
|
50
|
+
exclude = [
|
|
51
|
+
"/.github/",
|
|
52
|
+
"/js/",
|
|
53
|
+
"/Makefile",
|
|
54
|
+
"/mx.ini",
|
|
55
|
+
"/mxmake.yaml",
|
|
56
|
+
"/package-lock.json",
|
|
57
|
+
"/package.json",
|
|
58
|
+
"/pnpm-lock.yaml",
|
|
59
|
+
"/scss",
|
|
60
|
+
]
|
|
61
|
+
|
|
62
|
+
[tool.hatch.build.targets.wheel]
|
|
63
|
+
packages = ["src/yafowil"]
|
|
64
|
+
|
|
65
|
+
[tool.pytest.ini_options]
|
|
66
|
+
consider_namespace_packages = true
|
|
67
|
+
addopts = ["--import-mode=importlib"]
|
|
68
|
+
pythonpath = "src"
|
|
69
|
+
|
|
70
|
+
[tool.coverage.run]
|
|
71
|
+
omit = ["*/example.py"]
|
|
72
|
+
|
|
73
|
+
[tool.ruff]
|
|
74
|
+
line-length = 90
|
|
75
|
+
|
|
76
|
+
[tool.ruff.lint]
|
|
77
|
+
select = ["E4", "E7", "E9", "F", "I", "UP"]
|
|
78
|
+
# UP008: zero-argument ``super()`` breaks on ``@plumbing`` decorated classes.
|
|
79
|
+
# UP031: ``%`` formatting is kept.
|
|
80
|
+
ignore = ["UP008", "UP031"]
|
|
81
|
+
|
|
82
|
+
[tool.ruff.lint.isort]
|
|
83
|
+
force-single-line = true
|
|
84
|
+
from-first = true
|
|
85
|
+
no-sections = true
|
|
86
|
+
lines-after-imports = 2
|
|
87
|
+
order-by-type = false
|
|
88
|
+
|
|
89
|
+
[tool.ruff.format]
|
|
90
|
+
quote-style = "single"
|
|
91
|
+
|
|
92
|
+
[tool.zest-releaser]
|
|
93
|
+
create-wheel = true
|