spin 0.16__tar.gz → 0.18__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.18}/PKG-INFO +1 -2
  2. {spin-0.16 → spin-0.18}/pyproject.toml +0 -1
  3. {spin-0.16 → spin-0.18}/spin/__init__.py +1 -1
  4. {spin-0.16 → spin-0.18}/spin/cmds/meson.py +5 -1
  5. {spin-0.16 → spin-0.18}/spin/cmds/pip.py +3 -0
  6. {spin-0.16 → spin-0.18}/spin/cmds/util.py +9 -0
  7. {spin-0.16 → spin-0.18/spin.egg-info}/PKG-INFO +1 -2
  8. {spin-0.16 → spin-0.18}/spin.egg-info/requires.txt +0 -3
  9. {spin-0.16 → spin-0.18}/LICENSE +0 -0
  10. {spin-0.16 → spin-0.18}/README.md +0 -0
  11. {spin-0.16 → spin-0.18}/setup.cfg +0 -0
  12. {spin-0.16 → spin-0.18}/spin/__main__.py +0 -0
  13. {spin-0.16 → spin-0.18}/spin/cmds/__init__.py +0 -0
  14. {spin-0.16 → spin-0.18}/spin/cmds/build.py +0 -0
  15. {spin-0.16 → spin-0.18}/spin/cmds/meta.py +0 -0
  16. {spin-0.16 → spin-0.18}/spin/color_format.py +0 -0
  17. {spin-0.16 → spin-0.18}/spin/containers.py +0 -0
  18. {spin-0.16 → spin-0.18}/spin/sectioned_help.py +0 -0
  19. {spin-0.16 → spin-0.18}/spin/tests/__init__.py +0 -0
  20. {spin-0.16 → spin-0.18}/spin/tests/conftest.py +0 -0
  21. {spin-0.16 → spin-0.18}/spin/tests/test_build_cmds.py +0 -0
  22. {spin-0.16 → spin-0.18}/spin/tests/test_cli.py +0 -0
  23. {spin-0.16 → spin-0.18}/spin/tests/test_editable.py +0 -0
  24. {spin-0.16 → spin-0.18}/spin/tests/test_extend_command.py +0 -0
  25. {spin-0.16 → spin-0.18}/spin/tests/test_meson.py +0 -0
  26. {spin-0.16 → spin-0.18}/spin/tests/test_test.py +0 -0
  27. {spin-0.16 → spin-0.18}/spin/tests/test_util.py +0 -0
  28. {spin-0.16 → spin-0.18}/spin/tests/testutil.py +0 -0
  29. {spin-0.16 → spin-0.18}/spin.egg-info/SOURCES.txt +0 -0
  30. {spin-0.16 → spin-0.18}/spin.egg-info/dependency_links.txt +0 -0
  31. {spin-0.16 → spin-0.18}/spin.egg-info/entry_points.txt +0 -0
  32. {spin-0.16 → spin-0.18}/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.18
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.18"
10
10
 
11
11
  from .cmds import util
12
12
 
@@ -417,6 +417,7 @@ def build(
417
417
  _meson_cli()
418
418
  + [
419
419
  "install",
420
+ "--no-rebuild",
420
421
  "--only-changed",
421
422
  "-C",
422
423
  build_dir,
@@ -765,7 +766,10 @@ def ipython(ctx, *, ipython_args, build=None, build_dir=None, pre_import=""):
765
766
  print(f'💻 Launching IPython with PYTHONPATH="{p}"')
766
767
  if pre_import:
767
768
  ipython_args = (f"--TerminalIPythonApp.exec_lines={pre_import}",) + ipython_args
768
- _run(["ipython", "--ignore-cwd"] + list(ipython_args), replace=True)
769
+ _run(
770
+ [sys.executable, "-P", "-m", "IPython", "--ignore-cwd"] + list(ipython_args),
771
+ replace=True,
772
+ )
769
773
 
770
774
 
771
775
  @click.command()
@@ -51,4 +51,7 @@ def install(*, pip_args, editable, verbose, verbose_import):
51
51
  if verbose:
52
52
  pip_args = ["-v"] + pip_args
53
53
 
54
+ if "." in pip_args:
55
+ pip_args.remove(".")
56
+
54
57
  _run(pip_cmd + pip_args + ["."], sys_exit=False, replace=True)
@@ -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.18
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