File tree Expand file tree Collapse file tree 11 files changed +3046
-49
lines changed Expand file tree Collapse file tree 11 files changed +3046
-49
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ exclude =
57
57
conda.recipe,
58
58
tests/*.py,
59
59
tests_external/*.py,
60
- version .py,
60
+ versioneer .py,
61
61
62
62
# Print detailed statistic if any issue detected
63
63
count = True
Original file line number Diff line number Diff line change 71
71
72
72
- name : Checkout repo
73
73
uses : actions/checkout@v3.5.2
74
+ with :
75
+ fetch-depth : 0
74
76
75
77
# https://github.com/marketplace/actions/setup-miniconda
76
78
- name : Setup miniconda
@@ -109,6 +111,13 @@ jobs:
109
111
run : make html
110
112
working-directory : doc
111
113
114
+ - name : Set a project number to current release
115
+ run : |
116
+ export PROJECT_NUMBER=$(git describe --tags --abbrev=0)
117
+
118
+ echo PROJECT_NUMBER=${PROJECT_NUMBER}
119
+ echo "PROJECT_NUMBER=$PROJECT_NUMBER" >> $GITHUB_ENV
120
+
112
121
# https://github.com/marketplace/actions/doxygen-action
113
122
- name : Build backend docs
114
123
uses : mattnotmitt/doxygen-action@v1.9.5
Original file line number Diff line number Diff line change @@ -194,7 +194,9 @@ jobs:
194
194
run : conda list
195
195
196
196
- name : Smoke test
197
- run : python -c "import dpnp, dpctl; dpctl.lsplatform()"
197
+ run : |
198
+ python -c "import dpnp, dpctl; dpctl.lsplatform()"
199
+ python -c "import dpnp; print(dpnp.__version__)"
198
200
199
201
# TODO: run the whole scope once the issues on CPU are resolved
200
202
- name : Run tests
@@ -331,7 +333,9 @@ jobs:
331
333
Get-Content -Tail 5 -Path $cl_cfg
332
334
333
335
- name : Smoke test
334
- run : python -c "import dpnp, dpctl; dpctl.lsplatform()"
336
+ run : |
337
+ python -c "import dpnp, dpctl; dpctl.lsplatform()"
338
+ python -c "import dpnp; print(dpnp.__version__)"
335
339
336
340
# TODO: run the whole scope once the issues on CPU are resolved
337
341
- name : Run tests
Original file line number Diff line number Diff line change 23
23
with open ("reference/comparison_table.rst.inc" , "w" ) as fd :
24
24
fd .write (comparison_generator .generate ())
25
25
26
+ import dpnp
26
27
27
28
# -- Project information -----------------------------------------------------
28
29
29
- project = "dpnp "
30
+ project = "Data Parallel Extension for NumPy "
30
31
copyright = "2020-2023, Intel Corporation"
31
32
author = "Intel"
32
33
33
- # The short X.Y version
34
- version = "0.12"
34
+ version = dpnp .__version__ .strip (".dirty" )
35
35
# The full version, including alpha/beta/rc tags
36
- release = "0.12.1"
36
+ release = dpnp . __version__ . strip ( ".dirty" )
37
37
38
38
39
39
# -- General configuration ---------------------------------------------------
Original file line number Diff line number Diff line change 54
54
from dpnp .dpnp_iface_types import *
55
55
from dpnp .dpnp_iface import *
56
56
from dpnp .dpnp_iface import __all__ as _iface__all__
57
- from dpnp .version import __version__
57
+ from dpnp ._version import get_versions
58
58
59
59
__all__ = _iface__all__
60
+
61
+ __version__ = get_versions ()["version" ]
62
+ del get_versions
You can’t perform that action at this time.
0 commit comments