happy-kitchen-89482
10/02/2019, 11:51 PM[pytest]
in pants.ini?happy-bird-41773
10/03/2019, 5:21 PMhappy-bird-41773
10/03/2019, 5:21 PM[pytest]
requirements: pytest==3.4.2
happy-kitchen-89482
10/03/2019, 9:43 PMhappy-kitchen-89482
10/03/2019, 9:43 PMplugins: [
'attrs==19.1.0',
]
happy-kitchen-89482
10/03/2019, 9:43 PMhappy-bird-41773
10/03/2019, 9:44 PMhappy-bird-41773
10/03/2019, 9:46 PM[GLOBAL]
plugins: [
'attrs==19.1.0',
]
I got an exception message
Exception message: Invalid requirement, parse error at ""'attrs==""
happy-bird-41773
10/03/2019, 9:47 PMhappy-kitchen-89482
10/03/2019, 10:16 PM]
must be indented two spaces from the left margin. It's an unfortunate insanity of the ini file format.happy-kitchen-89482
10/03/2019, 10:17 PMhappy-bird-41773
10/03/2019, 10:19 PMhappy-kitchen-89482
10/03/2019, 11:00 PMhappy-kitchen-89482
10/03/2019, 11:00 PMhappy-kitchen-89482
10/03/2019, 11:02 PM[pytest]
requirements: pytest==3.4.2
unittest2_requirements: attrs==19.1.0
happy-kitchen-89482
10/03/2019, 11:02 PMunittest2_requirements
option is how you could specify a version of unittest2
, in case your python version required it. But assuming it doesn't, we can hijack it...happy-kitchen-89482
10/03/2019, 11:03 PM[pytest]
options to take an arbitrary list of requirement strings, instead of 4x specific single strings.happy-bird-41773
10/03/2019, 11:13 PMhappy-kitchen-89482
10/03/2019, 11:21 PM