Skip to content

Commit 66eaae9

Browse files
committed
Use versioneer for versioning
1 parent 0f1ac47 commit 66eaae9

File tree

5 files changed

+164
-115
lines changed

5 files changed

+164
-115
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools", "wheel", "numpy >= 1.15"]
2+
requires = ["setuptools", "wheel", "numpy>=1.15"]
33

44
[tool.black]
55
line-length = 100

setup.cfg

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,20 @@ ignore =
1010
E231, # Multiple spaces around ","
1111
W503, # line break before binary operator
1212

13+
[coverage:run]
14+
source = suitesparse_graphblas
15+
plugins = Cython.Coverage
16+
omit =
17+
suitesparse_graphblas/_version.py
18+
19+
[coverage:report]
20+
# Regexes for lines to exclude from consideration
21+
exclude_lines =
22+
pragma: no cover
23+
24+
raise AssertionError
25+
raise NotImplementedError
26+
1327
[versioneer]
1428
VCS = git
1529
style = pep440

setup.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from setuptools import setup, find_packages, Extension
22
from glob import glob
3+
34
try:
45
from Cython.Build import cythonize
56
from Cython.Compiler.Options import get_directive_defaults
@@ -10,6 +11,7 @@
1011
import numpy as np
1112
import os
1213
import sys
14+
import versioneer
1315

1416
define_macros = [("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")]
1517

@@ -45,15 +47,15 @@
4547
package_data["suitesparse_graphblas"].append("*.dll")
4648

4749
setup(
48-
name='suitesparse-graphblas',
50+
name="suitesparse-graphblas",
4951
version=versioneer.get_version(),
5052
cmdclass=versioneer.get_cmdclass(),
51-
description='SuiteSparse:GraphBLAS Python bindings.',
53+
description="SuiteSparse:GraphBLAS Python bindings.",
5254
long_description=long_description,
5355
long_description_content_type="text/markdown",
5456
packages=find_packages(),
55-
author='Michel Pelletier, James Kitchen, Erik Welch',
56-
57+
author="Michel Pelletier, James Kitchen, Erik Welch",
58+
5759
url="https://github.com/GraphBLAS/python-suitesparse-graphblas",
5860
ext_modules=ext_modules,
5961
cffi_modules=["suitesparse_graphblas/build.py:ffibuilder"],

suitesparse_graphblas/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
from ._graphblas import ffi, lib
2-
1+
from ._graphblas import ffi, lib # noqa
32
from ._version import get_versions
43

54
__version__ = get_versions()["version"]

0 commit comments

Comments
 (0)