Skip to content

Commit

Permalink
add versioneer
Browse files Browse the repository at this point in the history
  • Loading branch information
michelp committed Sep 2, 2021
1 parent 2f4a8bc commit c83125d
Show file tree
Hide file tree
Showing 14 changed files with 2,908 additions and 73 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ omit =
pygraphblas/demo/*
pygraphblas/build.py
pygraphblas/rdflib.py
pygraphblas/_version.py
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pygraphblas/_version.py export-subst
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include versioneer.py
include pygraphblas/_version.py
257 changes: 195 additions & 62 deletions demo/User-Defined-Types.ipynb

Large diffs are not rendered by default.

Binary file modified docs/imgs/binary_op_A.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/imgs/binary_op_B.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/imgs/select_op_A.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/imgs/unary_op_A.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 10 additions & 6 deletions pygraphblas/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,6 @@
for that edge:
>>> import pygraphblas as gb
>>> gb.get_version()
'5.1.7.0'
>>> I = [0, 0, 1, 1, 2, 3, 3, 4, 5, 6, 6, 6]
>>> J = [1, 3, 4, 6, 5, 0, 2, 5, 2, 2, 3, 4]
>>> V = [True] * len(I)
Expand Down Expand Up @@ -273,12 +271,13 @@ def init(blocking=False):
IMPLEMENTATION_MINOR,
IMPLEMENTATION_SUB,
)
PY_VERSION_SUB = 0
PY_VERSION = IMPLEMENTATION_VERSION + (PY_VERSION_SUB,)
__version__ = ".".join(map(str, PY_VERSION))

from . import _version

def get_version():
__version__ = _version.get_versions()["version"]


def get_version(): # pragma: nocover
"""Return the pygraphblas version."""
return __version__

Expand Down Expand Up @@ -394,3 +393,8 @@ def run_doctests(raise_on_error=False):
doctest.testmod(
mod, optionflags=doctest.ELLIPSIS, raise_on_error=raise_on_error
)


from . import _version

__version__ = _version.get_versions()["version"]
Loading

0 comments on commit c83125d

Please sign in to comment.