-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
37 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
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 +1,25 @@ | ||
__version__ = "0.7.16" | ||
|
||
|
||
import rdkit | ||
import packaging.version | ||
|
||
|
||
CURRENT_RDKIT_VERSION = rdkit.__version__ | ||
CURRENT_RDKIT_VERSION_OBJ = packaging.version.parse(CURRENT_RDKIT_VERSION) | ||
|
||
|
||
def is_lower_than_current_rdkit_version(rdkit_version: str): | ||
return CURRENT_RDKIT_VERSION_OBJ < packaging.version.parse(rdkit_version) | ||
|
||
|
||
def is_greater_than_current_rdkit_version(rdkit_version: str): | ||
return CURRENT_RDKIT_VERSION_OBJ > packaging.version.parse(rdkit_version) | ||
|
||
|
||
def is_lower_eq_than_current_rdkit_version(rdkit_version: str): | ||
return CURRENT_RDKIT_VERSION_OBJ <= packaging.version.parse(rdkit_version) | ||
|
||
|
||
def is_greater_eq_than_current_rdkit_version(rdkit_version: str): | ||
return CURRENT_RDKIT_VERSION_OBJ >= packaging.version.parse(rdkit_version) |
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