Skip to content

Commit

Permalink
Removed end-of-life Python 3.7 support (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz committed Feb 20, 2024
1 parent 5cf2cf9 commit d5b2b03
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/test_tox.yml
Expand Up @@ -14,8 +14,6 @@ jobs:
strategy:
matrix:
include:
- python-version: '3.7'
toxenv: 'py37,wheel'
- python-version: '3.8'
toxenv: 'py38,wheel'
- python-version: '3.9'
Expand Down
1 change: 1 addition & 0 deletions docs/conf.py
Expand Up @@ -52,6 +52,7 @@
# docstrings.
napoleon_google_docstring = True
napoleon_numpy_docstring = False
napoleon_include_init_with_doc = True
napoleon_include_private_with_doc = False
napoleon_include_special_with_doc = True

Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
@@ -1,3 +1,10 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[tool.docformatter]
black = false
non-cap = ["dfDateTime", "dfImageTools", "dfVFS", "dfWinReg", "dtFabric", "iMessage", "iOS", "iPod", "mDNS"]
non-strict = false
wrap-summaries = 80
wrap-descriptions = 80
4 changes: 2 additions & 2 deletions setup.cfg
@@ -1,6 +1,6 @@
[metadata]
name = artifactsrc
version = 20240112
version = 20240220
description = Digital Forensics Artifact knowledge base
long_description = Documentation accompanying the Digital Forensics Artifact Repository.
long_description_content_type = text/plain
Expand All @@ -22,7 +22,7 @@ install_requires = file:requirements.txt
package_dir =
artifactsrc = artifactsrc
packages = find:
python_requires = >=3.7
python_requires = >=3.8
scripts =
tools/check_artifacts.py
tools/export.py
Expand Down
15 changes: 13 additions & 2 deletions tox.ini
@@ -1,5 +1,5 @@
[tox]
envlist = py3{7,8,9,10,11,12},coverage,docs,lint,wheel
envlist = py3{8,9,10,11,12},coverage,docformatter,docs,lint,wheel

[testenv]
allowlist_externals = ./run_tests.py
Expand All @@ -19,12 +19,19 @@ deps =
setuptools >= 65
wheel
commands =
py3{7,8,9,10,11,12}: ./run_tests.py
py3{8,9,10,11,12}: ./run_tests.py
coverage: coverage erase
coverage: coverage run --source=artifactsrc --omit="*_test*,*__init__*,*test_lib*" run_tests.py
coverage: coverage xml
wheel: python -m build --no-isolation --wheel

[testenv:docformatter]
usedevelop = True
deps =
docformatter
commands =
docformatter --in-place --recursive artifactsrc tests

[testenv:docs]
usedevelop = True
deps =
Expand All @@ -45,10 +52,14 @@ setenv =
deps =
-rrequirements.txt
-rtest_requirements.txt
docformatter
pylint >= 3.0.0, < 3.1.0
setuptools
yamllint >= 1.26.0
commands =
docformatter --version
pylint --version
yamllint -v
docformatter --check --diff --recursive artifactsrc setup.py tests tools
pylint --rcfile=.pylintrc artifactsrc setup.py tests tools
yamllint -c .yamllint.yaml artifactsrc artifactsrc/data

0 comments on commit d5b2b03

Please sign in to comment.