Skip to content

Commit

Permalink
Merge pull request #45 from skirpichev/add-version
Browse files Browse the repository at this point in the history
Add __version__ variable for module
  • Loading branch information
hbarthels committed Dec 3, 2018
2 parents dcd4e70 + f844908 commit 2b6ae39
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions matchpy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# -*- coding: utf-8 -*-
"""Contains all the necessary classes and functions for pattern matching."""

import pkg_resources

# pylint: disable=wildcard-import
from . import expressions
from . import functions
Expand All @@ -13,3 +15,5 @@
from .matching import *

__all__ = expressions.__all__ + functions.__all__ + utils.__all__ + matching.__all__

__version__ = pkg_resources.get_distribution(__name__).version
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ project_urls = Source = https://github.com/HPAC/matchpy
Documentation = https://matchpy.readthedocs.io/

[options]
use_scm_version = True
packages = find:
zip_safe = True
test_suite = tests
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
import setuptools


setuptools.setup()
setuptools.setup(use_scm_version=True)

0 comments on commit 2b6ae39

Please sign in to comment.