spin 0.16__tar.gz → 0.17__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 (32) hide show
  1. {spin-0.16/spin.egg-info → spin-0.17}/PKG-INFO +1 -2
  2. {spin-0.16 → spin-0.17}/pyproject.toml +0 -1
  3. {spin-0.16 → spin-0.17}/spin/__init__.py +1 -1
  4. {spin-0.16 → spin-0.17}/spin/cmds/util.py +9 -0
  5. {spin-0.16 → spin-0.17/spin.egg-info}/PKG-INFO +1 -2
  6. {spin-0.16 → spin-0.17}/spin.egg-info/requires.txt +0 -3
  7. {spin-0.16 → spin-0.17}/LICENSE +0 -0
  8. {spin-0.16 → spin-0.17}/README.md +0 -0
  9. {spin-0.16 → spin-0.17}/setup.cfg +0 -0
  10. {spin-0.16 → spin-0.17}/spin/__main__.py +0 -0
  11. {spin-0.16 → spin-0.17}/spin/cmds/__init__.py +0 -0
  12. {spin-0.16 → spin-0.17}/spin/cmds/build.py +0 -0
  13. {spin-0.16 → spin-0.17}/spin/cmds/meson.py +0 -0
  14. {spin-0.16 → spin-0.17}/spin/cmds/meta.py +0 -0
  15. {spin-0.16 → spin-0.17}/spin/cmds/pip.py +0 -0
  16. {spin-0.16 → spin-0.17}/spin/color_format.py +0 -0
  17. {spin-0.16 → spin-0.17}/spin/containers.py +0 -0
  18. {spin-0.16 → spin-0.17}/spin/sectioned_help.py +0 -0
  19. {spin-0.16 → spin-0.17}/spin/tests/__init__.py +0 -0
  20. {spin-0.16 → spin-0.17}/spin/tests/conftest.py +0 -0
  21. {spin-0.16 → spin-0.17}/spin/tests/test_build_cmds.py +0 -0
  22. {spin-0.16 → spin-0.17}/spin/tests/test_cli.py +0 -0
  23. {spin-0.16 → spin-0.17}/spin/tests/test_editable.py +0 -0
  24. {spin-0.16 → spin-0.17}/spin/tests/test_extend_command.py +0 -0
  25. {spin-0.16 → spin-0.17}/spin/tests/test_meson.py +0 -0
  26. {spin-0.16 → spin-0.17}/spin/tests/test_test.py +0 -0
  27. {spin-0.16 → spin-0.17}/spin/tests/test_util.py +0 -0
  28. {spin-0.16 → spin-0.17}/spin/tests/testutil.py +0 -0
  29. {spin-0.16 → spin-0.17}/spin.egg-info/SOURCES.txt +0 -0
  30. {spin-0.16 → spin-0.17}/spin.egg-info/dependency_links.txt +0 -0
  31. {spin-0.16 → spin-0.17}/spin.egg-info/entry_points.txt +0 -0
  32. {spin-0.16 → spin-0.17}/spin.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: spin
3
- Version: 0.16
3
+ Version: 0.17
4
4
  Summary: Developer tool for scientific Python libraries
5
5
  Maintainer-email: Scientific Python <spin@discuss.scientific-python.org>
6
6
  License: BSD 3-Clause License
@@ -50,7 +50,6 @@ Classifier: Programming Language :: Python :: 3 :: Only
50
50
  Requires-Python: >=3.10
51
51
  Description-Content-Type: text/markdown
52
52
  License-File: LICENSE
53
- Requires-Dist: click<=8.2,>=8; python_version == "3.10"
54
53
  Requires-Dist: click!=8.3.0,<8.4,>=8
55
54
  Requires-Dist: tomli; python_version < "3.11"
56
55
  Requires-Dist: colorama; platform_system == "Windows"
@@ -23,7 +23,6 @@ classifiers = [
23
23
  "Programming Language :: Python :: 3 :: Only",
24
24
  ]
25
25
  dependencies = [
26
- "click>=8,<=8.2; python_version == '3.10'", # cannot deepcopy cmd params (specifically, Sentinel.UNSET) on 3.10
27
26
  "click>=8,!=8.3.0,<8.4",
28
27
  "tomli; python_version < '3.11'",
29
28
  "colorama; platform_system == 'Windows'",
@@ -6,7 +6,7 @@ For usage information see `python -m spin`.
6
6
  Read more at https://github.com/scientific-python/spin
7
7
  """
8
8
 
9
- __version__ = "0.16"
9
+ __version__ = "0.17"
10
10
 
11
11
  from .cmds import util
12
12
 
@@ -3,6 +3,7 @@ from __future__ import (
3
3
  )
4
4
 
5
5
  import copy
6
+ import enum
6
7
  import os
7
8
  import shlex
8
9
  import shutil
@@ -159,6 +160,14 @@ def extend_command(
159
160
  """
160
161
  my_cmd = copy.copy(cmd)
161
162
 
163
+ # This patch is to work around an enum deepcopy bug in Python 3.10.
164
+ if not hasattr(enum.Enum, "__deepcopy__"):
165
+
166
+ def __deepcopy__(self, memo):
167
+ return self
168
+
169
+ enum.Enum.__deepcopy__ = __deepcopy__ # type: ignore[method-assign]
170
+
162
171
  # This is necessary to ensure that added options do not leak
163
172
  # to the original command
164
173
  my_cmd.params = copy.deepcopy(cmd.params)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: spin
3
- Version: 0.16
3
+ Version: 0.17
4
4
  Summary: Developer tool for scientific Python libraries
5
5
  Maintainer-email: Scientific Python <spin@discuss.scientific-python.org>
6
6
  License: BSD 3-Clause License
@@ -50,7 +50,6 @@ Classifier: Programming Language :: Python :: 3 :: Only
50
50
  Requires-Python: >=3.10
51
51
  Description-Content-Type: text/markdown
52
52
  License-File: LICENSE
53
- Requires-Dist: click<=8.2,>=8; python_version == "3.10"
54
53
  Requires-Dist: click!=8.3.0,<8.4,>=8
55
54
  Requires-Dist: tomli; python_version < "3.11"
56
55
  Requires-Dist: colorama; platform_system == "Windows"
@@ -7,9 +7,6 @@ colorama
7
7
  [:python_version < "3.11"]
8
8
  tomli
9
9
 
10
- [:python_version == "3.10"]
11
- click<=8.2,>=8
12
-
13
10
  [dev]
14
11
  changelist==0.5
15
12
 
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