File tree 3 files changed +23
-2
lines changed
3 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 12
12
SetDefaultPickleProperties (PropertyPickleOptions .AllProps )
13
13
14
14
__all__ = [
15
+ "__version__" ,
15
16
"Pipeline" ,
16
17
"ErrorFilter" ,
17
18
"FilterReinserter" ,
18
19
"PostPredictionWrapper" ,
19
20
]
21
+
22
+ __version__ = "0.9.2"
Original file line number Diff line number Diff line change @@ -3,19 +3,19 @@ requires = ["setuptools"]
3
3
build-backend = " setuptools.build_meta"
4
4
5
5
[project ]
6
- dynamic = [" dependencies" , " optional-dependencies" ]
6
+ dynamic = [" dependencies" , " optional-dependencies" , " version " ]
7
7
name = " molpipeline"
8
8
authors = [
9
9
{name = " Christian W. Feldmann" },
10
10
{name = " Jennifer Hemmerich" },
11
11
{name = " Jochen Sieg" }
12
12
]
13
13
description = " Integration of rdkit functionality into sklearn pipelines."
14
- version = " 0.9.2"
15
14
readme = " README.md"
16
15
17
16
[tool .setuptools .dynamic ]
18
17
dependencies = {file = " requirements.txt" }
18
+ version = {attr = " molpipeline.__version__" }
19
19
20
20
[tool .setuptools .dynamic .optional-dependencies ]
21
21
all = {file = [" requirements_chemprop.txt" , " requirements_notebooks.txt" ]}
Original file line number Diff line number Diff line change
1
+ """Test functionality set at package init."""
2
+
3
+ import unittest
4
+
5
+ from molpipeline import __version__
6
+
7
+
8
+ class TestInit (unittest .TestCase ):
9
+
10
+ def test_version (self ):
11
+ """Test that the package has a version."""
12
+ self .assertIsInstance (__version__ , str )
13
+ splitted = __version__ .split ("." )
14
+ self .assertEqual (len (splitted ), 3 )
15
+ major , minor , patch = splitted
16
+ self .assertTrue (major .isdigit ())
17
+ self .assertTrue (minor .isdigit ())
18
+ self .assertTrue (patch .isdigit ())
You can’t perform that action at this time.
0 commit comments