Skip to content

Commit

Permalink
Add a version number. (#8)
Browse files Browse the repository at this point in the history
* Add a version number.

* Add a version number.

* Remove git diff marker.
  • Loading branch information
drvinceknight authored and Nikoleta-v3 committed Jan 25, 2019
1 parent 863dd17 commit 8370d32
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@

requirements = ["black>=18.9b0"]

exec(open("src/blackbook/version.py", "r").read())

setup(
name="blackbook",
version="0.0.1",
version=__version__,
install_requires=requirements,
author="Nikoleta Glynatsi, Vince Knight, Henry Wilde",
author_email=("[email protected]"),
Expand Down
3 changes: 1 addition & 2 deletions src/blackbook/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
""""""

from typing import Iterator

import re
Expand All @@ -8,6 +6,7 @@

import black

from .version import __version__

def gen_notebook_files_in_dir(path: pathlib.Path) -> Iterator[pathlib.Path]:

Expand Down
1 change: 1 addition & 0 deletions src/blackbook/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "0.0.1"
4 changes: 4 additions & 0 deletions tests/test_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import blackbook

def test_version_is_string():
assert type(blackbook.__version__) is str

0 comments on commit 8370d32

Please sign in to comment.