mirror of https://github.com/mvt-project/mvt.git
Starting to move declarative information to setup.cfg
This commit is contained in:
parent
7a00e88f1f
commit
f61729deed
|
@ -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():
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -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
|
13
setup.py
13
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=[
|
||||
],
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue