From 61301a0e0028fbd084ea8e179039d05234edb588 Mon Sep 17 00:00:00 2001 From: nstarman Date: Mon, 2 Dec 2024 23:09:43 -0500 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=94=A7:=20update=20test=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nstarman --- pyproject.toml | 4 ++-- uv.lock | 11 +++++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b3c9878..8ad949b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,8 +44,8 @@ ] test = [ "pytest>=8.3.3", - "pytest-cov >=3", - "pytest-github-actions-annotate-failures", + "pytest-cov>=3", + "pytest-github-actions-annotate-failures>=0.3.0", "sybil>=8.0.0", ] diff --git a/uv.lock b/uv.lock index ab4251b..b9dccbf 100644 --- a/uv.lock +++ b/uv.lock @@ -3,7 +3,6 @@ requires-python = ">=3.10" [[package]] name = "array-api-typing" -version = "0.1.dev6+ge0bb4a9.d20241205" source = { editable = "." } [package.dev-dependencies] @@ -28,13 +27,13 @@ dev = [ { name = "pre-commit", specifier = ">=4.0.1" }, { name = "pytest", specifier = ">=8.3.3" }, { name = "pytest-cov", specifier = ">=3" }, - { name = "pytest-github-actions-annotate-failures" }, + { name = "pytest-github-actions-annotate-failures", specifier = ">=0.3.0" }, { name = "sybil", specifier = ">=8.0.0" }, ] test = [ { name = "pytest", specifier = ">=8.3.3" }, { name = "pytest-cov", specifier = ">=3" }, - { name = "pytest-github-actions-annotate-failures" }, + { name = "pytest-github-actions-annotate-failures", specifier = ">=0.3.0" }, { name = "sybil", specifier = ">=8.0.0" }, ] @@ -249,14 +248,14 @@ wheels = [ [[package]] name = "pytest-github-actions-annotate-failures" -version = "0.2.0" +version = "0.3.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "pytest" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/a8/d6/76d074e1e4d78c5144397e6061af29bcc218dbf19bb64b39e5c296bf42f1/pytest-github-actions-annotate-failures-0.2.0.tar.gz", hash = "sha256:844ab626d389496e44f960b42f0a72cce29ae06d363426d17ea9ae1b4bef2288", size = 9450 } +sdist = { url = "https://files.pythonhosted.org/packages/39/d4/c54ee6a871eee4a7468e3a8c0dead28e634c0bc2110c694309dcb7563a66/pytest_github_actions_annotate_failures-0.3.0.tar.gz", hash = "sha256:d4c3177c98046c3900a7f8ddebb22ea54b9f6822201b5d3ab8fcdea51e010db7", size = 11248 } wheels = [ - { url = "https://files.pythonhosted.org/packages/eb/86/9ffd9f10a7ba7387ce4ef4362505d739a48dd988051b41d255eb7f102c17/pytest_github_actions_annotate_failures-0.2.0-py3-none-any.whl", hash = "sha256:8bcef65fed503faaa0524b59cfeccc8995130972dd7b008d64193cc41b9cde85", size = 5496 }, + { url = "https://files.pythonhosted.org/packages/6d/73/7b0b15cb8605ee967b34aa1d949737ab664f94e6b0f1534e8339d9e64ab2/pytest_github_actions_annotate_failures-0.3.0-py3-none-any.whl", hash = "sha256:41ea558ba10c332c0bfc053daeee0c85187507b2034e990f21e4f7e5fef044cf", size = 6030 }, ] [[package]] From 532fa82837be7840396a87fe45ac0c89f86b341c Mon Sep 17 00:00:00 2001 From: nstarman Date: Thu, 5 Dec 2024 16:29:29 -0500 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=94=A7:=20update=20hatch=20vcs=20conf?= =?UTF-8?q?ig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nstarman --- pyproject.toml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8ad949b..c704e60 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,9 +51,16 @@ [tool.hatch] - build.hooks.vcs.version-file = "src/array_api_typing/_version.py" version.source = "vcs" + [tool.hatch.build.hooks.vcs] + version-file = "src/array_api_typing/_version.py" + template = ''' +# This file is automatically generated by Hatch +version = {version!r} +version_tuple = {version_tuple!r} +''' + [tool.coverage] report.exclude_also = ['\.\.\.', 'if typing.TYPE_CHECKING:'] From efee61b7c80a52ad955fd0013a4e212f69fd1ae5 Mon Sep 17 00:00:00 2001 From: Nathaniel Starkman Date: Sat, 7 Jun 2025 15:27:57 -0400 Subject: [PATCH 3/3] =?UTF-8?q?=E2=9C=A8:=20=20create=20init=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Joren Hammudoglu Signed-off-by: Nathaniel Starkman --- .gitignore | 5 ++--- src/array_api_typing/__init__.py | 5 +++++ 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 src/array_api_typing/__init__.py diff --git a/.gitignore b/.gitignore index 159dc32..5a10c74 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,5 @@ site/ .venv/ venv/ -# IntelliJ -.idea/ -.run/ +# Build docs +/src/array_api_typing/_version.py diff --git a/src/array_api_typing/__init__.py b/src/array_api_typing/__init__.py new file mode 100644 index 0000000..3391d92 --- /dev/null +++ b/src/array_api_typing/__init__.py @@ -0,0 +1,5 @@ +"""Static typing support for the array API standard.""" + +__all__ = () + +from ._version import version as __version__ , version_tuple as __version_tuple__