plesty-lib 0.2.3__tar.gz → 0.2.4__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 (75) hide show
  1. {plesty_lib-0.2.3 → plesty_lib-0.2.4}/PKG-INFO +1 -2
  2. {plesty_lib-0.2.3 → plesty_lib-0.2.4}/pyproject.toml +8 -12
  3. {plesty_lib-0.2.3 → plesty_lib-0.2.4}/uv.lock +5 -3
  4. plesty_lib-0.2.3/conftest.py +0 -64
  5. plesty_lib-0.2.3/plesty_lib/__init__.py +0 -3
  6. {plesty_lib-0.2.3 → plesty_lib-0.2.4}/.gitignore +0 -0
  7. {plesty_lib-0.2.3 → plesty_lib-0.2.4}/.gitlab-ci.yml +0 -0
  8. {plesty_lib-0.2.3 → plesty_lib-0.2.4}/COPYING +0 -0
  9. {plesty_lib-0.2.3 → plesty_lib-0.2.4}/LICENSE +0 -0
  10. {plesty_lib-0.2.3 → plesty_lib-0.2.4}/LICENSES/GPL-3.0-or-later.txt +0 -0
  11. {plesty_lib-0.2.3 → plesty_lib-0.2.4}/LICENSES/LGPL-3.0-or-later.txt +0 -0
  12. {plesty_lib-0.2.3 → plesty_lib-0.2.4}/README.md +0 -0
  13. {plesty_lib-0.2.3 → plesty_lib-0.2.4}/docs/api_reference.md +0 -0
  14. {plesty_lib-0.2.3 → plesty_lib-0.2.4}/docs/contributing.md +0 -0
  15. {plesty_lib-0.2.3 → plesty_lib-0.2.4}/docs/device/base_device.md +0 -0
  16. {plesty_lib-0.2.3 → plesty_lib-0.2.4}/docs/device/cmd_solver.md +0 -0
  17. {plesty_lib-0.2.3 → plesty_lib-0.2.4}/docs/device/error_handling.md +0 -0
  18. {plesty_lib-0.2.3 → plesty_lib-0.2.4}/docs/device/func_system.md +0 -0
  19. {plesty_lib-0.2.3 → plesty_lib-0.2.4}/docs/device/index.md +0 -0
  20. {plesty_lib-0.2.3 → plesty_lib-0.2.4}/docs/device/logging_system.md +0 -0
  21. {plesty_lib-0.2.3 → plesty_lib-0.2.4}/docs/device/param_system.md +0 -0
  22. {plesty_lib-0.2.3 → plesty_lib-0.2.4}/docs/device/test_helper.md +0 -0
  23. {plesty_lib-0.2.3 → plesty_lib-0.2.4}/docs/device/traffic_manager.md +0 -0
  24. {plesty_lib-0.2.3 → plesty_lib-0.2.4}/docs/imgs/device_layers.png +0 -0
  25. {plesty_lib-0.2.3 → plesty_lib-0.2.4}/docs/imgs/device_standard.png +0 -0
  26. {plesty_lib-0.2.3 → plesty_lib-0.2.4}/docs/imgs/plesty_framework.png +0 -0
  27. {plesty_lib-0.2.3 → plesty_lib-0.2.4}/docs/index.md +0 -0
  28. {plesty_lib-0.2.3 → plesty_lib-0.2.4}/docs/quickstart.md +0 -0
  29. {plesty_lib-0.2.3 → plesty_lib-0.2.4}/docs/toc.yaml +0 -0
  30. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/__init__.py +0 -0
  31. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/data/__init__.py +0 -0
  32. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/data/array.py +0 -0
  33. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/data/ctype_manager.py +0 -0
  34. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/data/table.py +0 -0
  35. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/data/types.py +0 -0
  36. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/data/units.py +0 -0
  37. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/device/__init__.py +0 -0
  38. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/device/async_wrapper.py +0 -0
  39. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/device/base_device_sync.py +0 -0
  40. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/device/base_tcp_scpi_device.py +0 -0
  41. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/device/base_visa_scpi_device.py +0 -0
  42. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/device/composite_device.py +0 -0
  43. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/device/device_utils.py +0 -0
  44. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/device/funcs.py +0 -0
  45. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/device/params.py +0 -0
  46. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/service/__init__.py +0 -0
  47. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/service/resource_manager.py +0 -0
  48. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/service/tcp_ip_client.py +0 -0
  49. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/service/tcp_ip_server.py +0 -0
  50. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/sim/__init__.py +0 -0
  51. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/sim/data_generator.py +0 -0
  52. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/solver/__init__.py +0 -0
  53. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/solver/iceblock.py +0 -0
  54. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/solver/scpi.py +0 -0
  55. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/test/device_func_system.py +0 -0
  56. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/test/device_param_system.py +0 -0
  57. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/test/grouped_param_keys.py +0 -0
  58. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/test/resource_allocation.py +0 -0
  59. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/test/schema_params.py +0 -0
  60. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/traffic/__init__.py +0 -0
  61. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/traffic/serial.py +0 -0
  62. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/traffic/tcp_ip.py +0 -0
  63. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/traffic/usb_utils.py +0 -0
  64. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/traffic/utils.py +0 -0
  65. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/traffic/visa.py +0 -0
  66. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/utils/__init__.py +0 -0
  67. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/utils/dll_utils.py +0 -0
  68. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/utils/error_utils.py +0 -0
  69. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/utils/logger.py +0 -0
  70. {plesty_lib-0.2.3 → plesty_lib-0.2.4/plesty}/lib/utils/registry.py +0 -0
  71. {plesty_lib-0.2.3 → plesty_lib-0.2.4}/plestylib/__init__.py +0 -0
  72. {plesty_lib-0.2.3 → plesty_lib-0.2.4}/spdx.tmpl +0 -0
  73. {plesty_lib-0.2.3 → plesty_lib-0.2.4}/tests/test_data_array.py +0 -0
  74. {plesty_lib-0.2.3 → plesty_lib-0.2.4}/tests/test_schema_params.py +0 -0
  75. {plesty_lib-0.2.3 → plesty_lib-0.2.4}/tests/test_tcp_ip_resources.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plesty-lib
3
- Version: 0.2.3
3
+ Version: 0.2.4
4
4
  Summary: A library for the Plesty ecosystem.
5
5
  Author-email: Yunshuang Yuan <yunshuang.yuan@fkp.uni-hannover.de>
6
6
  Maintainer-email: Plesty Development Team <yunshuang.yuan@fkp.uni-hannover.de>
@@ -10,7 +10,6 @@ License-File: LICENSE
10
10
  Requires-Python: >=3.12
11
11
  Requires-Dist: numpy>=1.24
12
12
  Requires-Dist: pyserial>=3.5
13
- Requires-Dist: pytest>=9.0.0
14
13
  Requires-Dist: pyusb>=1.2.1
15
14
  Requires-Dist: pyvisa>=1.13
16
15
  Requires-Dist: pyzmq>=25.0
@@ -18,11 +18,16 @@ dependencies = [
18
18
  "pyzmq>=25.0",
19
19
  "pyusb>=1.2.1",
20
20
  "pyvisa>=1.13",
21
- "pytest>=9.0.0",
22
21
  ]
23
22
 
24
23
  [dependency-groups]
25
- dev = ["plesty-sdk @ git+https://gitlab.com/plesty/plesty-sdk.git@dev"]
24
+ dev = [
25
+ "pytest>=9.0.0",
26
+ "plesty-sdk @ git+https://gitlab.com/plesty/plesty-sdk.git@dev",
27
+ ]
28
+
29
+ [tool.plesty]
30
+ module = "plesty.lib"
26
31
 
27
32
  [tool.plesty.docs]
28
33
  site-name = "LIB"
@@ -34,16 +39,7 @@ requires = ["hatchling", "versioningit"]
34
39
  build-backend = "hatchling.build"
35
40
 
36
41
  [tool.hatch.build.targets.wheel]
37
- packages = ["plestylib", "plesty_lib"]
38
-
39
- [tool.hatch.build.targets.wheel.sources]
40
- "lib" = "plesty/lib"
41
-
42
- [tool.hatch.build.targets.editable]
43
- packages = ["plestylib", "plesty_lib"]
44
-
45
- [tool.hatch.build.targets.editable.sources]
46
- "lib" = "plesty/lib"
42
+ packages = ["plestylib", "plesty/lib"]
47
43
 
48
44
  [tool.hatch.version]
49
45
  source = "versioningit"
@@ -875,7 +875,6 @@ source = { editable = "." }
875
875
  dependencies = [
876
876
  { name = "numpy" },
877
877
  { name = "pyserial" },
878
- { name = "pytest" },
879
878
  { name = "pyusb" },
880
879
  { name = "pyvisa" },
881
880
  { name = "pyzmq" },
@@ -884,20 +883,23 @@ dependencies = [
884
883
  [package.dev-dependencies]
885
884
  dev = [
886
885
  { name = "plesty-sdk" },
886
+ { name = "pytest" },
887
887
  ]
888
888
 
889
889
  [package.metadata]
890
890
  requires-dist = [
891
891
  { name = "numpy", specifier = ">=1.24" },
892
892
  { name = "pyserial", specifier = ">=3.5" },
893
- { name = "pytest", specifier = ">=9.0.0" },
894
893
  { name = "pyusb", specifier = ">=1.2.1" },
895
894
  { name = "pyvisa", specifier = ">=1.13" },
896
895
  { name = "pyzmq", specifier = ">=25.0" },
897
896
  ]
898
897
 
899
898
  [package.metadata.requires-dev]
900
- dev = [{ name = "plesty-sdk", git = "https://gitlab.com/plesty/plesty-sdk.git?rev=dev" }]
899
+ dev = [
900
+ { name = "plesty-sdk", git = "https://gitlab.com/plesty/plesty-sdk.git?rev=dev" },
901
+ { name = "pytest", specifier = ">=9.0.0" },
902
+ ]
901
903
 
902
904
  [[package]]
903
905
  name = "plesty-sdk"
@@ -1,64 +0,0 @@
1
- """Development import hook for editable installs.
2
-
3
- Maps ``plesty`` → synthetic namespace package and ``plesty.lib.*`` → ``lib.*``
4
- so that tests can use the canonical ``plesty.lib`` import path without
5
- requiring a built wheel or extra directories in the project tree.
6
-
7
- This file is loaded automatically by pytest and has no effect on installed
8
- packages (the wheel's sources mapping handles that path).
9
- """
10
-
11
- import sys
12
- import types
13
- import importlib
14
- import importlib.abc
15
- import importlib.machinery
16
- import importlib.util
17
-
18
-
19
- class _Loader(importlib.abc.Loader):
20
- """Return an already-imported module so Python uses it under the aliased name."""
21
-
22
- def __init__(self, module):
23
- self._module = module
24
-
25
- def create_module(self, spec):
26
- return self._module
27
-
28
- def exec_module(self, module):
29
- pass
30
-
31
-
32
- class _PlestyLibDevFinder(importlib.abc.MetaPathFinder):
33
- """Redirect ``plesty.lib.*`` imports to ``lib.*`` for editable installs."""
34
-
35
- def find_spec(self, fullname, path, target=None):
36
- # Synthesize the ``plesty`` namespace package on demand.
37
- if fullname == "plesty":
38
- if "plesty" in sys.modules:
39
- return sys.modules["plesty"].__spec__
40
- ns = types.ModuleType("plesty")
41
- ns.__path__ = []
42
- ns.__package__ = "plesty"
43
- spec = importlib.machinery.ModuleSpec("plesty", loader=None, is_package=True)
44
- ns.__spec__ = spec
45
- sys.modules["plesty"] = ns
46
- return spec
47
-
48
- if fullname == "plesty.lib" or fullname.startswith("plesty.lib."):
49
- target_name = "lib" + fullname[len("plesty.lib"):]
50
- if target_name in sys.modules:
51
- sys.modules[fullname] = sys.modules[target_name]
52
- return sys.modules[target_name].__spec__
53
- try:
54
- mod = importlib.import_module(target_name)
55
- except ImportError:
56
- return None
57
- sys.modules[fullname] = mod
58
- return importlib.util.spec_from_loader(fullname, _Loader(mod))
59
-
60
- return None
61
-
62
-
63
- if not any(isinstance(f, _PlestyLibDevFinder) for f in sys.meta_path):
64
- sys.meta_path.insert(0, _PlestyLibDevFinder())
@@ -1,3 +0,0 @@
1
- """Compatibility shim — the canonical import name is ``plesty.lib``."""
2
-
3
- from lib import * # noqa: F401, F403
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes