XuPy 1.7.1__tar.gz → 1.7.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 (29) hide show
  1. {xupy-1.7.1 → xupy-1.7.2}/PKG-INFO +1 -1
  2. {xupy-1.7.1 → xupy-1.7.2}/XuPy.egg-info/PKG-INFO +1 -1
  3. {xupy-1.7.1 → xupy-1.7.2}/pyproject.toml +1 -1
  4. {xupy-1.7.1 → xupy-1.7.2}/setup.py +6 -5
  5. xupy-1.7.2/xupy/__version__.py +1 -0
  6. {xupy-1.7.1 → xupy-1.7.2}/xupy/_core.py +1 -1
  7. xupy-1.7.1/xupy/__version__.py +0 -1
  8. {xupy-1.7.1 → xupy-1.7.2}/LICENSE +0 -0
  9. {xupy-1.7.1 → xupy-1.7.2}/README.md +0 -0
  10. {xupy-1.7.1 → xupy-1.7.2}/XuPy.egg-info/SOURCES.txt +0 -0
  11. {xupy-1.7.1 → xupy-1.7.2}/XuPy.egg-info/dependency_links.txt +0 -0
  12. {xupy-1.7.1 → xupy-1.7.2}/XuPy.egg-info/requires.txt +0 -0
  13. {xupy-1.7.1 → xupy-1.7.2}/XuPy.egg-info/top_level.txt +0 -0
  14. {xupy-1.7.1 → xupy-1.7.2}/setup.cfg +0 -0
  15. {xupy-1.7.1 → xupy-1.7.2}/test/test_arithmetic_compatibility.py +0 -0
  16. {xupy-1.7.1 → xupy-1.7.2}/test/test_core.py +0 -0
  17. {xupy-1.7.1 → xupy-1.7.2}/test/test_cpu_memory_context.py +0 -0
  18. {xupy-1.7.1 → xupy-1.7.2}/test/test_large_array_printing.py +0 -0
  19. {xupy-1.7.1 → xupy-1.7.2}/test/test_ma_core.py +0 -0
  20. {xupy-1.7.1 → xupy-1.7.2}/test/test_ma_extras.py +0 -0
  21. {xupy-1.7.1 → xupy-1.7.2}/xupy/__init__.py +0 -0
  22. {xupy-1.7.1 → xupy-1.7.2}/xupy/_cupy_install/__check_availability__.py +0 -0
  23. {xupy-1.7.1 → xupy-1.7.2}/xupy/_cupy_install/__init__.py +0 -0
  24. {xupy-1.7.1 → xupy-1.7.2}/xupy/_cupy_install/__install_cupy__.py +0 -0
  25. {xupy-1.7.1 → xupy-1.7.2}/xupy/ma/__init__.py +0 -0
  26. {xupy-1.7.1 → xupy-1.7.2}/xupy/ma/core.py +0 -0
  27. {xupy-1.7.1 → xupy-1.7.2}/xupy/ma/extras.py +0 -0
  28. {xupy-1.7.1 → xupy-1.7.2}/xupy/py.typed +0 -0
  29. {xupy-1.7.1 → xupy-1.7.2}/xupy/typings.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: XuPy
3
- Version: 1.7.1
3
+ Version: 1.7.2
4
4
  Summary: GPU Accelerated masked arrays with automatic handling of CPU and GPU arrays.
5
5
  Author: Pietro Ferraiuolo
6
6
  Author-email: Pietro Ferraiuolo <pietro.ferraiuolo@inaf.it>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: XuPy
3
- Version: 1.7.1
3
+ Version: 1.7.2
4
4
  Summary: GPU Accelerated masked arrays with automatic handling of CPU and GPU arrays.
5
5
  Author: Pietro Ferraiuolo
6
6
  Author-email: Pietro Ferraiuolo <pietro.ferraiuolo@inaf.it>
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "XuPy"
7
- version = "1.7.1"
7
+ version = "1.7.2"
8
8
  description = "GPU Accelerated masked arrays with automatic handling of CPU and GPU arrays."
9
9
  authors = [
10
10
  { name = "Pietro Ferraiuolo", email = "pietro.ferraiuolo@inaf.it" }
@@ -1,9 +1,10 @@
1
1
  from setuptools import setup, find_packages
2
2
  from setuptools.command.install import install
3
+ import tomllib
3
4
 
4
- about = {}
5
- with open("xupy/__version__.py") as f:
6
- exec(f.read(), about)
5
+ with open('pyproject.toml', 'rb') as f:
6
+ data = tomllib.load(f)
7
+ __version__ = data['project']['version']
7
8
 
8
9
  class CustomInstall(install):
9
10
  def run(self):
@@ -20,11 +21,11 @@ class CustomInstall(install):
20
21
 
21
22
  setup(
22
23
  name="XuPy",
23
- version=about['__version__'],
24
+ version=__version__,
24
25
  description="GPU Accelerated masked arrays with automatic handling of CPU and GPU arrays.",
25
26
  author="Pietro Ferraiuolo",
26
27
  author_email="pietro.ferraiuolo@inaf.it",
27
- packages=find_packages(), # ["xupy", "xupy.ma"],
28
+ packages=find_packages(),
28
29
  install_requires=["numpy"],
29
30
  python_requires=">=3.10",
30
31
  cmdclass={
@@ -0,0 +1 @@
1
+ __version__ = "1.7.2"
@@ -84,7 +84,7 @@ _mode_names: set[str] = set()
84
84
 
85
85
  def _array_size(
86
86
  shape: tuple[int] | list[tuple[int]],
87
- dtype: _t.DTypeLike = _xp.float32,
87
+ dtype: _t.DTypeLike = _np.float32,
88
88
  out_unit: str = 'MB',
89
89
  ) -> int:
90
90
  """
@@ -1 +0,0 @@
1
- __version__ = "1.7.1"
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