Skip to content

Commit

Permalink
Update licence string (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
adityagoel4512 committed Jun 15, 2024
1 parent 57bb349 commit 8241d12
Show file tree
Hide file tree
Showing 39 changed files with 63 additions and 79 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
entry: >-
pixi run -e lint
insert-license
--license-base64 Q29weXJpZ2h0IChjKSBRdWFudENvIHt5ZWFyX3N0YXJ0fS17eWVhcl9lbmR9ClNQRFgtTGljZW5zZS1JZGVudGlmaWVyOiBMaWNlbnNlUmVmLVF1YW50Q28K
--license-base64 Q29weXJpZ2h0IChjKSBRdWFudENvIDIwMjMtMjAyNApTUERYLUxpY2Vuc2UtSWRlbnRpZmllcjogQlNELTMtQ2xhdXNlCg==
--dynamic-years
--comment-style "#"
language: system
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) QuantCo 2022-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: BSD-3-Clause

# Configuration file for the Sphinx documentation builder.
#
Expand Down
4 changes: 2 additions & 2 deletions ndonnx/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) QuantCo 2022-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: BSD-3-Clause

import importlib.metadata
import warnings
Expand Down
2 changes: 1 addition & 1 deletion ndonnx/_array.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# SPDX-License-Identifier: BSD-3-Clause

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion ndonnx/_build.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# SPDX-License-Identifier: BSD-3-Clause

from __future__ import annotations

Expand Down
4 changes: 2 additions & 2 deletions ndonnx/_constants.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) QuantCo 2024-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: BSD-3-Clause

import numpy as np

Expand Down
4 changes: 2 additions & 2 deletions ndonnx/_core/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) QuantCo 2024-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: BSD-3-Clause

from ._impl import CoreOperationsImpl
from ._interface import OperationsBlock
Expand Down
5 changes: 3 additions & 2 deletions ndonnx/_core/_impl.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright (c) QuantCo 2024-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: BSD-3-Clause

from __future__ import annotations

import functools
Expand Down
5 changes: 3 additions & 2 deletions ndonnx/_core/_interface.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright (c) QuantCo 2024-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: BSD-3-Clause

from __future__ import annotations

from typing import Literal
Expand Down
2 changes: 1 addition & 1 deletion ndonnx/_corearray.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# SPDX-License-Identifier: BSD-3-Clause

from __future__ import annotations

Expand Down
3 changes: 2 additions & 1 deletion ndonnx/_data_types/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# SPDX-License-Identifier: BSD-3-Clause

from __future__ import annotations

from .aliases import (
Expand Down
2 changes: 1 addition & 1 deletion ndonnx/_data_types/aliases.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# SPDX-License-Identifier: BSD-3-Clause

from .classes import (
Boolean,
Expand Down
2 changes: 1 addition & 1 deletion ndonnx/_data_types/classes.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# SPDX-License-Identifier: BSD-3-Clause

from __future__ import annotations

Expand Down
4 changes: 2 additions & 2 deletions ndonnx/_data_types/conversion.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) QuantCo 2024-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: BSD-3-Clause

from __future__ import annotations

Expand Down
4 changes: 2 additions & 2 deletions ndonnx/_data_types/coretype.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) QuantCo 2024-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: BSD-3-Clause

from __future__ import annotations

Expand Down
4 changes: 2 additions & 2 deletions ndonnx/_data_types/schema.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) QuantCo 2024-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: BSD-3-Clause

from dataclasses import dataclass

Expand Down
4 changes: 2 additions & 2 deletions ndonnx/_data_types/structtype.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) QuantCo 2024-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: BSD-3-Clause

from __future__ import annotations

Expand Down
4 changes: 2 additions & 2 deletions ndonnx/_experimental.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) QuantCo 2024-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: BSD-3-Clause

from ._core import OperationsBlock
from ._data_types import CastMixin, Schema, StructType
Expand Down
2 changes: 1 addition & 1 deletion ndonnx/_funcs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# SPDX-License-Identifier: BSD-3-Clause

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion ndonnx/_index.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# SPDX-License-Identifier: BSD-3-Clause

from collections.abc import Iterable
from typing import TypeVar, Union
Expand Down
3 changes: 2 additions & 1 deletion ndonnx/_opset_extensions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# SPDX-License-Identifier: BSD-3-Clause

from __future__ import annotations

import builtins
Expand Down
2 changes: 1 addition & 1 deletion ndonnx/_propagation.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# SPDX-License-Identifier: BSD-3-Clause

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion ndonnx/_utility.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# SPDX-License-Identifier: BSD-3-Clause

from __future__ import annotations

Expand Down
4 changes: 2 additions & 2 deletions ndonnx/additional/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) QuantCo 2024-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: BSD-3-Clause

from ._additional import fill_null, make_nullable, isin, shape, static_map

Expand Down
3 changes: 2 additions & 1 deletion ndonnx/additional/_additional.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# SPDX-License-Identifier: BSD-3-Clause

from __future__ import annotations

from collections.abc import Mapping, Sequence
Expand Down
1 change: 1 addition & 0 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ postinstall = "pip install --no-build-isolation --no-deps --disable-pip-version-
python = ">=3.10"
numpy = "*"
spox = ">=0.10"
typing_extensions = "*"

[host-dependencies]
pip = "*"
Expand Down
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,20 @@ authors = [
{ name = "Christian Bourjau", email = "[email protected]" },
]
classifiers = [
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
requires-python = ">=3.10"
dependencies = ["numpy", "spox>=0.10", "typing_extensions"]
keywords = [
"numpy",
"onnx",
"array-api",
]

[project.urls]
repository = "https://github.com/quantco/ndonnx"
Expand Down
5 changes: 0 additions & 5 deletions scripts/create_typing.sh

This file was deleted.

24 changes: 0 additions & 24 deletions scripts/parse_test_report.py

This file was deleted.

2 changes: 0 additions & 2 deletions scripts/test.sh

This file was deleted.

2 changes: 1 addition & 1 deletion tests/ndonnx/test_additional.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# SPDX-License-Identifier: BSD-3-Clause

import sys

Expand Down
4 changes: 2 additions & 2 deletions tests/ndonnx/test_build_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) QuantCo 2024-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: BSD-3-Clause

import pytest

Expand Down
2 changes: 1 addition & 1 deletion tests/ndonnx/test_compute_modes.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# SPDX-License-Identifier: BSD-3-Clause

import numpy as np
import numpy.array_api as npx
Expand Down
2 changes: 1 addition & 1 deletion tests/ndonnx/test_constant_propagation.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# SPDX-License-Identifier: BSD-3-Clause

from typing import Literal

Expand Down
2 changes: 1 addition & 1 deletion tests/ndonnx/test_core.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# SPDX-License-Identifier: BSD-3-Clause

from __future__ import annotations

Expand Down
3 changes: 2 additions & 1 deletion tests/ndonnx/test_dtypes.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# SPDX-License-Identifier: BSD-3-Clause

from __future__ import annotations

import re
Expand Down
2 changes: 1 addition & 1 deletion tests/ndonnx/test_include.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# SPDX-License-Identifier: BSD-3-Clause


def test_import():
Expand Down
2 changes: 1 addition & 1 deletion tests/ndonnx/test_masked.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# SPDX-License-Identifier: BSD-3-Clause

import math

Expand Down
4 changes: 2 additions & 2 deletions tests/ndonnx/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) QuantCo 2024-2024
# SPDX-License-Identifier: LicenseRef-QuantCo
# Copyright (c) QuantCo 2023-2024
# SPDX-License-Identifier: BSD-3-Clause

from __future__ import annotations

Expand Down

0 comments on commit 8241d12

Please sign in to comment.