Skip to content

Commit d47002d

Browse files
committed
Rudimentary array_api_stubs pkg and folder-per-version docs
1 parent 1b4c218 commit d47002d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+52
-35
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,6 @@ node_modules/
3030
__pycache__/
3131
*.pyc
3232
spec/**/generated
33-
tmp/
33+
tmp/
34+
*.egg-info/
35+
*.egg

pyproject.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[project]
2+
name = "array-api-stubs"
3+
version = "0.0.1"
4+
description = "foo"
5+
authors = []
6+
license = {file = "LICENSE"}
7+
readme = "README.md"
8+
requires-python = ">=3.8"
9+
keywords = []
10+
classifiers = []
11+
dependencies = []

spec/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ help:
2121

2222
clean:
2323
-rm -rf $(BUILDDIR)
24-
-rm -rf "$(SOURCEDIR)/API_specification/generated"
25-
-rm -rf "$(SOURCEDIR)/extensions/generated"
24+
-rm -rf "$(SOURCEDIR)/draft/API_specification/generated"
25+
-rm -rf "$(SOURCEDIR)/draft/extensions/generated"

spec/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import os
1414
import sys
1515
import sphinx_material
16-
sys.path.insert(0, os.path.abspath('./API_specification'))
16+
import array_api_stubs
1717

1818
# -- Project information -----------------------------------------------------
1919

spec/draft/index.rst

Lines changed: 30 additions & 0 deletions

spec/index.rst

Lines changed: 2 additions & 30 deletions

src/array_api_stubs/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from . import draft
2+

spec/API_specification/array_api/__init__.py renamed to src/array_api_stubs/draft/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from .constants import *
33
from .creation_functions import *
44
from .data_type_functions import *
5-
import array_api.data_types as dtype
5+
from . import data_types as dtype
66
from .elementwise_functions import *
77
from .indexing_functions import *
88
from .linear_algebra_functions import *

0 commit comments

Comments
 (0)