mirror of
https://github.com/laramies/theHarvester.git
synced 2025-02-24 06:22:57 +08:00
Bump theHavester required python version to be 3.10+
This commit is contained in:
parent
a987e6f961
commit
46760915c3
3 changed files with 7 additions and 7 deletions
2
.github/workflows/theHarvester.yml
vendored
2
.github/workflows/theHarvester.yml
vendored
|
@ -17,7 +17,7 @@ jobs:
|
|||
max-parallel: 8
|
||||
matrix:
|
||||
os: [ ubuntu-latest, macos-latest ]
|
||||
python-version: [ 3.8, 3.9, 3.10.0 ]
|
||||
python-version: [ 3.10.0, 3.11.0 ]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
|
|
@ -4,8 +4,8 @@ import sys
|
|||
import asyncio
|
||||
from theHarvester import __main__
|
||||
|
||||
if sys.version_info.major < 3 or sys.version_info.minor < 7:
|
||||
print('\033[93m[!] Make sure you have Python 3.7+ installed, quitting.\n\n \033[0m')
|
||||
if sys.version_info.major < 3 or sys.version_info.minor < 10:
|
||||
print('\033[93m[!] Make sure you have Python 3.10+ installed, quitting.\n\n \033[0m')
|
||||
sys.exit(1)
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
@ -23,6 +23,6 @@ if __name__ == '__main__':
|
|||
if "linux" in platform:
|
||||
import aiomultiprocess
|
||||
|
||||
# As we are not using Windows we can change the spawn method to fork for greater performance
|
||||
# As we are not using Windows, we can change the spawn method to fork for greater performance
|
||||
aiomultiprocess.set_context("fork")
|
||||
asyncio.run(__main__.entry_point())
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
import asyncio
|
||||
from theHarvester import __main__
|
||||
|
||||
if sys.version_info.major < 3 or sys.version_info.minor < 7:
|
||||
print('\033[93m[!] Make sure you have Python 3.7+ installed, quitting.\n\n \033[0m')
|
||||
if sys.version_info.major < 3 or sys.version_info.minor < 10:
|
||||
print('\033[93m[!] Make sure you have Python 3.10+ installed, quitting.\n\n \033[0m')
|
||||
sys.exit(1)
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
@ -23,6 +23,6 @@
|
|||
if "linux" in platform:
|
||||
import aiomultiprocess
|
||||
|
||||
# As we are not using Windows we can change the spawn method to fork for greater performance
|
||||
# As we are not using Windows, we can change the spawn method to fork for greater performance
|
||||
aiomultiprocess.set_context("fork")
|
||||
asyncio.run(__main__.entry_point())
|
||||
|
|
Loading…
Reference in a new issue