forked from ansible-community/molecule-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
142 lines (133 loc) · 4.02 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
[build-system]
requires = [
"setuptools >= 64.0.0", # required by pyproject+setuptools_scm integration
"setuptools_scm[toml] >= 7.0.5", # required for "no-local-version" scheme
]
build-backend = "setuptools.build_meta"
[project]
# https://peps.python.org/pep-0621/#readme
requires-python = ">=3.9"
dynamic = ["version"]
name = "molecule-plugins"
description = "Molecule Plugins"
readme = "README.md"
authors = [{ "name" = "Sorin Sbarnea", "email" = "[email protected]" }]
maintainers = [{ "name" = "Sorin Sbarnea", "email" = "[email protected]" }]
license = { text = "MIT" }
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS",
"Operating System :: POSIX",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python",
"Topic :: System :: Systems Administration",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing",
"Topic :: Utilities",
]
keywords = ["ansible", "testing", "molecule", "plugin"]
dependencies = [
# molecule plugins are not allowed to mention Ansible as a direct dependency
"molecule >= 6.0.0a1",
]
[project.urls]
homepage = "https://github.com/ansible-community/molecule-plugins"
documentation = "https://molecule.readthedocs.io/"
repository = "https://github.com/ansible-community/molecule-plugins"
changelog = "https://github.com/ansible-community/molecule-plugins/releases"
[project.optional-dependencies]
test = [
"pytest-helpers-namespace >= 2019.1.8",
"molecule[test] >= 6.0.0a1"
]
azure = []
docker = [
# selinux python module is needed as least by ansible-docker modules
# and allows use of isolated (default) virtualenvs. It does not avoid need
# to install the system selinux libraries but it will provide a clear
# message when user has to do that.
'selinux; sys_platform=="linux2"',
'selinux; sys_platform=="linux"',
"docker >= 4.3.1",
"requests" # also required by docker
]
ec2 = []
gce = []
podman = [
]
selinux = [
# selinux python module is needed as least by podman and docker on systems
# that do have selinux enabled and where code is running inside of an
# isolated (default) virtualenv. It does not avoid need to install the
# system selinux libraries but it will provide a clear message when user
# has to do that.
'selinux; sys_platform=="linux2"',
'selinux; sys_platform=="linux"',
]
vagrant = [
"python-vagrant",
]
openstack = [
"openstacksdk >= 1.1.0"
]
[tool.ruff]
ignore = [
"E501", # we use black
# we deliberately ignore these:
"EM102",
# temporary disabled until we either fix them or decide to ignore them:
"A001",
"ANN",
"ARG",
"B006",
"B028",
"BLE",
"C901",
"D",
"DTZ",
"FBT",
"INP",
"ISC",
"N",
"PERF203",
"PGH",
"PLR",
"PT",
"PTH",
"RET",
"S",
# not sure we'll open a bug for every TODO.
"TD003",
"FIX002",
"TRY",
]
select = ["ALL"]
target-version = "py39"
# Same as Black.
line-length = 88
[tool.ruff.flake8-pytest-style]
parametrize-values-type = "tuple"
[tool.ruff.isort]
known-first-party = ["molecule_plugins"]
[project.entry-points."molecule.driver"]
azure = "molecule_plugins.azure.driver:Azure"
containers = "molecule_plugins.containers.driver:Container"
docker = "molecule_plugins.docker.driver:Docker"
ec2 = "molecule_plugins.ec2.driver:EC2"
gce = "molecule_plugins.gce.driver:GCE"
podman = "molecule_plugins.podman.driver:Podman"
vagrant = "molecule_plugins.vagrant.driver:Vagrant"
openstack = "molecule_plugins.openstack.driver:Openstack"
[tool.setuptools_scm]
local_scheme = "no-local-version"
write_to = "src/molecule_plugins/_version.py"