Skip to content

Commit 5a588e0

Browse files
author
Diptorup Deb
authored
Merge pull request #291 from IntelPython/feature/add_force_push_to_anaconda
Add versioneer
2 parents ccfb262 + c2fec39 commit 5a588e0

File tree

10 files changed

+716
-6
lines changed

10 files changed

+716
-6
lines changed

.flake8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ exclude =
88
__pycache__
99
./dist
1010
./setup.py
11+
./dpbench/_version.py
1112
max-complexity = 10

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
dpbench/_version.py export-subst

conda-recipe/meta.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
package:
66
name: dpbench
7-
version: 0.1
7+
version: {{ GIT_DESCRIBE_TAG }}
8+
89
source:
910
path: ..
1011

@@ -27,6 +28,7 @@ requirements:
2728
- scikit-build
2829
- cython
2930
- pybind11
31+
- versioneer
3032
- intel::numpy
3133
- numba
3234
- dpctl
@@ -47,9 +49,6 @@ requirements:
4749
- dpnp
4850
- numba-dpex
4951

50-
build:
51-
number: 0
52-
5352
test:
5453
requires:
5554
- dpctl

dpbench/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation
22
#
33
# SPDX-License-Identifier: Apache-2.0
4+
5+
from . import _version
6+
7+
__version__ = _version.get_versions()["version"]

0 commit comments

Comments
 (0)