diff --git a/mvt/common/logo.py b/mvt/common/logo.py index 5fa52ea..d24f4f5 100644 --- a/mvt/common/logo.py +++ b/mvt/common/logo.py @@ -5,7 +5,8 @@ from rich import print -from .version import MVT_VERSION, check_for_updates +from .version import MVT_VERSION +from .updates import check_for_updates def logo(): diff --git a/mvt/common/updates.py b/mvt/common/updates.py new file mode 100644 index 0000000..c85d8bd --- /dev/null +++ b/mvt/common/updates.py @@ -0,0 +1,18 @@ +# Mobile Verification Toolkit (MVT) +# Copyright (c) 2021-2022 The MVT Project Authors. +# Use of this software is governed by the MVT License 1.1 that can be found at +# https://license.mvt.re/1.1/ + +import requests +from packaging import version + + +def check_for_updates(): + res = requests.get("https://pypi.org/pypi/mvt/json") + data = res.json() + latest_version = data.get("info", {}).get("version", "") + + if version.parse(latest_version) > version.parse(MVT_VERSION): + return latest_version + + return None diff --git a/mvt/common/version.py b/mvt/common/version.py index 4ab3a89..9a4b915 100644 --- a/mvt/common/version.py +++ b/mvt/common/version.py @@ -3,18 +3,4 @@ # Use of this software is governed by the MVT License 1.1 that can be found at # https://license.mvt.re/1.1/ -import requests -from packaging import version - MVT_VERSION = "1.5.4" - - -def check_for_updates(): - res = requests.get("https://pypi.org/pypi/mvt/json") - data = res.json() - latest_version = data.get("info", {}).get("version", "") - - if version.parse(latest_version) > version.parse(MVT_VERSION): - return latest_version - - return None diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..22482d1 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,18 @@ +[metadata] +name = mvt +author = Claudio Guarnieri +author_email = nex@nex.sx +description = Mobile Verification Toolkit +url = https://github.com/mvt-project/mvt +keywords = security, mobile, forensics, malware +license = MVT v1.1 +classifiers = + Development Status :: 5 - Production/Stable + Intended Audience :: Information Technology + Operating System :: OS Independent + Programming Language :: Python + +[options.entry_points] +console_scripts = + mvt-ios = mvt.ios:cli + mvt-android = mvt.android:cli \ No newline at end of file diff --git a/setup.py b/setup.py index d3bf52f..bcb5304 100755 --- a/setup.py +++ b/setup.py @@ -46,24 +46,11 @@ def get_package_data(package): setup( - name="mvt", version=MVT_VERSION, - description="Mobile Verification Toolkit", long_description=long_description, long_description_content_type="text/markdown", - url="https://github.com/mvt-project/mvt", - entry_points={ - "console_scripts": [ - "mvt-ios = mvt.ios:cli", - "mvt-android = mvt.android:cli", - ], - }, install_requires=requires, packages=find_packages(), package_data=get_package_data("mvt"), include_package_data=True, - keywords="security mobile forensics malware", - license="MVT v1.1", - classifiers=[ - ], )