{"action":"created","issue":{"url":"https://api.github.com/repos/tox-dev/tox/issues/208","repository_url":"https://api.github.com/repos/tox-dev/tox","labels_url":"https://api.github.com/repos/tox-dev/tox/issues/208/labels{/name}","comments_url":"https://api.github.com/repos/tox-dev/tox/issues/208/comments","events_url":"https://api.github.com/repos/tox-dev/tox/issues/208/events","html_url":"https://github.com/tox-dev/tox/issues/208","id":177591935,"number":208,"title":"No support for the posargs substitution type","user":{"login":"pytoxbot","id":22191824,"avatar_url":"https://avatars.githubusercontent.com/u/22191824?v=3","gravatar_id":"","url":"https://api.github.com/users/pytoxbot","html_url":"https://github.com/pytoxbot","followers_url":"https://api.github.com/users/pytoxbot/followers","following_url":"https://api.github.com/users/pytoxbot/following{/other_user}","gists_url":"https://api.github.com/users/pytoxbot/gists{/gist_id}","starred_url":"https://api.github.com/users/pytoxbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pytoxbot/subscriptions","organizations_url":"https://api.github.com/users/pytoxbot/orgs","repos_url":"https://api.github.com/users/pytoxbot/repos","events_url":"https://api.github.com/users/pytoxbot/events{/privacy}","received_events_url":"https://api.github.com/users/pytoxbot/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-09-17T17:12:11Z","updated_at":"2016-12-04T20:26:07Z","closed_at":"2016-12-04T20:26:07Z","body":"- Bitbucket: https://bitbucket.org/hpk42/tox/issue/208\n- Originally reported by: @eli-collins\n- Originally created at: 2015-01-10T16:49:37.036\n\nIt's quite likely I'm misusing the tox config format, but I've got a rather lengthy tox.ini, with a lot of redundant commands, and wanted to do the following:\n\n```\n[testenv:someenv]\ncommands = {posargs:preset-for-some-env}\n\n[testenv:someenv2]\ncommands = {[testenv:someenv]commands}\n\n[testenv:someenv3]\ncommands = {[testenv:someenv]commands}\n```\n\n... but as of Tox 1.8.1, I get \"ConfigError: No support for the posargs substitution type\",\nand have to explicitly duplicate the posargs line for someenv2 and someenv3.\n"},"comment":{"url":"https://api.github.com/repos/tox-dev/tox/issues/comments/264728497","html_url":"https://github.com/tox-dev/tox/issues/208#issuecomment-264728497","issue_url":"https://api.github.com/repos/tox-dev/tox/issues/208","id":264728497,"user":{"login":"obestwalter","id":263007,"avatar_url":"https://avatars.githubusercontent.com/u/263007?v=3","gravatar_id":"","url":"https://api.github.com/users/obestwalter","html_url":"https://github.com/obestwalter","followers_url":"https://api.github.com/users/obestwalter/followers","following_url":"https://api.github.com/users/obestwalter/following{/other_user}","gists_url":"https://api.github.com/users/obestwalter/gists{/gist_id}","starred_url":"https://api.github.com/users/obestwalter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obestwalter/subscriptions","organizations_url":"https://api.github.com/users/obestwalter/orgs","repos_url":"https://api.github.com/users/obestwalter/repos","events_url":"https://api.github.com/users/obestwalter/events{/privacy}","received_events_url":"https://api.github.com/users/obestwalter/received_events","type":"User","site_admin":false},"created_at":"2016-12-04T20:26:07Z","updated_at":"2016-12-04T20:26:07Z","body":"This is definitely fixed: I just tried to reproduce this with a simpe concrete `tox.ini`:\r\n\r\n    [testenv:someenv]\r\n    whitelist_externals = ls\r\n    commands = {posargs:ls}\r\n    \r\n    [testenv:someenv2]\r\n    whitelist_externals = ls\r\n    commands = {[testenv:someenv]commands}\r\n    \r\n    [testenv:someenv3]\r\n    whitelist_externals = ls\r\n    commands = {[testenv:someenv]commands}\r\n    \r\nresults in:\r\n\r\n    $ tox\r\n    GLOB sdist-make: /home/oliver/work/tox/tests/setup.py\r\n    someenv inst-nodeps: /home/oliver/work/tox/tests/.tox/dist/dummy-setup-0.1.0.zip\r\n    someenv installed: codecats-cv==0.1.0,dummy-setup==0.1.0\r\n    someenv runtests: PYTHONHASHSEED='653598811'\r\n    someenv runtests: commands[0] | ls\r\n    codecats_cv.egg-info  dummy_setup.egg-info  setup.py  tox.ini\r\n    someenv2 inst-nodeps: /home/oliver/work/tox/tests/.tox/dist/dummy-setup-0.1.0.zip\r\n    someenv2 installed: codecats-cv==0.1.0,dummy-setup==0.1.0\r\n    someenv2 runtests: PYTHONHASHSEED='653598811'\r\n    someenv2 runtests: commands[0] | ls\r\n    codecats_cv.egg-info  dummy_setup.egg-info  setup.py  tox.ini\r\n    someenv3 inst-nodeps: /home/oliver/work/tox/tests/.tox/dist/dummy-setup-0.1.0.zip\r\n    someenv3 installed: codecats-cv==0.1.0,dummy-setup==0.1.0\r\n    someenv3 runtests: PYTHONHASHSEED='653598811'\r\n    someenv3 runtests: commands[0] | ls\r\n    codecats_cv.egg-info  dummy_setup.egg-info  setup.py  tox.ini\r\n    _________________________________________ summary _________________________________________\r\n      someenv: commands succeeded\r\n      someenv2: commands succeeded\r\n      someenv3: commands succeeded\r\n      congratulations :)\r\n"}}
{"actor":{"display_login":"obestwalter"}}