bsb-json 4.2.3__tar.gz → 6.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.
Potentially problematic release.
This version of bsb-json might be problematic. Click here for more details.
- bsb_json-6.0.0/PKG-INFO +18 -0
- {bsb_json-4.2.3 → bsb_json-6.0.0}/README.md +2 -3
- bsb_json-6.0.0/bsb_json/__init__.py +12 -0
- {bsb_json-4.2.3 → bsb_json-6.0.0}/bsb_json/parser.py +3 -1
- {bsb_json-4.2.3 → bsb_json-6.0.0}/bsb_json/schema/__init__.py +2 -2
- bsb_json-6.0.0/pyproject.toml +67 -0
- bsb_json-4.2.3/PKG-INFO +0 -31
- bsb_json-4.2.3/bsb_json/__init__.py +0 -7
- bsb_json-4.2.3/pyproject.toml +0 -61
- {bsb_json-4.2.3 → bsb_json-6.0.0}/LICENSE +0 -0
- {bsb_json-4.2.3 → bsb_json-6.0.0}/bsb_json/templates/__init__.py +0 -0
- {bsb_json-4.2.3 → bsb_json-6.0.0}/bsb_json/templates/skeleton.json +0 -0
- {bsb_json-4.2.3 → bsb_json-6.0.0}/bsb_json/templates/starting_example.json +0 -0
bsb_json-6.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: bsb-json
|
|
3
|
+
Version: 6.0.0
|
|
4
|
+
Summary: JSON parser and utilities for the BSB.
|
|
5
|
+
Author-email: Robin De Schepper <robin@alexandria.sc>, Dimitri Rodarie <dimitri.rodarie@unipv.it>
|
|
6
|
+
Requires-Python: >=3.10,<4
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Requires-Dist: bsb-core~=6.0
|
|
11
|
+
|
|
12
|
+
[](https://github.com/dbbs-lab/bsb-json/actions/workflows/main.yml)
|
|
13
|
+
[](https://github.com/astral-sh/ruff)
|
|
14
|
+
|
|
15
|
+
# bsb-json
|
|
16
|
+
|
|
17
|
+
`bsb-json` is a plugin of the [BSB](https://github.com/dbbs-lab/bsb).
|
|
18
|
+
It allows the user to write their models' configuration in the json format.
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
[](https://github.com/dbbs-lab/bsb-json/actions/workflows/main.yml)
|
|
2
|
-
[](https://github.com/astral-sh/ruff)
|
|
3
3
|
|
|
4
4
|
# bsb-json
|
|
5
5
|
|
|
6
|
-
`bsb-json` is a plugin of the [BSB](https://github.com/dbbs-lab/bsb)
|
|
7
|
-
[bsb-core](https://github.com/dbbs-lab/bsb-core)).
|
|
6
|
+
`bsb-json` is a plugin of the [BSB](https://github.com/dbbs-lab/bsb).
|
|
8
7
|
It allows the user to write their models' configuration in the json format.
|
|
@@ -27,7 +27,7 @@ def object_schema(obj, defs=None):
|
|
|
27
27
|
cls = obj.__class__
|
|
28
28
|
obj_hints = typing.get_type_hints(cls, localns={"Scaffold": Scaffold})
|
|
29
29
|
obj_attrs = get_config_attributes(cls)
|
|
30
|
-
for attr,
|
|
30
|
+
for attr, _descr in obj_attrs.items():
|
|
31
31
|
hint = obj_hints.get(attr, str)
|
|
32
32
|
schema["properties"][attr] = attr_schema(hint, defs)
|
|
33
33
|
|
|
@@ -62,7 +62,7 @@ def attr_schema(hint, defs=None):
|
|
|
62
62
|
else:
|
|
63
63
|
try:
|
|
64
64
|
is_node = get_config_attributes(hint)
|
|
65
|
-
except:
|
|
65
|
+
except Exception:
|
|
66
66
|
is_node = False
|
|
67
67
|
if is_node:
|
|
68
68
|
key = defs_key(hint)
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
dependency-groups = { }
|
|
2
|
+
|
|
3
|
+
[build-system]
|
|
4
|
+
requires = [ "flit_core >=3.2,<4" ]
|
|
5
|
+
build-backend = "flit_core.buildapi"
|
|
6
|
+
|
|
7
|
+
[project]
|
|
8
|
+
name = "bsb-json"
|
|
9
|
+
version = "6.0.0"
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
requires-python = ">=3.10,<4"
|
|
12
|
+
dynamic = [ "description" ]
|
|
13
|
+
classifiers = [
|
|
14
|
+
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)"
|
|
15
|
+
]
|
|
16
|
+
dependencies = [ "bsb-core~=6.0" ]
|
|
17
|
+
|
|
18
|
+
[[project.authors]]
|
|
19
|
+
name = "Robin De Schepper"
|
|
20
|
+
email = "robin@alexandria.sc"
|
|
21
|
+
|
|
22
|
+
[[project.authors]]
|
|
23
|
+
name = "Dimitri Rodarie"
|
|
24
|
+
email = "dimitri.rodarie@unipv.it"
|
|
25
|
+
|
|
26
|
+
[project.license]
|
|
27
|
+
file = "LICENSE"
|
|
28
|
+
|
|
29
|
+
[project.entry-points."bsb.config.parsers"]
|
|
30
|
+
json = "bsb_json.parser"
|
|
31
|
+
|
|
32
|
+
[project.entry-points."bsb.config.templates"]
|
|
33
|
+
json_templates = "bsb_json.templates"
|
|
34
|
+
|
|
35
|
+
[tool.uv]
|
|
36
|
+
default-groups = [ "dev", "docs", "test" ]
|
|
37
|
+
sources = { }
|
|
38
|
+
|
|
39
|
+
[tool.flit.module]
|
|
40
|
+
name = "bsb_json"
|
|
41
|
+
|
|
42
|
+
[tool.coverage.run]
|
|
43
|
+
branch = true
|
|
44
|
+
source = [ "bsb_json" ]
|
|
45
|
+
|
|
46
|
+
[tool.coverage.report]
|
|
47
|
+
exclude_lines = [ "if TYPE_CHECKING:" ]
|
|
48
|
+
show_missing = true
|
|
49
|
+
|
|
50
|
+
[tool.ruff]
|
|
51
|
+
exclude = [ ".ruff_cache", ".svn", ".tox", ".venv", "dist" ]
|
|
52
|
+
line-length = 90
|
|
53
|
+
indent-width = 4
|
|
54
|
+
|
|
55
|
+
[tool.ruff.format]
|
|
56
|
+
quote-style = "double"
|
|
57
|
+
indent-style = "space"
|
|
58
|
+
skip-magic-trailing-comma = false
|
|
59
|
+
line-ending = "auto"
|
|
60
|
+
docstring-code-format = true
|
|
61
|
+
docstring-code-line-length = 90
|
|
62
|
+
|
|
63
|
+
[tool.ruff.lint]
|
|
64
|
+
select = [ "E", "F", "UP", "B", "SIM", "I" ]
|
|
65
|
+
ignore = [ ]
|
|
66
|
+
fixable = [ "ALL" ]
|
|
67
|
+
unfixable = [ ]
|
bsb_json-4.2.3/PKG-INFO
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: bsb-json
|
|
3
|
-
Version: 4.2.3
|
|
4
|
-
Summary: JSON parser and utilities for the BSB.
|
|
5
|
-
Author-email: Robin De Schepper <robingilbert.deschepper@unipv.it>
|
|
6
|
-
Requires-Python: >=3.8
|
|
7
|
-
Description-Content-Type: text/markdown
|
|
8
|
-
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
|
9
|
-
License-File: LICENSE
|
|
10
|
-
Requires-Dist: bsb-core~=5.0
|
|
11
|
-
Requires-Dist: bsb-json[test] ; extra == "dev"
|
|
12
|
-
Requires-Dist: build~=1.0 ; extra == "dev"
|
|
13
|
-
Requires-Dist: twine~=4.0 ; extra == "dev"
|
|
14
|
-
Requires-Dist: pre-commit~=3.5 ; extra == "dev"
|
|
15
|
-
Requires-Dist: black~=25.1.0 ; extra == "dev"
|
|
16
|
-
Requires-Dist: isort~=6.0.0 ; extra == "dev"
|
|
17
|
-
Requires-Dist: bump-my-version~=0.24 ; extra == "dev"
|
|
18
|
-
Requires-Dist: bsb-core[parallel] ; extra == "test"
|
|
19
|
-
Requires-Dist: bsb-test~=4.0 ; extra == "test"
|
|
20
|
-
Requires-Dist: coverage~=7.0 ; extra == "test"
|
|
21
|
-
Provides-Extra: dev
|
|
22
|
-
Provides-Extra: test
|
|
23
|
-
|
|
24
|
-
[](https://github.com/dbbs-lab/bsb-json/actions/workflows/main.yml)
|
|
25
|
-
[](https://github.com/psf/black)
|
|
26
|
-
|
|
27
|
-
# bsb-json
|
|
28
|
-
|
|
29
|
-
`bsb-json` is a plugin of the [BSB](https://github.com/dbbs-lab/bsb) (see also
|
|
30
|
-
[bsb-core](https://github.com/dbbs-lab/bsb-core)).
|
|
31
|
-
It allows the user to write their models' configuration in the json format.
|
bsb_json-4.2.3/pyproject.toml
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
[build-system]
|
|
2
|
-
requires = ["flit_core >=3.2,<4"]
|
|
3
|
-
build-backend = "flit_core.buildapi"
|
|
4
|
-
|
|
5
|
-
[project]
|
|
6
|
-
name = "bsb-json"
|
|
7
|
-
authors = [{name = "Robin De Schepper", email = "robingilbert.deschepper@unipv.it"}]
|
|
8
|
-
readme = "README.md"
|
|
9
|
-
license = {file = "LICENSE"}
|
|
10
|
-
classifiers = ["License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)"]
|
|
11
|
-
dynamic = ["version", "description"]
|
|
12
|
-
requires-python = ">=3.8"
|
|
13
|
-
dependencies = ["bsb-core~=5.0"]
|
|
14
|
-
|
|
15
|
-
[project.entry-points."bsb.config.parsers"]
|
|
16
|
-
json = "bsb_json.parser"
|
|
17
|
-
|
|
18
|
-
[project.entry-points."bsb.config.templates"]
|
|
19
|
-
json_templates = "bsb_json.templates"
|
|
20
|
-
|
|
21
|
-
[tool.flit.module]
|
|
22
|
-
name = "bsb_json"
|
|
23
|
-
|
|
24
|
-
[project.optional-dependencies]
|
|
25
|
-
test = ["bsb-core[parallel]", "bsb-test~=4.0", "coverage~=7.0"]
|
|
26
|
-
dev = [
|
|
27
|
-
"bsb-json[test]",
|
|
28
|
-
"build~=1.0",
|
|
29
|
-
"twine~=4.0",
|
|
30
|
-
"pre-commit~=3.5",
|
|
31
|
-
"black~=25.1.0",
|
|
32
|
-
"isort~=6.0.0",
|
|
33
|
-
"bump-my-version~=0.24"
|
|
34
|
-
]
|
|
35
|
-
|
|
36
|
-
[tool.isort]
|
|
37
|
-
profile = "black"
|
|
38
|
-
|
|
39
|
-
[tool.bumpversion]
|
|
40
|
-
current_version = "4.2.3"
|
|
41
|
-
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
|
42
|
-
serialize = ["{major}.{minor}.{patch}"]
|
|
43
|
-
search = "{current_version}"
|
|
44
|
-
replace = "{new_version}"
|
|
45
|
-
regex = false
|
|
46
|
-
ignore_missing_version = false
|
|
47
|
-
tag = true
|
|
48
|
-
sign_tags = false
|
|
49
|
-
tag_name = "v{new_version}"
|
|
50
|
-
tag_message = "Bump version: {current_version} → {new_version}"
|
|
51
|
-
allow_dirty = false
|
|
52
|
-
commit = true
|
|
53
|
-
message = "Bump version: {current_version} → {new_version}"
|
|
54
|
-
commit_args = "--no-verify"
|
|
55
|
-
|
|
56
|
-
[tool.bumpversion.parts.pre_l]
|
|
57
|
-
values = ["dev", "a", "b", "rc", "final"]
|
|
58
|
-
optional_value = "final"
|
|
59
|
-
|
|
60
|
-
[[tool.bumpversion.files]]
|
|
61
|
-
filename = "bsb_json/__init__.py"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|