Skip to content

Commit

Permalink
Merge pull request #2795 from mitre/clenk/drop-py37
Browse files Browse the repository at this point in the history
Drop Python 3.7 support
  • Loading branch information
elegantmoose committed Aug 1, 2023
2 parents 304bc46 + f3e28ff commit 6cc0c39
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 16 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/quality.yml
Expand Up @@ -21,8 +21,6 @@ jobs:
fail-fast: false
matrix:
include:
- python-version: 3.7
toxenv: py37,style,coverage-ci
- python-version: 3.8
toxenv: py38,style,coverage-ci
- python-version: 3.9
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/security.yml
Expand Up @@ -12,14 +12,14 @@ jobs:
fail-fast: false
matrix:
include:
- python-version: 3.7
toxenv: safety
- python-version: 3.8
toxenv: safety
- python-version: 3.9
toxenv: safety
- python-version: 3.10.9
toxenv: safety
- python-version: 3.11
toxenv: safety

steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -55,7 +55,7 @@ These plugins are ready to use but are not included by default and are not maint
These requirements are for the computer running the core framework:

* Any Linux or MacOS
* Python 3.7+ (with Pip3)
* Python 3.8+ (with Pip3)
* Recommended hardware to run on is 8GB+ RAM and 2+ CPUs
* Recommended: GoLang 1.17+ to dynamically compile GoLang-based agents.

Expand Down
4 changes: 2 additions & 2 deletions conf/default.yml
Expand Up @@ -50,10 +50,10 @@ requirements:
attr: version
module: sys
type: python_module
version: 3.7.0
version: 3.8.0
users:
blue:
blue: admin
red:
admin: admin
red: admin
red: admin
6 changes: 2 additions & 4 deletions requirements.txt
Expand Up @@ -5,8 +5,7 @@ aiohttp-security==0.4.0
aiohttp-apispec==2.2.3
jinja2==3.0.3
pyyaml>=5.1
cryptography>=3.2,<37.0.0; python_version <= '3.7'
cryptography>=3.2; python_version > '3.7'
cryptography>=3.2
websockets>=10.3
Sphinx==5.1.1
docutils==0.16 # Broken bullet lists in sphinx_rtd_theme https://github.com/readthedocs/sphinx_rtd_theme/issues/1115
Expand All @@ -24,5 +23,4 @@ svglib==1.0.1 # debrief
Markdown==3.3.3 # training
dnspython==2.1.0
asyncssh==2.11.0
aioftp~=0.20.0; python_version >= '3.7'
aioftp==0.16.1; python_version < '3.7'
aioftp~=0.20.0
2 changes: 1 addition & 1 deletion sonar-project.properties
Expand Up @@ -11,7 +11,7 @@ sonar.sources=./app
# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8

sonar.python.version=3.7,3.8,3.9,3.10
sonar.python.version=3.8,3.9,3.10,3.11
sonar.python.coverage.reportPaths=coverage.xml

# Make an exception to Link's constructor, since it requires a refactor to pass
Expand Down
2 changes: 1 addition & 1 deletion tests/web_server/test_core_endpoints.py
Expand Up @@ -122,7 +122,7 @@ async def test_command_overwrite_failure(aiohttp_client, authorized_cookies):
python=dict(attr='version',
module='sys',
type='python_module',
version='3.7.0'))))
version='3.11.0'))))

assert resp.status == HTTPStatus.OK
config_dict = await resp.json()
Expand Down
5 changes: 2 additions & 3 deletions tox.ini
Expand Up @@ -6,7 +6,7 @@
[tox]
skipsdist = True
envlist =
py{37,38,39,310,311}
py{38,39,310,311}
style
coverage
safety
Expand All @@ -24,8 +24,7 @@ deps =
pytest-aiohttp
coverage
commands =
py37: coverage run -p -m pytest --tb=short -Werror --asyncio-mode=auto tests
py{38,39,310,311}: coverage run -p -m pytest --tb=short --asyncio-mode=auto tests
coverage run -p -m pytest --tb=short --asyncio-mode=auto tests

[testenv:style]
deps = pre-commit
Expand Down

0 comments on commit 6cc0c39

Please sign in to comment.