Skip to content

Commit

Permalink
Introduce versioneer for versioning
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Goetz <[email protected]>
  • Loading branch information
petergtz committed Jul 28, 2022
1 parent fb8fde7 commit 32d2b5b
Show file tree
Hide file tree
Showing 9 changed files with 2,816 additions and 18 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dowhy/_version.py export-subst
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ include LICENSE
include dowhy/VERSION
recursive-include docs *
recursive-include tests *.py
include versioneer.py
include dowhy/_version.py
7 changes: 1 addition & 6 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,15 @@
#
import os
import sys
sys.path.insert(0, os.path.abspath("../../"))

sys.path.insert(0, os.path.abspath("../../"))

# -- Project information -----------------------------------------------------

project = 'DoWhy | An end-to-end library for causal inference'
copyright = '2022, PyWhy contributors'
author = 'Amit Sharma, Emre Kiciman'

# The short X.Y version
version = '0.8'
# The full version, including alpha/beta/rc tags
release = ''


# -- General configuration ---------------------------------------------------

Expand Down
1 change: 0 additions & 1 deletion dowhy/VERSION

This file was deleted.

7 changes: 2 additions & 5 deletions dowhy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import logging
from os import path
from dowhy.causal_model import CausalModel
from . import _version

logging.getLogger(__name__).addHandler(logging.NullHandler())

here = path.abspath(path.dirname(__file__))
# Loading version number
with open(path.join(here, 'VERSION')) as version_file:
__version__ = version_file.read().strip()
__version__ = _version.get_versions()["version"]
Loading

0 comments on commit 32d2b5b

Please sign in to comment.