question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Discussion] It's a call for consideration to get rid of `tox.ini`

See original GitHub issue

Proposal: 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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ssbarneacommented, Apr 10, 2019

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.

1reaction
decentral1secommented, Apr 10, 2019

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)?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found