Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 98a25dd

Browse files
voronindryanhiebert
authored andcommitted
Fix reading envlist from setup.cfg (#110)
* Fix reading envlist from setup.cfg * Try using an exact match to setup.cfg * Revert the failed strict check of setup.cfg
1 parent f1f5533 commit 98a25dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tox_travis/envlist.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ def get_declared_envs(ini):
6868
The envs are expected in a particular order. First the ones
6969
declared in the envlist, then the other testenvs in order.
7070
"""
71-
tox_section = ini.sections.get('tox', {})
71+
tox_section_name = 'tox:tox' if ini.path.endswith('setup.cfg') else 'tox'
72+
tox_section = ini.sections.get(tox_section_name, {})
7273
envlist = split_env(tox_section.get('envlist', []))
7374

7475
# Add additional envs that are declared as sections in the ini

0 commit comments

Comments
 (0)