-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #11: add a __version__ constant
- Loading branch information
1 parent
4f64baa
commit 9883380
Showing
4 changed files
with
21 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
from .column import Column | ||
from .validation_warning import ValidationWarning | ||
from .schema import Schema | ||
|
||
__version__ = '0.3.3' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import unittest | ||
from packaging import version | ||
import pandas_schema | ||
|
||
|
||
class Version(unittest.TestCase): | ||
def test_version(self): | ||
""" | ||
Check that we have a __version__ defined, and that it's at least 0.3.0 | ||
""" | ||
self.assertIsNotNone(pandas_schema.__version__) | ||
parsed = version.parse(pandas_schema.__version__) | ||
self.assertGreaterEqual(parsed, version.Version('0.3.0')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters