mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-22 09:34:52 +02:00
Update versioning to support appropriate version checks.
This commit is contained in:
@@ -76,7 +76,7 @@ class CommandLine(interfaces.plugins.FileConsumerInterface):
|
||||
def run(self):
|
||||
"""Executes the command line module, taking the system arguments,
|
||||
determining the plugin to run and then running it."""
|
||||
sys.stdout.write("Volatility Framework {}\n".format(constants.PACKAGE_VERSION))
|
||||
sys.stdout.write("Volatility 3 Framework {}\n".format(constants.PACKAGE_VERSION))
|
||||
|
||||
volatility.framework.require_interface_version(0, 0, 0)
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ class VolShell(cli.CommandLine):
|
||||
def run(self):
|
||||
"""Executes the command line module, taking the system arguments,
|
||||
determining the plugin to run and then running it."""
|
||||
sys.stdout.write("Volshell (Volatility Framework) {}\n".format(constants.PACKAGE_VERSION))
|
||||
sys.stdout.write("Volshell (Volatility 3 Framework) {}\n".format(constants.PACKAGE_VERSION))
|
||||
|
||||
framework.require_interface_version(0, 0, 0)
|
||||
|
||||
|
||||
@@ -21,15 +21,10 @@ from volatility.framework import constants, interfaces
|
||||
# MINOR version when you add functionality in a backwards compatible manner, and
|
||||
# PATCH version when you make backwards compatible bug fixes.
|
||||
|
||||
# We use the SemVer 2.0.0 versioning scheme
|
||||
MAJOR = 0 # Number of releases of the library with a breaking change
|
||||
MINOR = 0 # Number of changes that only add to the interface
|
||||
PATCH = 0 # Number of changes that do not change the interface
|
||||
|
||||
|
||||
def interface_version():
|
||||
"""Provides the so version number of the library."""
|
||||
return MAJOR, MINOR, PATCH
|
||||
return constants.VERSION_MAJOR, constants.VERSION_MINOR, constants.VERSION_PATCH
|
||||
|
||||
|
||||
vollog = logging.getLogger(__name__)
|
||||
|
||||
@@ -34,7 +34,13 @@ if hasattr(sys, 'frozen') and sys.frozen:
|
||||
BANG = "!"
|
||||
"""Constant used to delimit table names from type names when referring to a symbol"""
|
||||
|
||||
PACKAGE_VERSION = "3.0.0_alpha1"
|
||||
# We use the SemVer 2.0.0 versioning scheme
|
||||
VERSION_MAJOR = 0 # Number of releases of the library with a breaking change
|
||||
VERSION_MINOR = 0 # Number of changes that only add to the interface
|
||||
VERSION_PATCH = 0 # Number of changes that do not change the interface
|
||||
VERSION_SUFFIX = "-beta.1"
|
||||
|
||||
PACKAGE_VERSION = ".".join([str(x) for x in [VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH]]) + VERSION_SUFFIX
|
||||
"""The canonical version of the volatility package"""
|
||||
|
||||
AUTOMAGIC_CONFIG_PATH = 'automagic'
|
||||
|
||||
Reference in New Issue
Block a user