|
4 | 4 |
|
5 | 5 | import setuptools |
6 | 6 |
|
7 | | -from volatility3.framework import constants |
8 | 7 |
|
9 | | -with open("README.md", "r", encoding="utf-8") as fh: |
10 | | - long_description = fh.read() |
11 | | - |
12 | | - |
13 | | -def get_install_requires(): |
| 8 | +def get_requires(filename): |
14 | 9 | requirements = [] |
15 | | - with open("requirements-minimal.txt", "r", encoding="utf-8") as fh: |
| 10 | + with open(filename, "r", encoding="utf-8") as fh: |
16 | 11 | for line in fh.readlines(): |
17 | 12 | stripped_line = line.strip() |
18 | | - if stripped_line == "" or stripped_line.startswith("#"): |
| 13 | + if stripped_line == "" or stripped_line.startswith(("#", "-r")): |
19 | 14 | continue |
20 | 15 | requirements.append(stripped_line) |
21 | 16 | return requirements |
22 | 17 |
|
23 | 18 |
|
24 | 19 | setuptools.setup( |
25 | | - name="volatility3", |
26 | | - description="Memory forensics framework", |
27 | | - version=constants.PACKAGE_VERSION, |
28 | | - license="VSL", |
29 | | - keywords="volatility memory forensics framework windows linux volshell", |
30 | | - author="Volatility Foundation", |
31 | | - long_description=long_description, |
32 | | - long_description_content_type="text/markdown", |
33 | | - |
34 | | - url="https://github.com/volatilityfoundation/volatility3/", |
35 | | - project_urls={ |
36 | | - "Bug Tracker": "https://github.com/volatilityfoundation/volatility3/issues", |
37 | | - "Documentation": "https://volatility3.readthedocs.io/", |
38 | | - "Source Code": "https://github.com/volatilityfoundation/volatility3", |
39 | | - }, |
40 | | - packages=setuptools.find_namespace_packages( |
41 | | - include=["volatility3", "volatility3.*"] |
42 | | - ), |
43 | | - package_dir={"volatility3": "volatility3"}, |
44 | | - python_requires=">=3.7.0", |
45 | | - include_package_data=True, |
46 | | - entry_points={ |
47 | | - "console_scripts": [ |
48 | | - "vol = volatility3.cli:main", |
49 | | - "volshell = volatility3.cli.volshell:main", |
50 | | - ], |
| 20 | + extras_require={ |
| 21 | + "dev": get_requires("requirements-dev.txt"), |
| 22 | + "full": get_requires("requirements.txt"), |
51 | 23 | }, |
52 | | - install_requires=get_install_requires(), |
53 | 24 | ) |
0 commit comments