update minimum supported python version to 3.8

This commit is contained in:
Willi Ballenthin
2023-07-05 18:34:41 +02:00
parent 46ff798fae
commit 5d1e26a95e
7 changed files with 10 additions and 9 deletions

View File

@@ -15,7 +15,7 @@ jobs:
- name: Set up Python - name: Set up Python
uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4.5.0 uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4.5.0
with: with:
python-version: '3.7' python-version: '3.8'
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip

View File

@@ -69,7 +69,7 @@ jobs:
matrix: matrix:
os: [ubuntu-20.04, windows-2019, macos-11] os: [ubuntu-20.04, windows-2019, macos-11]
# across all operating systems # across all operating systems
python-version: ["3.7", "3.11"] python-version: ["3.8", "3.11"]
include: include:
# on Ubuntu run these as well # on Ubuntu run these as well
- os: ubuntu-20.04 - os: ubuntu-20.04
@@ -104,7 +104,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
python-version: ["3.7", "3.11"] python-version: ["3.8", "3.11"]
steps: steps:
- name: Checkout capa with submodules - name: Checkout capa with submodules
# do only run if BN_SERIAL is available, have to do this in every step, see https://github.com/orgs/community/discussions/26726#discussioncomment-3253118 # do only run if BN_SERIAL is available, have to do this in every step, see https://github.com/orgs/community/discussions/26726#discussioncomment-3253118

View File

@@ -8,6 +8,7 @@
### Breaking Changes ### Breaking Changes
- Update Metadata type in capa main [#1411](https://github.com/mandiant/capa/issues/1411) [@Aayush-Goel-04](https://github.com/aayush-goel-04) @manasghandat - Update Metadata type in capa main [#1411](https://github.com/mandiant/capa/issues/1411) [@Aayush-Goel-04](https://github.com/aayush-goel-04) @manasghandat
- Python 3.8 is now the minimum supported Python version #1578 @williballenthin
### New Rules (21) ### New Rules (21)

View File

@@ -155,7 +155,7 @@ def log_unsupported_runtime_error():
logger.error("-" * 80) logger.error("-" * 80)
logger.error(" Unsupported runtime or Python interpreter.") logger.error(" Unsupported runtime or Python interpreter.")
logger.error(" ") logger.error(" ")
logger.error(" capa supports running under Python 3.7 and higher.") logger.error(" capa supports running under Python 3.8 and higher.")
logger.error(" ") logger.error(" ")
logger.error( logger.error(
" If you're seeing this message on the command line, please ensure you're running a supported Python version." " If you're seeing this message on the command line, please ensure you're running a supported Python version."

View File

@@ -95,7 +95,7 @@ can update using the `Settings` button.
### Requirements ### Requirements
capa explorer supports Python versions >= 3.7.x and IDA Pro versions >= 7.4. The following IDA Pro versions have been tested: capa explorer supports Python versions >= 3.8.x and IDA Pro versions >= 7.4. The following IDA Pro versions have been tested:
* IDA 7.4 * IDA 7.4
* IDA 7.5 * IDA 7.5
@@ -105,7 +105,7 @@ capa explorer supports Python versions >= 3.7.x and IDA Pro versions >= 7.4. The
* IDA 8.1 * IDA 8.1
* IDA 8.2 * IDA 8.2
capa explorer is however limited to the Python versions supported by your IDA installation (which may not include all Python versions >= 3.7.x). capa explorer is however limited to the Python versions supported by your IDA installation (which may not include all Python versions >= 3.8.x).
If you encounter issues with your specific setup, please open a new [Issue](https://github.com/mandiant/capa/issues). If you encounter issues with your specific setup, please open a new [Issue](https://github.com/mandiant/capa/issues).

View File

@@ -1072,8 +1072,8 @@ def handle_common_args(args):
def main(argv=None): def main(argv=None):
if sys.version_info < (3, 7): if sys.version_info < (3, 8):
raise UnsupportedRuntimeError("This version of capa can only be used with Python 3.7+") raise UnsupportedRuntimeError("This version of capa can only be used with Python 3.8+")
if argv is None: if argv is None:
argv = sys.argv[1:] argv = sys.argv[1:]

View File

@@ -107,5 +107,5 @@ setuptools.setup(
"Programming Language :: Python :: 3", "Programming Language :: Python :: 3",
"Topic :: Security", "Topic :: Security",
], ],
python_requires=">=3.7", python_requires=">=3.8",
) )