Skip to content

Commit fa255a5

Browse files
authored
Update pyproject.toml license settings and minimum python version (#39)
1 parent f59d1d9 commit fa255a5

2 files changed

Lines changed: 33 additions & 18 deletions

File tree

pyproject.toml

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
[build-system]
2-
requires = ["setuptools>=65.5.0", "setuptools_scm[toml]>=6.4.0"]
2+
requires = ["setuptools>=77.0.0", "setuptools_scm[toml]>=6.4.0"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "dissect.etl"
77
description = "A Dissect module implementing a parser for Event Trace Log (ETL) files, used by the Windows operating system to log kernel events"
88
readme = "README.md"
9-
requires-python = "~=3.9"
10-
license.text = "Affero General Public License v3"
9+
requires-python = ">=3.10"
10+
license = "AGPL-3.0-or-later"
11+
license-files = ["LICENSE", "COPYRIGHT"]
1112
authors = [
1213
{name = "Dissect Team", email = "dissect@fox-it.com"}
1314
]
@@ -16,7 +17,6 @@ classifiers = [
1617
"Environment :: Console",
1718
"Intended Audience :: Developers",
1819
"Intended Audience :: Information Technology",
19-
"License :: OSI Approved",
2020
"Operating System :: OS Independent",
2121
"Programming Language :: Python :: 3",
2222
"Topic :: Internet :: Log Analysis",
@@ -42,9 +42,29 @@ dev = [
4242
"dissect.util>=3.0.dev,<4.0.dev"
4343
]
4444

45+
[dependency-groups]
46+
test = [
47+
"pytest",
48+
]
49+
lint = [
50+
"ruff==0.13.1",
51+
"vermin",
52+
]
53+
build = [
54+
"build",
55+
]
56+
debug = [
57+
"ipdb",
58+
]
59+
dev = [
60+
{include-group = "test"},
61+
{include-group = "lint"},
62+
{include-group = "debug"},
63+
]
64+
4565
[tool.ruff]
4666
line-length = 120
47-
required-version = ">=0.9.0"
67+
required-version = ">=0.13.1"
4868

4969
[tool.ruff.format]
5070
docstring-code-format = true
@@ -93,9 +113,6 @@ ignore = ["E203", "B904", "UP024", "ANN002", "ANN003", "ANN204", "ANN401", "SIM1
93113
known-first-party = ["dissect.etl"]
94114
known-third-party = ["dissect"]
95115

96-
[tool.setuptools]
97-
license-files = ["LICENSE", "COPYRIGHT"]
98-
99116
[tool.setuptools.packages.find]
100117
include = ["dissect.*"]
101118

tox.ini

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ envlist = lint, py3, pypy3
44
# requires if they are not available on the host system. This requires the
55
# locally installed tox to have a minimum version 3.3.0. This means the names
66
# of the configuration options are still according to the tox 3.x syntax.
7-
minversion = 4.4.3
7+
minversion = 4.27.0
88
# This version of virtualenv will install setuptools version 68.2.2 and pip
99
# 23.3.1. These versions fully support python projects defined only through a
1010
# pyproject.toml file (PEP-517/PEP-518/PEP-621). This pip version also support
@@ -14,36 +14,34 @@ requires = virtualenv>=20.24.6
1414
[testenv]
1515
extras = dev
1616
deps =
17-
pytest
1817
pytest-cov
1918
coverage
19+
dependency_groups = test
2020
commands =
2121
pytest --basetemp="{envtmpdir}" {posargs:--color=yes --cov=dissect --cov-report=term-missing -v tests}
2222
coverage report
2323
coverage xml
2424

2525
[testenv:build]
2626
package = skip
27-
deps =
28-
build
27+
dependency_groups = build
2928
commands =
3029
pyproject-build
3130

3231
[testenv:fix]
3332
package = skip
34-
deps =
35-
ruff==0.9.2
33+
dependency_groups = lint
3634
commands =
35+
ruff check --fix dissect tests
3736
ruff format dissect tests
3837

3938
[testenv:lint]
4039
package = skip
41-
deps =
42-
ruff==0.9.2
43-
vermin
40+
dependency_groups = lint
4441
commands =
4542
ruff check dissect tests
46-
vermin -t=3.9- --no-tips --lint dissect tests
43+
ruff format --check dissect tests
44+
vermin -t=3.10- --no-tips --lint dissect tests
4745

4846
[flake8]
4947
max-line-length = 120

0 commit comments

Comments
 (0)