Skip to content

Commit acfc438

Browse files
Merge databind.core and databind.json into databind package (#61)
* Merge `databind.core` and `databind.json` into `databind` package * fmt * move changelogs to root * breaking change: Drop support for Python 3.6 and 3.7 * update docs * update docs * add repo_url/repo_name * disable broken changelog-update job
1 parent a976fb2 commit acfc438

File tree

156 files changed

+725
-654
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+725
-654
lines changed

.changelog/0.10.0.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
release-date = "2020-12-30"
2+
3+
[[entries]]
4+
id = "941943f9-5cf7-48fb-beea-2c341bc01907"
5+
type = "improvement"
6+
description = "classes decorated with `@uniontype(container=True)` must now be constructed using a single keyword argument as in `MyUnion(member1=Member1Value())`\n"
7+
author = "@NiklasRosenstein"
8+
component = "databind.core"
9+
10+
[[entries]]
11+
id = "0cb46581-98b5-40ad-82f1-eba64a2d498a"
12+
type = "fix"
13+
description = "add missing `to_stream` and `from_stream` to `__all__`"
14+
author = "@NiklasRosenstein"
15+
component = "databind.json"
16+
17+
[[entries]]
18+
id = "b65cd60e-3b8f-42c0-b4d8-37e5257bc269"
19+
type = "feature"
20+
description = "add `cast()` function"
21+
author = "@NiklasRosenstein"
22+
component = "databind.json"
Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,43 @@
1-
release-date = "2021-04-08"
1+
release-date = "2021-03-05"
22

33
[[entries]]
44
id = "5fdfb706-e8fd-4277-a4fa-8bc9fd894336"
55
type = "feature"
66
description = "`enumerate_fields()` now works with uniontype instances and classes"
77
author = "@NiklasRosenstein"
8+
component = "databind.core"
89

910
[[entries]]
1011
id = "58571d4d-65a2-46c7-949d-60f8eb219e56"
1112
type = "improvement"
1213
description = "update `@uniontype` generated `__repr__()` method"
1314
author = "@NiklasRosenstein"
15+
component = "databind.core"
1416

1517
[[entries]]
1618
id = "8585b0f1-6d33-4f1c-8637-c4186e456786"
1719
type = "feature"
1820
description = "add support for member aliasing in `UnionResolver`"
1921
author = "@NiklasRosenstein"
22+
component = "databind.core"
2023

2124
[[entries]]
2225
id = "9a23ae46-60fd-4f4f-950b-bb6966aa0003"
2326
type = "feature"
2427
description = "add `Context.closed_field_metadata()` function"
2528
author = "@NiklasRosenstein"
29+
component = "databind.core"
30+
31+
[[entries]]
32+
id = "65f5c1ef-ae7f-4802-af8c-c5e5460f602d"
33+
type = "improvement"
34+
description = "Update union construction during deserialization"
35+
author = "@NiklasRosenstein"
36+
component = "databind.json"
37+
38+
[[entries]]
39+
id = "779fedda-841f-4e00-bed0-e3ccab1ad836"
40+
type = "improvement"
41+
description = "minimum version of `databind.core` is `^0.10.0`"
42+
author = "@NiklasRosenstein"
43+
component = "databind.json"

databind.json/.changelog/0.12.0.toml renamed to .changelog/0.12.0.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,39 @@ id = "f718e1bd-f235-4a48-81c4-379f5469c9de"
55
type = "feature"
66
description = "Add `uniontype(single_key_discriminator)` argument"
77
author = "@NiklasRosenstein"
8+
component = "databind.json"
89

910
[[entries]]
1011
id = "6349c88c-cedf-4d8f-95f5-441ae9c96486"
1112
type = "fix"
1213
description = "Generated `__eq__()` method for `uniontype(container=True)` is now injective to avoid issue when `type(other)` is `object`"
1314
author = "@NiklasRosenstein"
15+
component = "databind.json"
1416

1517
[[entries]]
1618
id = "db67c3d6-80a9-4a61-af10-fc46bd505d6e"
1719
type = "feature"
1820
description = "add support for aliasing with `field(altname)` in `@uniontype` container declarations"
1921
author = "@NiklasRosenstein"
22+
component = "databind.json"
2023

2124
[[entries]]
2225
id = "8373fb43-05e2-469a-88df-76f7d6d0b083"
2326
type = "feature"
2427
description = "`StringConverter` can now also be relaxed, `FieldMetadata.relaxed` is now inherited from the closest metadata in the context for POD data types"
2528
author = "@NiklasRosenstein"
29+
component = "databind.json"
2630

2731
[[entries]]
2832
id = "55862c13-5599-4bb0-9f1d-d60300584e12"
2933
type = "fix"
3034
description = "deserializing a `List[str]` from a `str` object now results in an error"
3135
author = "@NiklasRosenstein"
36+
component = "databind.json"
3237

3338
[[entries]]
3439
id = "1ff62e50-8b99-4ee7-813b-f740870638a1"
3540
type = "improvement"
3641
description = "bump dependency on databind.core to ^0.11.0"
3742
author = "@NiklasRosenstein"
43+
component = "databind.json"
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,36 @@
11
release-date = "2020-08-29"
22

3+
[[entries]]
4+
id = "d54aa0ac-9329-4d2a-8e3a-16063491f764"
5+
type = "improvement"
6+
description = "update type hints to pass mypy checks"
7+
author = "@NiklasRosenstein"
8+
component = "databind.core"
9+
10+
[[entries]]
11+
id = "47206f43-6699-40ea-8210-c1a341d2b623"
12+
type = "improvement"
13+
description = "`FieldMetadata` now keeps a reference to the `dataclasses.Field` object and it's' metadata"
14+
author = "@NiklasRosenstein"
15+
component = "databind.core"
16+
317
[[entries]]
418
id = "3195561b-c5ed-4595-922b-9d76c46892f9"
519
type = "improvement"
620
description = "update type hints to pass mypy checks"
721
author = "@NiklasRosenstein"
22+
component = "databind.json"
823

924
[[entries]]
1025
id = "c3458aff-e6b3-4b20-97b0-12882818b6db"
1126
type = "improvement"
1227
description = "add DEBUG log when `MixtypeConverter` is unable to convert a value at all to make debugging easier"
1328
author = "@NiklasRosenstein"
29+
component = "databind.json"
1430

1531
[[entries]]
1632
id = "37e0f485-54c0-4bcf-bd3e-082f629b8689"
1733
type = "fix"
1834
description = "accept `datetime.date`/`datetime.datetime` objects when converting to python if the target type is a respective match (rather than forcing a string as an input)"
1935
author = "@NiklasRosenstein"
36+
component = "databind.json"

databind.core/.changelog/0.3.0.toml renamed to .changelog/0.3.0.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,18 @@ id = "27920260-c47e-4191-9f3a-5249584d28a3"
55
type = "improvement"
66
description = "ensure that non-default arguments do not have a class attribute of type `object` (which is used as a workaround to support non-default fields following default fields in `dataclasses`)"
77
author = "@NiklasRosenstein"
8+
component = "databind.core"
89

910
[[entries]]
1011
id = "0d15905e-4810-4c08-a4d8-70aaa72ad4f0"
1112
type = "fix"
1213
description = "raise for uninitialized fields inherited from parent datamodels"
1314
author = "@NiklasRosenstein"
15+
component = "databind.core"
16+
17+
[[entries]]
18+
id = "71c62ec7-7d37-4461-96a3-217de03499de"
19+
type = "improvement"
20+
description = "`ArrayConverter` now supports subclasses of the `typing.List` generic"
21+
author = "@NiklasRosenstein"
22+
component = "databind.json"

databind.core/.changelog/0.4.0.toml renamed to .changelog/0.4.0.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,25 @@ id = "0522b7f0-4bc4-48c3-aa0a-fe3d3f96e5c5"
55
type = "feature"
66
description = "add `ModelMetadata.serialize_as` (which translates into a keyword argument for `@datamodel()`) to specify a type hint that should be used instead of the type itself when serializing/deserializing it"
77
author = "@NiklasRosenstein"
8+
component = "databind.core"
89

910
[[entries]]
1011
id = "771ef7cd-2020-4504-b949-2cb0bfc08e35"
1112
type = "feature"
1213
description = "add `Context.coerce_errors()` context manager"
1314
author = "@NiklasRosenstein"
15+
component = "databind.core"
1416

1517
[[entries]]
1618
id = "30501a59-9860-4f3c-8ccb-d5883449f940"
1719
type = "feature"
1820
description = "add `TypeHint` variable which should be used in places where a type hint is expected"
1921
author = "@NiklasRosenstein"
22+
component = "databind.core"
23+
24+
[[entries]]
25+
id = "03524ec0-3644-4bd8-9a64-a1dc0e754fd7"
26+
type = "feature"
27+
description = "support `@datamodel(serialize_as)` in `ModelConverter`"
28+
author = "@NiklasRosenstein"
29+
component = "databind.json"

.changelog/0.4.1.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
release-date = "2020-09-06"
2+
3+
[[entries]]
4+
id = "8bc4f7c3-1a29-41f1-9f5d-f3f8a99897ca"
5+
type = "fix"
6+
description = "Re-render setup file, materializing missing dependency on `dataclasses`. This fixes using the module in Python 3.6."
7+
author = "@NiklasRosenstein"
8+
component = "databind.core"
9+
10+
[[entries]]
11+
id = "7abbb43c-0eab-4009-9353-9de48aebc5b7"
12+
type = "fix"
13+
description = "conversion of values of a `List` subtype *from Python* are now converted to a built-in `list` instead of the same `List` subtype"
14+
author = "@NiklasRosenstein"
15+
component = "databind.json"

databind.core/.changelog/0.4.2.toml renamed to .changelog/0.4.2.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ id = "6993c150-4320-4d1d-b8a9-d5763c326a34"
55
type = "hygiene"
66
description = "Move `type_repr()` declaration to `databind.core.utils` and add `find_orig_base()` function"
77
author = "@NiklasRosenstein"
8+
component = "databind.core"

databind.json/.changelog/0.5.0.toml renamed to .changelog/0.5.0.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ id = "bc123b73-f4d0-44a4-9e43-de56b776a7b6"
55
type = "feature"
66
description = "Add `strict` argument to `register_json_converters()` which will allow converters for plain-old-datatypes to accept string representations as well"
77
author = "@NiklasRosenstein"
8+
component = "databind.json"

databind.json/.changelog/0.5.1.toml renamed to .changelog/0.5.1.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ id = "c039776f-9ecc-460a-b5d4-b9cbc5bb1e46"
55
type = "fix"
66
description = "Fix Python 3.6 support for `typing.List` subclasses by reading the generic paraemter from the right object"
77
author = "@NiklasRosenstein"
8+
component = "databind.json"

0 commit comments

Comments
 (0)