add full and dev extras

This commit is contained in:
Branch Vincent
2024-06-01 16:16:38 -07:00
parent 771ed10b44
commit 76c8067b21
2 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ capstone>=3.0.5
pycryptodome
# This is required for memory acquisition via leechcore/pcileech.
leechcorepyc>=2.4.0
leechcorepyc>=2.4.0; sys_platform != 'darwin'
# This is required for memory analysis on a Amazon/MinIO S3 and Google Cloud object storage
gcsfs>=2023.1.0
+8 -4
View File
@@ -10,12 +10,12 @@ with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
def get_install_requires():
def get_requires(filename):
requirements = []
with open("requirements-minimal.txt", "r", encoding="utf-8") as fh:
with open(filename, "r", encoding="utf-8") as fh:
for line in fh.readlines():
stripped_line = line.strip()
if stripped_line == "" or stripped_line.startswith("#"):
if stripped_line == "" or stripped_line.startswith(("#", "-r")):
continue
requirements.append(stripped_line)
return requirements
@@ -49,5 +49,9 @@ setuptools.setup(
"volshell = volatility3.cli.volshell:main",
],
},
install_requires=get_install_requires(),
install_requires=get_requires("requirements-minimal.txt"),
extras_require={
"dev": get_requires("requirements-dev.txt"),
"full": get_requires("requirements.txt"),
},
)