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.
Files changed (34) hide show
  1. serializable-1.3.2/MANIFEST.in +4 -0
  2. {serializable-1.3.0 → serializable-1.3.2}/PKG-INFO +2 -5
  3. {serializable-1.3.0 → serializable-1.3.2}/pyproject.toml +6 -11
  4. {serializable-1.3.0 → serializable-1.3.2}/serializable/version.py +1 -1
  5. {serializable-1.3.0 → serializable-1.3.2}/serializable.egg-info/PKG-INFO +2 -5
  6. {serializable-1.3.0 → serializable-1.3.2}/serializable.egg-info/SOURCES.txt +3 -1
  7. {serializable-1.3.0 → serializable-1.3.2}/serializable.egg-info/requires.txt +0 -1
  8. serializable-1.3.2/tests/__init__.py +0 -0
  9. serializable-1.3.2/tests/common.py +18 -0
  10. serializable-1.3.0/setup.py +0 -6
  11. {serializable-1.3.0 → serializable-1.3.2}/LICENSE +0 -0
  12. {serializable-1.3.0 → serializable-1.3.2}/README.md +0 -0
  13. {serializable-1.3.0 → serializable-1.3.2}/serializable/__init__.py +0 -0
  14. {serializable-1.3.0 → serializable-1.3.2}/serializable/dataclass_serializable.py +0 -0
  15. {serializable-1.3.0 → serializable-1.3.2}/serializable/helpers.py +0 -0
  16. {serializable-1.3.0 → serializable-1.3.2}/serializable/primitive_types.py +0 -0
  17. {serializable-1.3.0 → serializable-1.3.2}/serializable/py.typed +0 -0
  18. {serializable-1.3.0 → serializable-1.3.2}/serializable/serializable.py +0 -0
  19. {serializable-1.3.0 → serializable-1.3.2}/serializable.egg-info/dependency_links.txt +0 -0
  20. {serializable-1.3.0 → serializable-1.3.2}/serializable.egg-info/top_level.txt +0 -0
  21. {serializable-1.3.0 → serializable-1.3.2}/setup.cfg +0 -0
  22. {serializable-1.3.0 → serializable-1.3.2}/tests/test_class.py +0 -0
  23. {serializable-1.3.0 → serializable-1.3.2}/tests/test_dataclass_serializable.py +0 -0
  24. {serializable-1.3.0 → serializable-1.3.2}/tests/test_default_to_dict_implementation.py +0 -0
  25. {serializable-1.3.0 → serializable-1.3.2}/tests/test_function.py +0 -0
  26. {serializable-1.3.0 → serializable-1.3.2}/tests/test_keyword_aliases.py +0 -0
  27. {serializable-1.3.0 → serializable-1.3.2}/tests/test_namedtuple.py +0 -0
  28. {serializable-1.3.0 → serializable-1.3.2}/tests/test_nesting.py +0 -0
  29. {serializable-1.3.0 → serializable-1.3.2}/tests/test_object.py +0 -0
  30. {serializable-1.3.0 → serializable-1.3.2}/tests/test_pickle.py +0 -0
  31. {serializable-1.3.0 → serializable-1.3.2}/tests/test_primitive_values.py +0 -0
  32. {serializable-1.3.0 → serializable-1.3.2}/tests/test_set.py +0 -0
  33. {serializable-1.3.0 → serializable-1.3.2}/tests/test_tuple.py +0 -0
  34. {serializable-1.3.0 → serializable-1.3.2}/tests/test_typing.py +0 -0
@@ -0,0 +1,4 @@
1
+ # setuptools only adds tests/test*.py to the sdist by default; ship the whole
2
+ # suite (tests/__init__.py, tests/common.py) so tests run from the tarball.
3
+ graft tests
4
+ global-exclude *.py[cod]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: serializable
3
- Version: 1.3.0
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.9
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>=61.0", "wheel"]
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.9"
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 = "py39"
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", # use X | Y for type unions (need Python 3.10+)
90
- "UP045", # use X | None for Optional (need Python 3.10+)
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
- # Annotations are never evaluated at runtime (`from __future__ import annotations`),
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,4 +1,4 @@
1
- __version__ = "1.3.0"
1
+ __version__ = "1.3.2"
2
2
 
3
3
 
4
4
  def print_version():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: serializable
3
- Version: 1.3.0
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.9
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
@@ -5,6 +5,5 @@ pytest
5
5
  pytest-cov
6
6
  ruff
7
7
  mypy
8
- coveralls
9
8
  build
10
9
  twine
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
@@ -1,6 +0,0 @@
1
- from setuptools import setup
2
-
3
-
4
- if __name__ == "__main__":
5
- # Delegate metadata to pyproject.toml.
6
- setup()
File without changes
File without changes
File without changes