Implement Version class for third-party dependency version checking. #123
Labels
area: build
Issues related to builds, makefiles, installs, etc
area: third-party
Issues related to Issues related to dependencies and third-part and third-party package integrations
type: feature
Issues that include feature request or feature idea
Description
In (#122) the
_install
classes were introduced including theVersioner
class which holds the versions for many third-party dependencies in SmartSim, including SmartRedis.Currently each version is held as a string i.e. "1.2.3", but this is inflexible and can break (see #121). We need operators (> , <, >=) that can handle special versions of these dependencies (i.e 1.2.3.post).
Justification
Provide build classes with better methods to check versions and hence increase the stability of the build.
Implementation Strategy
pkg_resources.packging.version.Version
to convert listed versions inbuildenv.py/Versioner
to aSSVersion
class similar to torch.- So RedisAI version would look like
setup.py
(redis > 6.0)smartsim/tf/__init__.py
config.py
and enforce contraints (redis > 6.0)The text was updated successfully, but these errors were encountered: