@@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta"
99[project ]
1010# https://peps.python.org/pep-0621/#readme
1111requires-python = " >=3.8"
12- dynamic = [" version" ]
12+ dynamic = [" version" , " dependencies " , " optional-dependencies " ]
1313name = " ansible-lint"
1414description = " Checks playbooks for practices and behavior that could potentially be improved"
1515readme = " README.md"
@@ -39,57 +39,13 @@ classifiers = [
3939 " Topic :: Utilities" ,
4040]
4141keywords = [" ansible" , " lint" ]
42- dependencies = [
43- # Special order section for helping pip:
44- " will-not-work-on-windows-try-from-wsl-instead; platform_system=='Windows'" ,
45- " ansible-core>=2.12.0,<2.14.0; python_version<'3.9'" , # GPLv3
46- " ansible-core>=2.12.0; python_version>='3.9'" , # GPLv3
47- " ansible-compat>=2.2.7" , # GPLv3
48- # alphabetically sorted:
49- " black>=22.8.0" , # MIT
50- " filelock>=3.3.0" , # The Unlicense
51- " jsonschema>=4.10.0" , # MIT, version needed for improved errors
52- " packaging>=21.3" , # Apache-2.0,BSD-2-Clause
53- " pyyaml>=5.4.1" , # MIT (centos 9 has 5.3.1)
54- " rich>=12.0.0" , # MIT
55- " ruamel.yaml>=0.17.21,<0.18" , # MIT, next version is planned to have breaking changes
56- " yamllint >= 1.26.3" , # GPLv3
57- " wcmatch>=8.1.2" , # MIT
58-
59- ]
6042
6143[project .urls ]
6244homepage = " https://github.com/ansible/ansible-lint"
6345documentation = " https://ansible-lint.readthedocs.io/"
6446repository = " https://github.com/ansible/ansible-lint"
6547changelog = " https://github.com/ansible/ansible-lint/releases"
6648
67- [project .optional-dependencies ]
68- docs = [
69- " myst-parser >= 0.16.1" ,
70- " pipdeptree >= 2.2.1" ,
71- " sphinx >= 4.4.0" ,
72- " sphinx-ansible-theme >= 0.9.1" ,
73- " sphinx-rtd-theme >= 1.0.0, < 2.0.0" , # 1.0.0 broke rendering
74- " sphinxcontrib-apidoc >= 0.3.0" ,
75- " sphinxcontrib-programoutput2 >= 2.0a1" ,
76- ]
77- test = [
78- " coverage-enable-subprocess" , # see https://github.com/nedbat/coveragepy/issues/1341#issuecomment-1228942657
79- " coverage[toml] >= 6.4.4" ,
80- " pytest >= 7.2.0" ,
81- " pytest-mock" ,
82- " pytest-plus >= 0.2" , # for PYTEST_REQPASS
83- " pytest-xdist >= 2.1.0" ,
84- " psutil" , # soft-dep of pytest-xdist
85- " black" , # IDE support
86- " mypy" , # IDE support
87- " pylint" , # IDE support
88- " flake8" , # IDE support
89- " flake8-future-annotations" , # IDE support
90-
91- ]
92-
9349[project .scripts ]
9450ansible-lint = " ansiblelint.__main__:_run_cli_entrypoint"
9551
@@ -245,6 +201,12 @@ markers = [
245201 " formatting_fixtures: Test that regenerates and tests formatting fixtures (requires prettier on PATH)"
246202]
247203
204+ [tool .setuptools .dynamic ]
205+ optional-dependencies.docs = { file = [" .config/requirements-docs.txt" ] }
206+ optional-dependencies.test = { file = [" .config/requirements-test.txt" ] }
207+ optional-dependencies.lock = { file = [" .config/requirements-lock.txt" ] }
208+ dependencies = { file = [" .config/requirements.in" ] }
209+
248210[tool .setuptools_scm ]
249211local_scheme = " no-local-version"
250212write_to = " src/ansiblelint/_version.py"
0 commit comments