Skip to content

Commit 0257fb0

Browse files
committed
Added setup.cfg
1 parent f2d1c22 commit 0257fb0

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

.github/workflows/build-sphinx.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,8 @@ jobs:
103103

104104
- name: Set a project number to current release
105105
run: |
106-
set PROJECT_NUMBER=$(git describe --tags --abbrev=0)
106+
export PROJECT_NUMBER=$(git describe --tags --abbrev=0)
107107
echo PROJECT_NUMBER=${PROJECT_NUMBER}
108-
echo ref_name=${{github.ref_name}}
109108
110109
# https://github.com/marketplace/actions/doxygen-action
111110
- name: Build backend docs

setup.cfg

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
[pycodestyle]
2-
max_line_length = 120
3-
ignore = E201
1+
[versioneer]
2+
VCS = git
3+
versionfile_source = dpnp/_version.py
4+
versionfile_build = dpnp/_version.py
5+
tag_prefix =
6+
parentdir_prefix = dpnp-
47

5-
[flake8]
6-
max_line_length = 120
7-
ignore = F405
8-
9-
[tool:pytest]
10-
addopts = -p no:warnings --tb=short
11-
norecursedirs = tests_perf
12-
testpaths = tests
8+
[bdist_wheel]
9+
universal=1

setup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
from skbuild import setup
55

6+
import versioneer
7+
68
"""
79
Get the project version
810
"""
@@ -18,6 +20,9 @@
1820
with open("README.md") as f:
1921
__readme_file__ = f.read()
2022

23+
def _get_cmdclass():
24+
return versioneer.get_cmdclass()
25+
2126
CLASSIFIERS = """\
2227
Development Status :: 4 - Beta
2328
Intended Audience :: Science/Research
@@ -41,6 +46,7 @@
4146
setup(
4247
name="dpnp",
4348
version=__version__,
49+
cmdclass=_get_cmdclass(),
4450
description="Data Parallel Extension for NumPy",
4551
long_description=__readme_file__,
4652
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)