pyup icon indicating copy to clipboard operation
pyup copied to clipboard

Problem with tox.ini parsing

Open achaussier opened this issue 7 years ago • 1 comments

Hello,

I want to manage my tox.ini files by pyup, but I've test with one of my repository and Pyup not see packages, and display nothing about tox.ini files. Perhaps it's due to conditional packages versions in tox.ini file, I dont't know.

I've update the requirements setion:

requirements:
  - 'requirements.txt'
  - 'tox.ini'

And my tox.ini file structure:

[tox]
minversion = 1.8
envlist = py{27}-ansible{22,23,24,25}
skipsdist = true

[testenv]
passenv = *
deps =
    -rrequirements.txt
    ansible22: ansible==2.2.3.0 # pyup: >=2.2,<2.3
    ansible22: docker-py==1.10.6
    ansible23: ansible==2.3.3.0 # pyup: >=2.3,<2.4
    ansible23: docker==2.5.1 # pyup: <3.0
    ansible24: ansible==2.4.3.0 # pyup: >=2.4,<2.5
    ansible24: docker==2.5.1 # pyup: <3.0
    ansible25: ansible==2.5.0b1 # pyup: >=2.5,<2.6
    ansible25: docker==2.5.1 # pyup: <3.0
commands =
    molecule --debug test

I've try to reload and remove the repository without changes.

You can see the repository here if this can help you: https://github.com/infOpen/cookiecutter-ansible-role

Thanks

achaussier avatar Feb 14 '18 08:02 achaussier

Perhaps it's due to conditional packages versions in tox.ini file, I dont't know.

That's probably the case. The tox parser is still a bit rough around the edges: https://github.com/pyupio/dparse/blob/master/dparse/parser.py#L299

jayfk avatar Feb 14 '18 08:02 jayfk