nose2 icon indicating copy to clipboard operation
nose2 copied to clipboard

Support configuring through pyproject.toml

Open flying-sheep opened this issue 4 years ago • 4 comments

The tool table section of PEP 518 says that tools should store their name in [tool.<pypiname>] in pyproject.toml.

flying-sheep avatar Oct 10 '19 09:10 flying-sheep

I need to look at the TOML spec again, but I think it should be pretty reasonably possible to put the contents of nose2.cfg into [tool.nose2] in pyproject.toml We'll have to pull in a TOML parser for this, but it looks like toml supports old pythons, so it won't be much of an issue.

I'd be happy to review a PR adding support. (I'm unlikely to work on this myself unless there's an indication of general demand.)

sirosen avatar Dec 09 '19 15:12 sirosen

It’s more of a “it’s the correct way to do it” thing, i.e. examples should be updated and the old way should be deprecated. I’m not using nose2, I’m just maintaining a list of projects that have support already.

flying-sheep avatar Dec 09 '19 16:12 flying-sheep

Gotcha. In that case, thanks for being a good citizen and flagging this for me. 👍

Since nose2 is a "maintenance first" project at this stage in its life, I just try to set clear expectations on these things.

sirosen avatar Dec 09 '19 16:12 sirosen

Definitely want to see this happen.

laike9m avatar Apr 05 '20 23:04 laike9m