-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deprecate setup.cfg support #3523
Comments
GitMate.io thinks possibly related issues are #3086 (Remove [pytest] section support in setup.cfg), #3050 (deprecate pytest.config), #3268 (Issue warning when "[pytest]" section is used in a ".cfg" file passed with "-c"), #830 (deprecate resultlog), and #2107 (pytest alias in setup.cfg not working). |
I've skimmed #3062 - and see the issue, but just wanted to state that I considered
I agree that it is quite messy, but having to move pytest config from setup.cfg to pytest.ini will also be messy for pytest users, especially since only users that configure "log_format" and similar options are affected in the end. And for Python 3 (the future) it seems to be straight-forward: configparser should be used, which then would also enable the feature it provides, that is causing this issue in the first place. |
@blueyed feel free to make a pr implementing that im going to deprecate it as i dont have the time and motivation and its currently broken in strange ways - im happy to keep it if somebody comes up with a reasonably correct way to have pytest config in setup.cfg that is not completely mindboogling however also keep in mind that |
This has been deprecated for some time |
Then I might have understood it incorrectly - I've assumed So, re-open? |
yes - re-open for sure se need to drop pytest section support for setup.cfg at some point - its fundamentally broken |
My bad guys. I've changed the title to what I think better conveys the purpose of the issue then, let me know if it's not good yet. |
Keeping pytest configuration in `setup.cfg` is deprecated (even with the [tool.pytest] field, see pytest-dev/pytest#3523) so move it out to pytest.ini.
#3062 demonstrates that its not a sustainable option to hijack config files that will be parsed using a different parser
we should deprecate
setup.cfg
usage and unless someone comes up with a sustainable option to support it, drop itThe text was updated successfully, but these errors were encountered: