File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11"""Version information."""
2+ import pkg_resources
23
34# Information in this file is now superseded by the pyproject.toml file.
45
56# The following line *must* be the last in the module, exactly as formatted:
6- __version__ = "2.0.0b1"
7+ __version__ = pkg_resources . get_distribution ( 'python-lambda-4dn' ). version
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " python-lambda-4dn"
3- version = " 2.0.0b1 "
3+ version = " 2.0.0b2 "
44description = " A forked version of python-lambda for 4DN-DCIC use in packaging and deploying lambda functions."
55authors = [" 4DN-DCIC Team <support@4dnucleome.org>" ]
66license = " MIT"
Original file line number Diff line number Diff line change @@ -34,13 +34,10 @@ class TestPythonLambdaUnit():
3434
3535 pytestmark = [pytest .mark .unit ]
3636
37- # No more _version.py file, so no more version to check.
38- # Anyone who wants the version can get it from pkg_resources a different way. -kmp 12-Mar-2020
39- #
40- # def test_get_version(self):
41- # """ Because coverage, thats why! """
42- # from aws_lambda._version import __version__
43- # assert len(__version__.split('.')) == 3 # should be x.x.x
37+ def test_get_version (self ):
38+ """ Because coverage, thats why! """
39+ from aws_lambda ._version import __version__
40+ assert len (__version__ .split ('.' )) == 3 # should be x.x.x
4441
4542 def test_get_role_name (self ):
4643 """ Basic test that validates our role_name format """
You can’t perform that action at this time.
0 commit comments