unxt-api 2.0.0__tar.gz → 2.1.0__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.
@@ -80,7 +80,7 @@ instance/
80
80
 
81
81
  # Sphinx documentation
82
82
  docs/_build/
83
- docs/guides/perf.ipynb
83
+ docs/how-to/optimize-performance.ipynb
84
84
 
85
85
  # PyBuilder
86
86
  .pybuilder/
@@ -164,3 +164,6 @@ Thumbs.db
164
164
  *~
165
165
  *.swp
166
166
  /.codspeed
167
+
168
+ # graphify knowledge graph (generated; `nox -s graph`)
169
+ /graphify-out/
unxt_api-2.1.0/LICENSE ADDED
@@ -0,0 +1,29 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2023, Nathaniel Starkman.
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ * Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ * Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ * Neither the name of the copyright holder nor the names of its
17
+ contributors may be used to endorse or promote products derived from
18
+ this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -1,26 +1,25 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: unxt-api
3
- Version: 2.0.0
3
+ Version: 2.1.0
4
4
  Summary: Abstract dispatch API definitions for unxt
5
5
  Project-URL: Bug Tracker, https://github.com/GalacticDynamics/unxt/issues
6
6
  Project-URL: Homepage, https://github.com/GalacticDynamics/unxt
7
7
  Author-email: GalacticDynamics <nstarman@users.noreply.github.com>, Nathaniel Starkman <nstarman@users.noreply.github.com>
8
- License: BSD-3-Clause
8
+ License-Expression: BSD-3-Clause
9
+ License-File: LICENSE
9
10
  Classifier: Development Status :: 5 - Production/Stable
10
11
  Classifier: Intended Audience :: Developers
11
12
  Classifier: Intended Audience :: Science/Research
12
- Classifier: License :: OSI Approved :: BSD License
13
13
  Classifier: Operating System :: OS Independent
14
14
  Classifier: Programming Language :: Python
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3 :: Only
17
- Classifier: Programming Language :: Python :: 3.11
18
17
  Classifier: Programming Language :: Python :: 3.12
19
18
  Classifier: Programming Language :: Python :: 3.13
20
19
  Classifier: Programming Language :: Python :: 3.14
21
20
  Classifier: Topic :: Scientific/Engineering
22
21
  Classifier: Typing :: Typed
23
- Requires-Python: >=3.11
22
+ Requires-Python: >=3.12
24
23
  Requires-Dist: unxts-api>=2.0.0
25
24
  Description-Content-Type: text/markdown
26
25
 
@@ -7,11 +7,9 @@ classifiers = [
7
7
  "Development Status :: 5 - Production/Stable",
8
8
  "Intended Audience :: Developers",
9
9
  "Intended Audience :: Science/Research",
10
- "License :: OSI Approved :: BSD License",
11
10
  "Operating System :: OS Independent",
12
11
  "Programming Language :: Python :: 3 :: Only",
13
12
  "Programming Language :: Python :: 3",
14
- "Programming Language :: Python :: 3.11",
15
13
  "Programming Language :: Python :: 3.12",
16
14
  "Programming Language :: Python :: 3.13",
17
15
  "Programming Language :: Python :: 3.14",
@@ -22,10 +20,11 @@ classifiers = [
22
20
  dependencies = ["unxts.api>=2.0.0"]
23
21
  description = "Abstract dispatch API definitions for unxt"
24
22
  dynamic = ["version"]
25
- license.text = "BSD-3-Clause"
23
+ license = "BSD-3-Clause"
24
+ license-files = ["LICENSE"]
26
25
  name = "unxt-api"
27
26
  readme = "README.md"
28
- requires-python = ">=3.11"
27
+ requires-python = ">=3.12"
29
28
 
30
29
  [project.urls]
31
30
  "Bug Tracker" = "https://github.com/GalacticDynamics/unxt/issues"
@@ -37,12 +36,13 @@ requires = ["hatch-vcs", "hatchling"]
37
36
 
38
37
  [dependency-groups]
39
38
  test = [
40
- "optional-dependencies>=0.3.2",
39
+ "optional-dependencies>=0.4.1",
41
40
  "pytest>=8.4.2",
42
41
  "pytest-arraydiff>=0.6.1",
43
42
  "pytest-cov>=6.2.1",
44
43
  "pytest-env>=1.1.5",
45
44
  "pytest-github-actions-annotate-failures>=0.3.0",
45
+ "pytest-xdist>=3.6.1",
46
46
  "sybil[pytest]>=9.2.0",
47
47
  ]
48
48
 
@@ -65,8 +65,5 @@ describe_command = [
65
65
  "unxt-api-v*",
66
66
  ]
67
67
 
68
- [tool.hatch.build.hooks.vcs]
69
- version-file = "src/unxt_api/_version.py"
70
-
71
68
  [tool.uv.sources]
72
69
  "unxts.api" = { workspace = true }
@@ -5,8 +5,9 @@ This package re-exports the complete public API and will be maintained long-term
5
5
  No changes are required in code that imports ``unxt_api``.
6
6
  """
7
7
 
8
+ from importlib.metadata import version as _dist_version
9
+
8
10
  from unxts.api import (
9
- __version__,
10
11
  dimension,
11
12
  dimension_of,
12
13
  is_unit_convertible,
@@ -19,6 +20,9 @@ from unxts.api import (
19
20
  wrap_to,
20
21
  )
21
22
 
23
+ #: Version of the ``unxt-api`` distribution (not ``unxts.api``).
24
+ __version__ = _dist_version("unxt-api")
25
+
22
26
  __all__ = (
23
27
  "__version__",
24
28
  "dimension",
@@ -1,5 +1,7 @@
1
1
  """Test that unxt_api re-exports the full public API from unxts.api."""
2
2
 
3
+ from importlib.metadata import version
4
+
3
5
  import unxts.api
4
6
 
5
7
  import unxt_api # noqa: ICN001
@@ -17,3 +19,8 @@ def test_same_objects():
17
19
  assert getattr(unxt_api, name) is getattr(unxts.api, name), (
18
20
  f"unxt_api.{name} is not unxts.api.{name}"
19
21
  )
22
+
23
+
24
+ def test_version_reports_own_distribution():
25
+ """`unxt_api.__version__` is the `unxt-api` dist version, not `unxts.api`'s."""
26
+ assert unxt_api.__version__ == version("unxt-api")
File without changes
@@ -1,24 +0,0 @@
1
- # file generated by vcs-versioning
2
- # don't change, don't track in version control
3
- from __future__ import annotations
4
-
5
- __all__ = [
6
- "__version__",
7
- "__version_tuple__",
8
- "version",
9
- "version_tuple",
10
- "__commit_id__",
11
- "commit_id",
12
- ]
13
-
14
- version: str
15
- __version__: str
16
- __version_tuple__: tuple[int | str, ...]
17
- version_tuple: tuple[int | str, ...]
18
- commit_id: str | None
19
- __commit_id__: str | None
20
-
21
- __version__ = version = '2.0.0'
22
- __version_tuple__ = version_tuple = (2, 0, 0)
23
-
24
- __commit_id__ = commit_id = None
File without changes
File without changes
File without changes