serializable 1.3.0__tar.gz → 1.3.2__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.
- serializable-1.3.2/MANIFEST.in +4 -0
- {serializable-1.3.0 → serializable-1.3.2}/PKG-INFO +2 -5
- {serializable-1.3.0 → serializable-1.3.2}/pyproject.toml +6 -11
- {serializable-1.3.0 → serializable-1.3.2}/serializable/version.py +1 -1
- {serializable-1.3.0 → serializable-1.3.2}/serializable.egg-info/PKG-INFO +2 -5
- {serializable-1.3.0 → serializable-1.3.2}/serializable.egg-info/SOURCES.txt +3 -1
- {serializable-1.3.0 → serializable-1.3.2}/serializable.egg-info/requires.txt +0 -1
- serializable-1.3.2/tests/__init__.py +0 -0
- serializable-1.3.2/tests/common.py +18 -0
- serializable-1.3.0/setup.py +0 -6
- {serializable-1.3.0 → serializable-1.3.2}/LICENSE +0 -0
- {serializable-1.3.0 → serializable-1.3.2}/README.md +0 -0
- {serializable-1.3.0 → serializable-1.3.2}/serializable/__init__.py +0 -0
- {serializable-1.3.0 → serializable-1.3.2}/serializable/dataclass_serializable.py +0 -0
- {serializable-1.3.0 → serializable-1.3.2}/serializable/helpers.py +0 -0
- {serializable-1.3.0 → serializable-1.3.2}/serializable/primitive_types.py +0 -0
- {serializable-1.3.0 → serializable-1.3.2}/serializable/py.typed +0 -0
- {serializable-1.3.0 → serializable-1.3.2}/serializable/serializable.py +0 -0
- {serializable-1.3.0 → serializable-1.3.2}/serializable.egg-info/dependency_links.txt +0 -0
- {serializable-1.3.0 → serializable-1.3.2}/serializable.egg-info/top_level.txt +0 -0
- {serializable-1.3.0 → serializable-1.3.2}/setup.cfg +0 -0
- {serializable-1.3.0 → serializable-1.3.2}/tests/test_class.py +0 -0
- {serializable-1.3.0 → serializable-1.3.2}/tests/test_dataclass_serializable.py +0 -0
- {serializable-1.3.0 → serializable-1.3.2}/tests/test_default_to_dict_implementation.py +0 -0
- {serializable-1.3.0 → serializable-1.3.2}/tests/test_function.py +0 -0
- {serializable-1.3.0 → serializable-1.3.2}/tests/test_keyword_aliases.py +0 -0
- {serializable-1.3.0 → serializable-1.3.2}/tests/test_namedtuple.py +0 -0
- {serializable-1.3.0 → serializable-1.3.2}/tests/test_nesting.py +0 -0
- {serializable-1.3.0 → serializable-1.3.2}/tests/test_object.py +0 -0
- {serializable-1.3.0 → serializable-1.3.2}/tests/test_pickle.py +0 -0
- {serializable-1.3.0 → serializable-1.3.2}/tests/test_primitive_values.py +0 -0
- {serializable-1.3.0 → serializable-1.3.2}/tests/test_set.py +0 -0
- {serializable-1.3.0 → serializable-1.3.2}/tests/test_tuple.py +0 -0
- {serializable-1.3.0 → serializable-1.3.2}/tests/test_typing.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: serializable
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.2
|
|
4
4
|
Summary: Base class with serialization helpers for user-defined Python objects
|
|
5
5
|
Author-email: Alex Rubinsteyn <alex.rubinsteyn@unc.edu>
|
|
6
6
|
License: Apache License
|
|
@@ -213,14 +213,12 @@ Classifier: Operating System :: OS Independent
|
|
|
213
213
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
214
214
|
Classifier: Programming Language :: Python
|
|
215
215
|
Classifier: Programming Language :: Python :: 3
|
|
216
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
217
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
218
216
|
Classifier: Programming Language :: Python :: 3.11
|
|
219
217
|
Classifier: Programming Language :: Python :: 3.12
|
|
220
218
|
Classifier: Programming Language :: Python :: 3.13
|
|
221
219
|
Classifier: Programming Language :: Python :: 3.14
|
|
222
220
|
Classifier: Typing :: Typed
|
|
223
|
-
Requires-Python: >=3.
|
|
221
|
+
Requires-Python: >=3.11
|
|
224
222
|
Description-Content-Type: text/markdown
|
|
225
223
|
License-File: LICENSE
|
|
226
224
|
Requires-Dist: typechecks>=0.0.2
|
|
@@ -229,7 +227,6 @@ Requires-Dist: pytest; extra == "dev"
|
|
|
229
227
|
Requires-Dist: pytest-cov; extra == "dev"
|
|
230
228
|
Requires-Dist: ruff; extra == "dev"
|
|
231
229
|
Requires-Dist: mypy; extra == "dev"
|
|
232
|
-
Requires-Dist: coveralls; extra == "dev"
|
|
233
230
|
Requires-Dist: build; extra == "dev"
|
|
234
231
|
Requires-Dist: twine; extra == "dev"
|
|
235
232
|
Dynamic: license-file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
[build-system]
|
|
2
|
-
requires = ["setuptools>=
|
|
2
|
+
requires = ["setuptools>=64", "wheel"]
|
|
3
3
|
build-backend = "setuptools.build_meta"
|
|
4
4
|
|
|
5
5
|
[project]
|
|
@@ -18,15 +18,13 @@ classifiers = [
|
|
|
18
18
|
"License :: OSI Approved :: Apache Software License",
|
|
19
19
|
"Programming Language :: Python",
|
|
20
20
|
"Programming Language :: Python :: 3",
|
|
21
|
-
"Programming Language :: Python :: 3.9",
|
|
22
|
-
"Programming Language :: Python :: 3.10",
|
|
23
21
|
"Programming Language :: Python :: 3.11",
|
|
24
22
|
"Programming Language :: Python :: 3.12",
|
|
25
23
|
"Programming Language :: Python :: 3.13",
|
|
26
24
|
"Programming Language :: Python :: 3.14",
|
|
27
25
|
"Typing :: Typed",
|
|
28
26
|
]
|
|
29
|
-
requires-python = ">=3.
|
|
27
|
+
requires-python = ">=3.11"
|
|
30
28
|
dependencies = [
|
|
31
29
|
"typechecks>=0.0.2",
|
|
32
30
|
]
|
|
@@ -37,7 +35,6 @@ dev = [
|
|
|
37
35
|
"pytest-cov",
|
|
38
36
|
"ruff",
|
|
39
37
|
"mypy",
|
|
40
|
-
"coveralls",
|
|
41
38
|
"build",
|
|
42
39
|
"twine",
|
|
43
40
|
]
|
|
@@ -56,7 +53,7 @@ include = ["serializable*"]
|
|
|
56
53
|
serializable = ["py.typed"]
|
|
57
54
|
|
|
58
55
|
[tool.ruff]
|
|
59
|
-
target-version = "
|
|
56
|
+
target-version = "py311"
|
|
60
57
|
line-length = 100
|
|
61
58
|
src = ["serializable", "tests"]
|
|
62
59
|
exclude = [
|
|
@@ -86,8 +83,8 @@ ignore = [
|
|
|
86
83
|
"B008", # do not perform function calls in argument defaults
|
|
87
84
|
"B905", # zip() without explicit strict
|
|
88
85
|
"SIM108", # use ternary operator instead of if-else
|
|
89
|
-
"UP007", #
|
|
90
|
-
"UP045", #
|
|
86
|
+
"UP007", # retain the established Union annotation style
|
|
87
|
+
"UP045", # retain the established Optional annotation style
|
|
91
88
|
]
|
|
92
89
|
|
|
93
90
|
[tool.ruff.lint.per-file-ignores]
|
|
@@ -104,9 +101,7 @@ ignore = [
|
|
|
104
101
|
known-first-party = ["serializable"]
|
|
105
102
|
|
|
106
103
|
[tool.mypy]
|
|
107
|
-
|
|
108
|
-
# so checking them as 3.10 also covers 3.9, which mypy 2 can no longer target.
|
|
109
|
-
python_version = "3.10"
|
|
104
|
+
python_version = "3.11"
|
|
110
105
|
|
|
111
106
|
[tool.pytest.ini_options]
|
|
112
107
|
testpaths = ["tests"]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: serializable
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.2
|
|
4
4
|
Summary: Base class with serialization helpers for user-defined Python objects
|
|
5
5
|
Author-email: Alex Rubinsteyn <alex.rubinsteyn@unc.edu>
|
|
6
6
|
License: Apache License
|
|
@@ -213,14 +213,12 @@ Classifier: Operating System :: OS Independent
|
|
|
213
213
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
214
214
|
Classifier: Programming Language :: Python
|
|
215
215
|
Classifier: Programming Language :: Python :: 3
|
|
216
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
217
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
218
216
|
Classifier: Programming Language :: Python :: 3.11
|
|
219
217
|
Classifier: Programming Language :: Python :: 3.12
|
|
220
218
|
Classifier: Programming Language :: Python :: 3.13
|
|
221
219
|
Classifier: Programming Language :: Python :: 3.14
|
|
222
220
|
Classifier: Typing :: Typed
|
|
223
|
-
Requires-Python: >=3.
|
|
221
|
+
Requires-Python: >=3.11
|
|
224
222
|
Description-Content-Type: text/markdown
|
|
225
223
|
License-File: LICENSE
|
|
226
224
|
Requires-Dist: typechecks>=0.0.2
|
|
@@ -229,7 +227,6 @@ Requires-Dist: pytest; extra == "dev"
|
|
|
229
227
|
Requires-Dist: pytest-cov; extra == "dev"
|
|
230
228
|
Requires-Dist: ruff; extra == "dev"
|
|
231
229
|
Requires-Dist: mypy; extra == "dev"
|
|
232
|
-
Requires-Dist: coveralls; extra == "dev"
|
|
233
230
|
Requires-Dist: build; extra == "dev"
|
|
234
231
|
Requires-Dist: twine; extra == "dev"
|
|
235
232
|
Dynamic: license-file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
LICENSE
|
|
2
|
+
MANIFEST.in
|
|
2
3
|
README.md
|
|
3
4
|
pyproject.toml
|
|
4
|
-
setup.py
|
|
5
5
|
serializable/__init__.py
|
|
6
6
|
serializable/dataclass_serializable.py
|
|
7
7
|
serializable/helpers.py
|
|
@@ -14,6 +14,8 @@ serializable.egg-info/SOURCES.txt
|
|
|
14
14
|
serializable.egg-info/dependency_links.txt
|
|
15
15
|
serializable.egg-info/requires.txt
|
|
16
16
|
serializable.egg-info/top_level.txt
|
|
17
|
+
tests/__init__.py
|
|
18
|
+
tests/common.py
|
|
17
19
|
tests/test_class.py
|
|
18
20
|
tests/test_dataclass_serializable.py
|
|
19
21
|
tests/test_default_to_dict_implementation.py
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
2
|
+
# you may not use this file except in compliance with the License.
|
|
3
|
+
# You may obtain a copy of the License at
|
|
4
|
+
#
|
|
5
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
#
|
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
9
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
10
|
+
# See the License for the specific language governing permissions and
|
|
11
|
+
# limitations under the License.
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def eq_(x, y, s=None):
|
|
15
|
+
if s:
|
|
16
|
+
assert x == y, s
|
|
17
|
+
else:
|
|
18
|
+
assert x == y
|
serializable-1.3.0/setup.py
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|