[Discussion] It's a call for consideration to get rid of `tox.ini`
See original GitHub issueProposal: Declare
Author: Sviatoslav Sydorenko <@webknjaz> IRC: @webknjaz
Date: 2019-04-10
- Status: New
- Proposal type: testing
- Estimated time to implement: 0.5 day
Motivation
Just because I can 😃
Problems
Having multiple processes-related config files is sometimes overwhelming.
Solution proposal
It’s possible to move the whole contents of tox.ini
under the [tool.tox]
section in pyproject.toml
(recommended as a consolidation of tool configs via PEP 517/518).
Ref: https://tox.readthedocs.io/en/latest/example/basic.html#pyproject-toml-tox-legacy-ini
Example
[build-system] requires = [ “setuptools >= 35.0.2”, “wheel >= 0.29.0”] build-backend = “setuptools.build_meta”
[tool.tox] legacy_tox_ini = “”" [tox] envlist = py27,py36
[testenv] deps = pytest >= 3.0.0, <4 commands = pytest “”"
Downsides include:
- need to already have
pyproject.toml
-aware version of tox on dev machines - needs inlining which will break syntax highlighting and will probably make automatic config management painful…
Dependencies (optional)
N/A
Testing (optional)
N/A
Documentation (optional)
We’ll have to document the need for the latest tox.
Anything else?
N/A
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:6 (6 by maintainers)
Top Results From Across the Web
tox configuration specification — tox 3.24.5 documentation
This ensures tox works correctly when having parallel runs (as each session will have its own copy of the project package - e.g....
Read more >Need ability to override deps on the command line #31 - GitHub
Problem is, there isn't a great way to do conditional deps lists - I can't override deps in tox:jenkins. So we make a...
Read more >Python tox - Why You Should Use It and Tutorial
An introduction to the very powerful Python tox tool. ... To explain more it's useful to consider a scenario.
Read more >TIP 45 Detoxification and Substance Abuse Treatment
detoxification, including how the services are to be paid for. It is unusual in a clinical treatment improvement protocol to discuss issues related....
Read more >Toxicity of Metal Compounds: Knowledge and Myths
However, it should be pointed out that the results of toxicity ... When the toxicity of metals is discussed, it is often forgotten....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I am against this idea until we no longer need to use inline ini-in-ini approach. I would also want to see few other well known python projects adopting the new format. Molecule is already bleading-edge on its own.
Once we have at least 2-3 of our own dependencies already migrated to it, we can follow them.
Ah OK, missed it, woops. Any links / estimates on the native implementation (mentioned in https://tox.readthedocs.io/en/latest/example/basic.html#pyproject-toml-tox-legacy-ini)?