plone / bobtemplates.plone

Python Code Templates for Plone Projects with mr.bob
https://pypi.org/project/bobtemplates.plone/
GNU General Public License v2.0
24 stars 31 forks source link

Errors with `bobtemplates.plone` with version `>=6.0` caused by missing `tox.ini` file #533

Open me-kell opened 1 year ago

me-kell commented 1 year ago

Description

Versions 6.0, 6.1, and 6.2 of bobtemplates.plone raise following errors (both in Linux and Windows):

ERROR: tox config file (either pyproject.toml, tox.ini, setup.cfg) not found
Error on isort-apply:
ERROR: tox config file (either pyproject.toml, tox.ini, setup.cfg) not found
Error on black-enforce:

With older versions 6.0bx or <=5.22 I didn't get any errors.

Older versions generated/copied a tox.ini file versions >=6.0 seems not to generate a tox.ini.

Probably caused by

Since version 6.0 the MANIFEST.in does global-exclude tox.ini.

Both bobtemplates.plone.utils.run_isort and bobtemplates.plone.utils.run_black start a subprocess calling tox which fails because there is no tox.ini.