From issues-reply at bitbucket.org Thu Sep 8 03:52:30 2016 From: issues-reply at bitbucket.org (SDET_Liang) Date: Thu, 08 Sep 2016 07:52:30 -0000 Subject: [Pytest-commit] Issue #361: Cannot gen xml coverage report with py.test and pytest-cov (hpk42/tox) Message-ID: <20160908075230.20683.51917@celery-worker-105.ash1.bb-inf.net> New issue 361: Cannot gen xml coverage report with py.test and pytest-cov https://bitbucket.org/hpk42/tox/issues/361/cannot-gen-xml-coverage-report-with-pytest SDET_Liang: With following tox.ini, coverage.xml is not generated, but .covearge is created. The output is listed below. tox.ini commands = py.test ./tests --junitxml=unittest-{envname}.xml --cov=mypkg --cov-report xml ouptut py27 runtests: PYTHONHASHSEED='1204855125' py27 runtests: commands[0] | py.test ./tests --junitxml=unittest-py27.xml --cov=mypkg --cov-report xml ============================= test session starts ============================== platform linux2 -- Python 2.7.10, pytest-2.9.1, py-1.4.31, pluggy-0.3.1 rootdir: /data/jenkins/workspace/mypkg-unittest, inifile: plugins: cov-2.3.0 tests/test_sth.py .......... generated xml file: /data/jenkins/workspace/mypkg-unittest/unittest-py27.xml ---------- coverage: platform linux2, python 2.7.10-final-0 ---------- Coverage XML written to file coverage.xml ========================== 10 passed in 21.87 seconds ========================== ___________________________________ summary ____________________________________ py27: commands succeeded From builds at drone.io Tue Sep 13 15:49:25 2016 From: builds at drone.io (Drone.io Build) Date: Tue, 13 Sep 2016 19:49:25 +0000 Subject: [Pytest-commit] [FAIL] py - # 28 Message-ID: <20160913194925.24513.95445.13C4591C@drone.io> Build Failed Build : https://drone.io/bitbucket.org/pytest-dev/py/28 Project : https://drone.io/bitbucket.org/pytest-dev/py Repository : https://bitbucket.org/pytest-dev/py Version : 2318:b7cc19c13a6f Author : Ronny Pfannschmidt Branch : default Message: Merged in aragilar/py (pull request #37) -------------- next part -------------- An HTML attachment was scrubbed... URL: From builds at drone.io Tue Sep 13 15:59:32 2016 From: builds at drone.io (Drone.io Build) Date: Tue, 13 Sep 2016 19:59:32 +0000 Subject: [Pytest-commit] [FAIL] py - # 27 Message-ID: <20160913194825.87386.66546.B384AF74@drone.io> Build Failed Build : https://drone.io/bitbucket.org/pytest-dev/py/27 Project : https://drone.io/bitbucket.org/pytest-dev/py Repository : https://bitbucket.org/pytest-dev/py Version : 2318:b7cc19c13a6f Author : Ronny Pfannschmidt Branch : default Message: Merged in aragilar/py (pull request #37) -------------- next part -------------- An HTML attachment was scrubbed... URL: From commits-noreply at bitbucket.org Wed Sep 14 05:12:17 2016 From: commits-noreply at bitbucket.org (commits-noreply at bitbucket.org) Date: Wed, 14 Sep 2016 09:12:17 -0000 Subject: [Pytest-commit] commit/tox: hpk42: Merged in andrew_pashkin/tox/issue302 (pull request #207) Message-ID: <20160914091217.24325.90371@celery-worker-108.ash1.bb-inf.net> 1 new commit in tox: https://bitbucket.org/hpk42/tox/commits/9071df77a7fd/ Changeset: 9071df77a7fd User: hpk42 Date: 2016-09-14 09:12:15+00:00 Summary: Merged in andrew_pashkin/tox/issue302 (pull request #207) Make substitution engine ignore factor arrays, fix #302 Affected #: 2 files diff -r 19a03d4e500ba859631bce6f6999de09b1a48cde -r 9071df77a7fd3eee9464addc870be88c12b54fe6 tests/test_config.py --- a/tests/test_config.py +++ b/tests/test_config.py @@ -1154,20 +1154,32 @@ argv = conf.commands assert argv[0] == ["cmd1", "hello"] - def test_take_dependencies_from_other_testenv(self, newconfig): + @pytest.mark.parametrize('envlist, deps', [ + (['py27'], ('pytest', 'pytest-cov')), + (['py27', 'py34'], ('pytest', 'py{27,34}: pytest-cov')), + ]) + def test_take_dependencies_from_other_testenv( + self, + newconfig, + envlist, + deps + ): inisource = """ + [tox] + envlist = {envlist} [testenv] - deps= - pytest - pytest-cov + deps={deps} [testenv:py27] deps= - {[testenv]deps} + {{[testenv]deps}} fun - """ + """.format( + envlist=','.join(envlist), + deps='\n' + '\n'.join([' ' * 17 + d for d in deps]) + ) conf = newconfig([], inisource).envconfigs['py27'] packages = [dep.name for dep in conf.deps] - assert packages == ['pytest', 'pytest-cov', 'fun'] + assert packages == list(deps) + ['fun'] def test_take_dependencies_from_other_section(self, newconfig): inisource = """ diff -r 19a03d4e500ba859631bce6f6999de09b1a48cde -r 9071df77a7fd3eee9464addc870be88c12b54fe6 tox/config.py --- a/tox/config.py +++ b/tox/config.py @@ -1017,7 +1017,7 @@ r''' (?[^[:{}]+):)? # optional sub_type for special rules - (?P[^{}]*) # substitution key + (?P[^,{}]*) # substitution key [}] ''', re.VERBOSE) Repository URL: https://bitbucket.org/hpk42/tox/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. From commits-noreply at bitbucket.org Wed Sep 14 05:12:17 2016 From: commits-noreply at bitbucket.org (commits-noreply at bitbucket.org) Date: Wed, 14 Sep 2016 09:12:17 -0000 Subject: [Pytest-commit] commit/tox: 2 new changesets Message-ID: <20160914091217.19767.49060@celery-worker-107.ash1.bb-inf.net> 2 new commits in tox: https://bitbucket.org/hpk42/tox/commits/66b0272bf19e/ Changeset: 66b0272bf19e Branch: issue302 User: andrew_pashkin Date: 2016-09-09 11:45:54+00:00 Summary: Make substitution engine ignore factor arrays, fix #302 The fix assumes, that the bug was that the substitution engine - tox.config.Replacer, while recursvely replacing references to actual values, treated factor arrays (like {py27,py34}) as references, that are needed to be replaced, which they are not. The patch simply amends regex which is used by Replacer to recognize references, to ignore factor arrays. And factor arrays assumed to be values, enclosed in curly braces, that contain at least one comma. Affected #: 2 files diff -r 19a03d4e500ba859631bce6f6999de09b1a48cde -r 66b0272bf19e4098042e12237824aecbb387be4b tests/test_config.py --- a/tests/test_config.py +++ b/tests/test_config.py @@ -1154,20 +1154,32 @@ argv = conf.commands assert argv[0] == ["cmd1", "hello"] - def test_take_dependencies_from_other_testenv(self, newconfig): + @pytest.mark.parametrize('envlist, deps', [ + (['py27'], ('pytest', 'pytest-cov')), + (['py27', 'py34'], ('pytest', 'py{27,34}: pytest-cov')), + ]) + def test_take_dependencies_from_other_testenv( + self, + newconfig, + envlist, + deps + ): inisource = """ + [tox] + envlist = {envlist} [testenv] - deps= - pytest - pytest-cov + deps={deps} [testenv:py27] deps= - {[testenv]deps} + {{[testenv]deps}} fun - """ + """.format( + envlist=','.join(envlist), + deps='\n' + '\n'.join([' ' * 17 + d for d in deps]) + ) conf = newconfig([], inisource).envconfigs['py27'] packages = [dep.name for dep in conf.deps] - assert packages == ['pytest', 'pytest-cov', 'fun'] + assert packages == list(deps) + ['fun'] def test_take_dependencies_from_other_section(self, newconfig): inisource = """ diff -r 19a03d4e500ba859631bce6f6999de09b1a48cde -r 66b0272bf19e4098042e12237824aecbb387be4b tox/config.py --- a/tox/config.py +++ b/tox/config.py @@ -1017,7 +1017,7 @@ r''' (?[^[:{}]+):)? # optional sub_type for special rules - (?P[^{}]*) # substitution key + (?P[^,{}]*) # substitution key [}] ''', re.VERBOSE) https://bitbucket.org/hpk42/tox/commits/9071df77a7fd/ Changeset: 9071df77a7fd User: hpk42 Date: 2016-09-14 09:12:15+00:00 Summary: Merged in andrew_pashkin/tox/issue302 (pull request #207) Make substitution engine ignore factor arrays, fix #302 Affected #: 2 files diff -r 19a03d4e500ba859631bce6f6999de09b1a48cde -r 9071df77a7fd3eee9464addc870be88c12b54fe6 tests/test_config.py --- a/tests/test_config.py +++ b/tests/test_config.py @@ -1154,20 +1154,32 @@ argv = conf.commands assert argv[0] == ["cmd1", "hello"] - def test_take_dependencies_from_other_testenv(self, newconfig): + @pytest.mark.parametrize('envlist, deps', [ + (['py27'], ('pytest', 'pytest-cov')), + (['py27', 'py34'], ('pytest', 'py{27,34}: pytest-cov')), + ]) + def test_take_dependencies_from_other_testenv( + self, + newconfig, + envlist, + deps + ): inisource = """ + [tox] + envlist = {envlist} [testenv] - deps= - pytest - pytest-cov + deps={deps} [testenv:py27] deps= - {[testenv]deps} + {{[testenv]deps}} fun - """ + """.format( + envlist=','.join(envlist), + deps='\n' + '\n'.join([' ' * 17 + d for d in deps]) + ) conf = newconfig([], inisource).envconfigs['py27'] packages = [dep.name for dep in conf.deps] - assert packages == ['pytest', 'pytest-cov', 'fun'] + assert packages == list(deps) + ['fun'] def test_take_dependencies_from_other_section(self, newconfig): inisource = """ diff -r 19a03d4e500ba859631bce6f6999de09b1a48cde -r 9071df77a7fd3eee9464addc870be88c12b54fe6 tox/config.py --- a/tox/config.py +++ b/tox/config.py @@ -1017,7 +1017,7 @@ r''' (?[^[:{}]+):)? # optional sub_type for special rules - (?P[^{}]*) # substitution key + (?P[^,{}]*) # substitution key [}] ''', re.VERBOSE) Repository URL: https://bitbucket.org/hpk42/tox/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. From commits-noreply at bitbucket.org Wed Sep 14 05:13:53 2016 From: commits-noreply at bitbucket.org (commits-noreply at bitbucket.org) Date: Wed, 14 Sep 2016 09:13:53 -0000 Subject: [Pytest-commit] commit/tox: hpk42: add changelog entry: fix issue302: allow cross-testenv substitution where we substitute Message-ID: <20160914091353.29974.73139@celery-worker-106.ash1.bb-inf.net> 1 new commit in tox: https://bitbucket.org/hpk42/tox/commits/581a1b974cd2/ Changeset: 581a1b974cd2 User: hpk42 Date: 2016-09-14 09:13:49+00:00 Summary: add changelog entry: fix issue302: allow cross-testenv substitution where we substitute with ``{x,y}`` generative syntax. Thanks Andrew Pashkin. Affected #: 1 file diff -r 9071df77a7fd3eee9464addc870be88c12b54fe6 -r 581a1b974cd2aeeba670d3e8ec53cab45c030a95 CHANGELOG --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,9 @@ 2.4.0 ----- +- fix issue302: allow cross-testenv substitution where we substitute + with ``{x,y}`` generative syntax. Thanks Andrew Pashkin. + - fix issue212: allow escaping curly brace chars "\{" and "\}" if you need the chars "{" and "}" to appear in your commands or other ini values. Thanks John Vandenberg. Repository URL: https://bitbucket.org/hpk42/tox/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. From issues-reply at bitbucket.org Wed Sep 14 10:29:43 2016 From: issues-reply at bitbucket.org (Chad Whitacre) Date: Wed, 14 Sep 2016 14:29:43 -0000 Subject: [Pytest-commit] Issue #362: support multiple requirements.txt files (hpk42/tox) Message-ID: <20160914142943.19580.93151@celery-worker-107.ash1.bb-inf.net> New issue 362: support multiple requirements.txt files https://bitbucket.org/hpk42/tox/issues/362/support-multiple-requirementstxt-files Chad Whitacre: In our projects we find it useful to have multiple pip requirements files, `requirements.txt` for our main dependencies, and then things like `requirements_test.txt` for test dependencies, and `requirements_docs.txt` for Sphinx. ### Steps 1. Add two `deps` keys to a testenv config section, each specifying a different requirements file using `-r`. 1. `tox -r` ### Expected Dependencies from both requirements files are installed. ### Actual `ParseError`: duplicate name 'deps' ``` [aspen] $ tox -r Traceback (most recent call last): File "/Users/whit537/personal/AspenWeb/aspen.py/env/bin/tox", line 11, in sys.exit(cmdline()) File "/Users/whit537/personal/AspenWeb/aspen.py/env/lib/python3.5/site-packages/tox/session.py", line 38, in main config = prepare(args) File "/Users/whit537/personal/AspenWeb/aspen.py/env/lib/python3.5/site-packages/tox/session.py", line 26, in prepare config = parseconfig(args) File "/Users/whit537/personal/AspenWeb/aspen.py/env/lib/python3.5/site-packages/tox/config.py", line 229, in parseconfig parseini(config, inipath) File "/Users/whit537/personal/AspenWeb/aspen.py/env/lib/python3.5/site-packages/tox/config.py", line 644, in __init__ self._cfg = py.iniconfig.IniConfig(config.toxinipath) File "/Users/whit537/personal/AspenWeb/aspen.py/env/lib/python3.5/site-packages/py/_iniconfig.py", line 71, in __init__ self._raise(lineno, 'duplicate name %r'%(name, )) File "/Users/whit537/personal/AspenWeb/aspen.py/env/lib/python3.5/site-packages/py/_iniconfig.py", line 75, in _raise raise ParseError(self.path, lineno, msg) py._iniconfig.ParseError: /Users/whit537/personal/AspenWeb/aspen.py/tox.ini:6: duplicate name 'deps' ``` ### Notes I also tried using a single deps key like so: ``` deps=-rrequirements.txt -rrequirements_tests.txt ``` and: ``` deps=-rrequirements.txt,-rrequirements_tests.txt ``` From issues-reply at bitbucket.org Thu Sep 15 12:14:30 2016 From: issues-reply at bitbucket.org (Jack Nicholson) Date: Thu, 15 Sep 2016 16:14:30 -0000 Subject: [Pytest-commit] Issue #363: Add the cd command to whitelist (hpk42/tox) Message-ID: <20160915161430.36770.7970@celery-worker-106.ash1.bb-inf.net> New issue 363: Add the cd command to whitelist https://bitbucket.org/hpk42/tox/issues/363/add-the-cd-command-to-whitelist Jack Nicholson: I have the same issue as #156 and noticed that no one made a request to add the `cd` command. Background: I have my tox.ini file in my root directory and my docs/ directory has a make file. I cannot call this make file without cd'ing to the directory first. Although a pain, my workaround is to duplicate all the commands within the Makefile into tox.ini. From issues-reply at bitbucket.org Fri Sep 16 12:09:41 2016 From: issues-reply at bitbucket.org (Andy Freeland) Date: Fri, 16 Sep 2016 16:09:41 -0000 Subject: [Pytest-commit] Issue #364: Ability to include/extend other inis in tox.ini (hpk42/tox) Message-ID: <20160916160941.15438.79955@celery-worker-107.ash1.bb-inf.net> New issue 364: Ability to include/extend other inis in tox.ini https://bitbucket.org/hpk42/tox/issues/364/ability-to-include-extend-other-inis-in Andy Freeland: it would be useful to be able to share/reuse config (for example, a style toxenv) through some sort of include syntax in tox.ini. e.g. in tox.ini: ``` [tox] envlist = py27,py35,style include = tox-style.ini ``` and style.ini: ``` [testenv:style] .... ``` That's almost definitely not the right syntax to use, but I think it gets the idea. From builds at drone.io Sat Sep 17 02:44:56 2016 From: builds at drone.io (Drone.io Build) Date: Sat, 17 Sep 2016 06:44:56 +0000 Subject: [Pytest-commit] [FAIL] py - # 29 Message-ID: <20160917064456.100614.89497.8D8A217D@drone.io> Build Failed Build : https://drone.io/bitbucket.org/pytest-dev/py/29 Project : https://drone.io/bitbucket.org/pytest-dev/py Repository : https://bitbucket.org/pytest-dev/py Version : 2319:5f338d5e6383 Author : Ronny Pfannschmidt Branch : default Message: commit a removal of all files and change the readme to point to gitub -------------- next part -------------- An HTML attachment was scrubbed... URL: From commits-noreply at bitbucket.org Sat Sep 17 14:27:49 2016 From: commits-noreply at bitbucket.org (commits-noreply at bitbucket.org) Date: Sat, 17 Sep 2016 18:27:49 -0000 Subject: [Pytest-commit] commit/tox: RonnyPfannschmidt: clean out source files and link to new repo Message-ID: <20160917182749.15206.81158@celery-worker-105.ash1.bb-inf.net> 1 new commit in tox: https://bitbucket.org/hpk42/tox/commits/7a21b4a0f589/ Changeset: 7a21b4a0f589 Branch: issue352 User: RonnyPfannschmidt Date: 2016-09-17 18:27:18+00:00 Summary: clean out source files and link to new repo Affected #: 64 files diff -r 4c796666bedef8040e7d40d6f0d00bb9b86d47d0 -r 7a21b4a0f589ab49718b3679246b4f27c6b1543b CHANGELOG --- a/CHANGELOG +++ /dev/null @@ -1,692 +0,0 @@ -2.4.0 ------ - -- fix issue212: allow escaping curly brace chars "\{" and "\}" if you need the - chars "{" and "}" to appear in your commands or other ini values. - Thanks John Vandenberg. - -- addresses issue66: add --workdir option to override where tox stores its ".tox" directory - and all of the virtualenv environment. Thanks Danring. - -- introduce per-venv list_dependencies_command which defaults - to "pip freeze" to obtain the list of installed packages. - Thanks Ted Shaw, Holger Krekel. - -- close issue66: add documentation to jenkins page on how to avoid - "too long shebang" lines when calling pip from tox. Note that we - can not use "python -m pip install X" by default because the latter - adds the CWD and pip will think X is installed if it is there. - "pip install X" does not do that. - -- new list_dependencies_command to influence how tox determines - which dependencies are installed in a testenv. - -- (experimental) New feature: When a search for a config file fails, tox tries loading - setup.cfg with a section prefix of "tox". - -- fix issue275: Introduce hooks ``tox_runtest_pre``` and - ``tox_runtest_post`` which run before and after the tests of a venv, - respectively. Thanks to Matthew Schinckel and itxaka serrano. - -- fix issue317: evaluate minversion before tox config is parsed completely. - Thanks Sachi King for the PR. - -2.3.2 ------ - -- fix issue314: fix command invocation with .py scripts on windows. - -- fix issue279: allow cross-section substitution when the value contains - posargs. Thanks Sachi King for the PR. - -2.3.1 ------ - -- fix issue294: re-allow cross-section substitution for setenv. - -2.3.0 ------ - -- DEPRECATE use of "indexservers" in tox.ini. It complicates - the internal code and it is recommended to rather use the - devpi system for managing indexes for pip. - -- fix issue285: make setenv processing fully lazy to fix regressions - of tox-2.2.X and so that we can now have testenv attributes like - "basepython" depend on environment variables that are set in - a setenv section. Thanks Nelfin for some tests and initial - work on a PR. - -- allow "#" in commands. This is slightly incompatible with commands - sections that used a comment after a "\" line continuation. - Thanks David Stanek for the PR. - -- fix issue289: fix build_sphinx target, thanks Barry Warsaw. - -- fix issue252: allow environment names with special characters. - Thanks Julien Castets for initial PR and patience. - -- introduce experimental tox_testenv_create(venv, action) and - tox_testenv_install_deps(venv, action) hooks to allow - plugins to do additional work on creation or installing - deps. These hooks are experimental mainly because of - the involved "venv" and session objects whose current public - API is not fully guranteed. - -- internal: push some optional object creation into tests because - tox core doesn't need it. - -2.2.1 ------ - -- fix bug where {envdir} substitution could not be used in setenv - if that env value is then used in {basepython}. Thanks Florian Bruhin. - -2.2.0 ------ - -- fix issue265 and add LD_LIBRARY_PATH to passenv on linux by default - because otherwise the python interpreter might not start up in - certain configurations (redhat software collections). Thanks David Riddle. - -- fix issue246: fix regression in config parsing by reordering - such that {envbindir} can be used again in tox.ini. Thanks Olli Walsh. - -- fix issue99: the {env:...} substitution now properly uses environment - settings from the ``setenv`` section. Thanks Itxaka Serrano. - -- fix issue281: make --force-dep work when urls are present in - dependency configs. Thanks Glyph Lefkowitz for reporting. - -- fix issue174: add new ``ignore_outcome`` testenv attribute which - can be set to True in which case it will produce a warning instead - of an error on a failed testenv command outcome. - Thanks Rebecka Gulliksson for the PR. - -- fix issue280: properly skip missing interpreter if - {envsitepackagesdir} is present in commands. Thanks BB:ceridwenv - - -2.1.1 ----------- - -- fix platform skipping for detox - -- report skipped platforms as skips in the summary - -2.1.0 ----------- - -- fix issue258, fix issue248, fix issue253: for non-test commands - (installation, venv creation) we pass in the full invocation environment. - -- remove experimental --set-home option which was hardly used and - hackily implemented (if people want home-directory isolation we should - figure out a better way to do it, possibly through a plugin) - -- fix issue259: passenv is now a line-list which allows to intersperse - comments. Thanks stefano-m. - -- allow envlist to be a multi-line list, to intersperse comments - and have long envlist settings split more naturally. Thanks Andre Caron. - -- introduce a TOX_TESTENV_PASSENV setting which is honored - when constructing the set of environment variables for test environments. - Thanks Marc Abramowitz for pushing in this direction. - - -2.0.2 ----------- - -- fix issue247: tox now passes the LANG variable from the tox invocation - environment to the test environment by default. - -- add SYSTEMDRIVE into default passenv on windows to allow pip6 to work. - Thanks Michael Krause. - - -2.0.1 ------------ - -- fix wheel packaging to properly require argparse on py26. - -2.0.0 ------------ - -- (new) introduce environment variable isolation: - tox now only passes the PATH and PIP_INDEX_URL variable from the tox - invocation environment to the test environment and on Windows - also ``SYSTEMROOT``, ``PATHEXT``, ``TEMP`` and ``TMP`` whereas - on unix additionally ``TMPDIR`` is passed. If you need to pass - through further environment variables you can use the new ``passenv`` setting, - a space-separated list of environment variable names. Each name - can make use of fnmatch-style glob patterns. All environment - variables which exist in the tox-invocation environment will be copied - to the test environment. - -- a new ``--help-ini`` option shows all possible testenv settings and - their defaults. - -- (new) introduce a way to specify on which platform a testenvironment is to - execute: the new per-venv "platform" setting allows to specify - a regular expression which is matched against sys.platform. - If platform is set and doesn't match the platform spec in the test - environment the test environment is ignored, no setup or tests are attempted. - -- (new) add per-venv "ignore_errors" setting, which defaults to False. - If ``True``, a non-zero exit code from one command will be ignored and - further commands will be executed (which was the default behavior in tox < - 2.0). If ``False`` (the default), then a non-zero exit code from one command - will abort execution of commands for that environment. - -- show and store in json the version dependency information for each venv - -- remove the long-deprecated "distribute" option as it has no effect these days. - -- fix issue233: avoid hanging with tox-setuptools integration example. Thanks simonb. - -- fix issue120: allow substitution for the commands section. Thanks - Volodymyr Vitvitski. - -- fix issue235: fix AttributeError with --installpkg. Thanks - Volodymyr Vitvitski. - -- tox has now somewhat pep8 clean code, thanks to Volodymyr Vitvitski. - -- fix issue240: allow to specify empty argument list without it being - rewritten to ".". Thanks Daniel Hahler. - -- introduce experimental (not much documented yet) plugin system - based on pytest's externalized "pluggy" system. - See tox/hookspecs.py for the current hooks. - -- introduce parser.add_testenv_attribute() to register an ini-variable - for testenv sections. Can be used from plugins through the - tox_add_option hook. - -- rename internal files -- tox offers no external API except for the - experimental plugin hooks, use tox internals at your own risk. - -- DEPRECATE distshare in documentation - - - -1.9.2 ------------ - -- backout ability that --force-dep substitutes name/versions in - requirement files due to various issues. - This fixes issue228, fixes issue230, fixes issue231 - which popped up with 1.9.1. - -1.9.1 ------------ - -- use a file instead of a pipe for command output in "--result-json". - Fixes some termination issues with python2.6. - -- allow --force-dep to override dependencies in "-r" requirements - files. Thanks Sontek for the PR. - -- fix issue227: use "-m virtualenv" instead of "-mvirtualenv" to make - it work with pyrun. Thanks Marc-Andre Lemburg. - - -1.9.0 ------------ - -- fix issue193: Remove ``--pre`` from the default ``install_command``; by - default tox will now only install final releases from PyPI for unpinned - dependencies. Use ``pip_pre = true`` in a testenv or the ``--pre`` - command-line option to restore the previous behavior. - -- fix issue199: fill resultlog structure ahead of virtualenv creation - -- refine determination if we run from Jenkins, thanks Borge Lanes. - -- echo output to stdout when ``--report-json`` is used - -- fix issue11: add a ``skip_install`` per-testenv setting which - prevents the installation of a package. Thanks Julian Krause. - -- fix issue124: ignore command exit codes; when a command has a "-" prefix, - tox will ignore the exit code of that command - -- fix issue198: fix broken envlist settings, e.g. {py26,py27}{-lint,} - -- fix issue191: lessen factor-use checks - - -1.8.1 ------------ - -- fix issue190: allow setenv to be empty. - -- allow escaping curly braces with "\". Thanks Marc Abramowitz for the PR. - -- allow "." names in environment names such that "py27-django1.7" is a - valid environment name. Thanks Alex Gaynor and Alex Schepanovski. - -- report subprocess exit code when execution fails. Thanks Marius - Gedminas. - -1.8.0 ------------ - -- new multi-dimensional configuration support. Many thanks to - Alexander Schepanovski for the complete PR with docs. - And to Mike Bayer and others for testing and feedback. - -- fix issue148: remove "__PYVENV_LAUNCHER__" from os.environ when starting - subprocesses. Thanks Steven Myint. - -- fix issue152: set VIRTUAL_ENV when running test commands, - thanks Florian Ludwig. - -- better report if we can't get version_info from an interpreter - executable. Thanks Floris Bruynooghe. - - -1.7.2 ------------ - -- fix issue150: parse {posargs} more like we used to do it pre 1.7.0. - The 1.7.0 behaviour broke a lot of OpenStack projects. - See PR85 and the issue discussions for (far) more details, hopefully - resulting in a more refined behaviour in the 1.8 series. - And thanks to Clark Boylan for the PR. - -- fix issue59: add a config variable ``skip-missing-interpreters`` as well as - command line option ``--skip-missing-interpreters`` which won't fail the - build if Python interpreters listed in tox.ini are missing. Thanks - Alexandre Conrad for PR104. - -- fix issue164: better traceback info in case of failing test commands. - Thanks Marc Abramowitz for PR92. - -- support optional env variable substitution, thanks Morgan Fainberg - for PR86. - -- limit python hashseed to 1024 on Windows to prevent possible - memory errors. Thanks March Schlaich for the PR90. - -1.7.1 ---------- - -- fix issue162: don't list python 2.5 as compatibiliy/supported - -- fix issue158 and fix issue155: windows/virtualenv properly works now: - call virtualenv through "python -m virtualenv" with the same - interpreter which invoked tox. Thanks Chris Withers, Ionel Maries Cristian. - -1.7.0 ---------- - -- don't lookup "pip-script" anymore but rather just "pip" on windows - as this is a pip implementation detail and changed with pip-1.5. - It might mean that tox-1.7 is not able to install a different pip - version into a virtualenv anymore. - -- drop Python2.5 compatibility because it became too hard due - to the setuptools-2.0 dropping support. tox now has no - support for creating python2.5 based environments anymore - and all internal special-handling has been removed. - -- merged PR81: new option --force-dep which allows to - override tox.ini specified dependencies in setuptools-style. - For example "--force-dep 'django<1.6'" will make sure - that any environment using "django" as a dependency will - get the latest 1.5 release. Thanks Bruno Oliveria for - the complete PR. - -- merged PR125: tox now sets "PYTHONHASHSEED" to a random value - and offers a "--hashseed" option to repeat a test run with a specific seed. - You can also use --hashsheed=noset to instruct tox to leave the value - alone. Thanks Chris Jerdonek for all the work behind this. - -- fix issue132: removing zip_safe setting (so it defaults to false) - to allow installation of tox - via easy_install/eggs. Thanks Jenisys. - -- fix issue126: depend on virtualenv>=1.11.2 so that we can rely - (hopefully) on a pip version which supports --pre. (tox by default - uses to --pre). also merged in PR84 so that we now call "virtualenv" - directly instead of looking up interpreters. Thanks Ionel Maries Cristian. - This also fixes issue140. - -- fix issue130: you can now set install_command=easy_install {opts} {packages} - and expect it to work for repeated tox runs (previously it only worked - when always recreating). Thanks jenisys for precise reporting. - -- fix issue129: tox now uses Popen(..., universal_newlines=True) to force - creation of unicode stdout/stderr streams. fixes a problem on specific - platform configs when creating virtualenvs with Python3.3. Thanks - Jorgen Sch?fer or investigation and solution sketch. - -- fix issue128: enable full substitution in install_command, - thanks for the PR to Ronald Evers - -- rework and simplify "commands" parsing and in particular posargs - substitutions to avoid various win32/posix related quoting issues. - -- make sure that the --installpkg option trumps any usedevelop settings - in tox.ini or - -- introduce --no-network to tox's own test suite to skip tests - requiring networks - -- introduce --sitepackages to force sitepackages=True in all - environments. - -- fix issue105 -- don't depend on an existing HOME directory from tox tests. - -1.6.1 ------ - -- fix issue119: {envsitepackagesdir} is now correctly computed and has - a better test to prevent regression. - -- fix issue116: make 1.6 introduced behaviour of changing to a - per-env HOME directory during install activities dependent - on "--set-home" for now. Should re-establish the old behaviour - when no option is given. - -- fix issue118: correctly have two tests use realpath(). Thanks Barry - Warsaw. - -- fix test runs on environments without a home directory - (in this case we use toxinidir as the homedir) - -- fix issue117: python2.5 fix: don't use ``--insecure`` option because - its very existence depends on presence of "ssl". If you - want to support python2.5/pip1.3.1 based test environments you need - to install ssl and/or use PIP_INSECURE=1 through ``setenv``. section. - -- fix issue102: change to {toxinidir} when installing dependencies. - this allows to use relative path like in "-rrequirements.txt". - -1.6.0 ------------------ - -- fix issue35: add new EXPERIMENTAL "install_command" testenv-option to - configure the installation command with options for dep/pkg install. - Thanks Carl Meyer for the PR and docs. - -- fix issue91: python2.5 support by vendoring the virtualenv-1.9.1 - script and forcing pip<1.4. Also the default [py25] environment - modifies the default installer_command (new config option) - to use pip without the "--pre" option which was introduced - with pip-1.4 and is now required if you want to install non-stable - releases. (tox defaults to install with "--pre" everywhere). - -- during installation of dependencies HOME is now set to a pseudo - location ({envtmpdir}/pseudo-home). If an index url was specified - a .pydistutils.cfg file will be written with an index_url setting - so that packages defining ``setup_requires`` dependencies will not - silently use your HOME-directory settings or https://pypi.python.org. - -- fix issue1: empty setup files are properly detected, thanks Anthon van - der Neuth - -- remove toxbootstrap.py for now because it is broken. - -- fix issue109 and fix issue111: multiple "-e" options are now combined - (previously the last one would win). Thanks Anthon van der Neut. - -- add --result-json option to write out detailed per-venv information - into a json report file to be used by upstream tools. - -- add new config options ``usedevelop`` and ``skipsdist`` as well as a - command line option ``--develop`` to install the package-under-test in develop mode. - thanks Monty Tailor for the PR. - -- always unset PYTHONDONTWRITEBYTE because newer setuptools doesn't like it - -- if a HOMEDIR cannot be determined, use the toxinidir. - -- refactor interpreter information detection to live in new - tox/interpreters.py file, tests in tests/test_interpreters.py. - -1.5.0 ------------------ - -- fix issue104: use setuptools by default, instead of distribute, - now that setuptools has distribute merged. - -- make sure test commands are searched first in the virtualenv - -- re-fix issue2 - add whitelist_externals to be used in ``[testenv*]`` - sections, allowing to avoid warnings for commands such as ``make``, - used from the commands value. - -- fix issue97 - allow substitutions to reference from other sections - (thanks Krisztian Fekete) - -- fix issue92 - fix {envsitepackagesdir} to actually work again - -- show (test) command that is being executed, thanks - Lukasz Balcerzak - -- re-license tox to MIT license - -- depend on virtualenv-1.9.1 - -- rename README.txt to README.rst to make bitbucket happier - - -1.4.3 ------------------ - -- use pip-script.py instead of pip.exe on win32 to avoid the lock exe - file on execution issue (thanks Philip Thiem) - -- introduce -l|--listenv option to list configured environments - (thanks Lukasz Balcerzak) - -- fix downloadcache determination to work according to docs: Only - make pip use a download cache if PIP_DOWNLOAD_CACHE or a - downloadcache=PATH testenv setting is present. (The ENV setting - takes precedence) - -- fix issue84 - pypy on windows creates a bin not a scripts venv directory - (thanks Lukasz Balcerzak) - -- experimentally introduce --installpkg=PATH option to install a package - rather than create/install an sdist package. This will still require - and use tox.ini and tests from the current working dir (and not from the - remote package). - -- substitute {envsitepackagesdir} with the package installation - directory (closes #72) (thanks g2p) - -- issue #70 remove PYTHONDONTWRITEBYTECODE workaround now that - virtualenv behaves properly (thanks g2p) - -- merged tox-quickstart command, contributed by Marc Abramowitz, which - generates a default tox.ini after asking a few questions - -- fix #48 - win32 detection of pypy and other interpreters that are on PATH - (thanks Gustavo Picon) - -- fix grouping of index servers, it is now done by name instead of - indexserver url, allowing to use it to separate dependencies - into groups even if using the same default indexserver. - -- look for "tox.ini" files in parent dirs of current dir (closes #34) - -- the "py" environment now by default uses the current interpreter - (sys.executable) make tox' own setup.py test execute tests with it - (closes #46) - -- change tests to not rely on os.path.expanduser (closes #60), - also make mock session return args[1:] for more precise checking (closes #61) - thanks to Barry Warsaw for both. - -1.4.2 ------------------ - -- fix some tests which fail if /tmp is a symlink to some other place -- "python setup.py test" now runs tox tests via tox :) - also added an example on how to do it for your project. - -1.4.1 ------------------ - -- fix issue41 better quoting on windows - you can now use "<" and ">" in - deps specifications, thanks Chris Withers for reporting - -1.4 ------------------ - -- fix issue26 - no warnings on absolute or relative specified paths for commands -- fix issue33 - commentchars are ignored in key-value settings allowing - for specifying commands like: python -c "import sys ; print sys" - which would formerly raise irritating errors because the ";" - was considered a comment -- tweak and improve reporting -- refactor reporting and virtualenv manipulation - to be more accessible from 3rd party tools -- support value substitution from other sections - with the {[section]key} syntax -- fix issue29 - correctly point to pytest explanation - for importing modules fully qualified -- fix issue32 - use --system-site-packages and don't pass --no-site-packages -- add python3.3 to the default env list, so early adopters can test -- drop python2.4 support (you can still have your tests run on -- fix the links/checkout howtos in the docs - python-2.4, just tox itself requires 2.5 or higher. - -1.3 ------------------ - -- fix: allow to specify wildcard filesystem paths when - specifying dependencies such that tox searches for - the highest version - -- fix issue issue21: clear PIP_REQUIRES_VIRTUALENV which avoids - pip installing to the wrong environment, thanks to bb's streeter - -- make the install step honour a testenv's setenv setting - (thanks Ralf Schmitt) - - -1.2 ------------------ - -- remove the virtualenv.py that was distributed with tox and depend - on >=virtualenv-1.6.4 (possible now since the latter fixes a few bugs - that the inlining tried to work around) -- fix issue10: work around UnicodeDecodeError when invoking pip (thanks - Marc Abramowitz) -- fix a problem with parsing {posargs} in tox commands (spotted by goodwill) -- fix the warning check for commands to be installed in testenvironment - (thanks Michael Foord for reporting) - -1.1 ------------------ - -- fix issue5 - don't require argparse for python versions that have it -- fix issue6 - recreate virtualenv if installing dependencies failed -- fix issue3 - fix example on frontpage -- fix issue2 - warn if a test command does not come from the test - environment -- fixed/enhanced: except for initial install always call "-U - --no-deps" for installing the sdist package to ensure that a package - gets upgraded even if its version number did not change. (reported on - TIP mailing list and IRC) -- inline virtualenv.py (1.6.1) script to avoid a number of issues, - particularly failing to install python3 environments from a python2 - virtualenv installation. -- rework and enhance docs for display on readthedocs.org - -1.0 ------------------ - -- move repository and toxbootstrap links to http://bitbucket.org/hpk42/tox -- fix issue7: introduce a "minversion" directive such that tox - bails out if it does not have the correct version. -- fix issue24: introduce a way to set environment variables for - for test commands (thanks Chris Rose) -- fix issue22: require virtualenv-1.6.1, obsoleting virtualenv5 (thanks Jannis Leidel) - and making things work with pypy-1.5 and python3 more seamlessly -- toxbootstrap.py (used by jenkins build slaves) now follows the latest release of virtualenv -- fix issue20: document format of URLs for specifying dependencies -- fix issue19: substitute Hudson for Jenkins everywhere following the renaming - of the project. NOTE: if you used the special [tox:hudson] - section it will now need to be named [tox:jenkins]. -- fix issue 23 / apply some ReST fixes -- change the positional argument specifier to use {posargs:} syntax and - fix issues #15 and #10 by refining the argument parsing method (Chris Rose) -- remove use of inipkg lazy importing logic - - the namespace/imports are anyway very small with tox. -- fix a fspath related assertion to work with debian installs which uses - symlinks -- show path of the underlying virtualenv invocation and bootstrap - virtualenv.py into a working subdir -- added a CONTRIBUTORS file - -0.9 ------------------ - -- fix pip-installation mixups by always unsetting PIP_RESPECT_VIRTUALENV - (thanks Armin Ronacher) -- issue1: Add a toxbootstrap.py script for tox, thanks to Sridhar - Ratnakumar -- added support for working with different and multiple PyPI indexservers. -- new option: -r|--recreate to force recreation of virtualenv -- depend on py>=1.4.0 which does not contain or install the py.test - anymore which is now a separate distribution "pytest". -- show logfile content if there is an error (makes CI output - more readable) - -0.8 ------------------ - -- work around a virtualenv limitation which crashes if - PYTHONDONTWRITEBYTECODE is set. -- run pip/easy installs from the environment log directory, avoids - naming clashes between env names and dependencies (thanks ronny) -- require a more recent version of py lib -- refactor and refine config detection to work from a single file - and to detect the case where a python installation overwrote - an old one and resulted in a new executable. This invalidates - the existing virtualenvironment now. -- change all internal source to strip trailing whitespaces - -0.7 ------------------ - -- use virtualenv5 (my own fork of virtualenv3) for now to create python3 - environments, fixes a couple of issues and makes tox more likely to - work with Python3 (on non-windows environments) - -- add ``sitepackages`` option for testenv sections so that environments - can be created with access to globals (default is not to have access, - i.e. create environments with ``--no-site-packages``. - -- addressing issue4: always prepend venv-path to PATH variable when calling subprocesses - -- fix issue2: exit with proper non-zero return code if there were - errors or test failures. - -- added unittest2 examples contributed by Michael Foord - -- only allow 'True' or 'False' for boolean config values - (lowercase / uppercase is irrelevant) - -- recreate virtualenv on changed configurations - -0.6 ------------------ - -- fix OSX related bugs that could cause the caller's environment to get - screwed (sorry). tox was using the same file as virtualenv for tracking - the Python executable dependency and there also was confusion wrt links. - this should be fixed now. - -- fix long description, thanks Michael Foord - -0.5 ------------------ - -- initial release diff -r 4c796666bedef8040e7d40d6f0d00bb9b86d47d0 -r 7a21b4a0f589ab49718b3679246b4f27c6b1543b CONTRIBUTORS --- a/CONTRIBUTORS +++ /dev/null @@ -1,34 +0,0 @@ - -contributions: - -Krisztian Fekete -Marc Abramowitz -Aleaxner Schepanovski -Sridhar Ratnakumar -Barry Warsaw -Chris Rose -Jannis Leidl -Ronny Pfannschmidt -Lukasz Balcerzak -Philip Thiem -Monty Taylor -Bruno Oliveira -Ionel Maries Cristian -Anatoly techntonik -Matt Jeffery -Chris Jerdonek -Ronald Evers -Carl Meyer -Anthon van der Neuth -Matt Good -Mattieu Agopian -Asmund Grammeltwedt -Ionel Maries Cristian -Julian Krause -Alexandre Conrad -Morgan Fainberg -Marc Schlaich -Clark Boylan -Eugene Yunak -Mark Hirota -Itxaka Serrano diff -r 4c796666bedef8040e7d40d6f0d00bb9b86d47d0 -r 7a21b4a0f589ab49718b3679246b4f27c6b1543b ISSUES.txt --- a/ISSUES.txt +++ /dev/null @@ -1,162 +0,0 @@ -introduce package and setup.py less sdist creation ------------------------------------------------------------ - -Example sections for tox itself:: - - [pkgdef] - basename = pytest - description = virtualenv-based automation of test activities - authors = holger krekel - url = http://tox.testrun.org - entry_points = console_scripts: tox=tox:cmdline - requires = py - packages = - preuploadenvs = sphinx - - classifiers= - Development Status :: 6 - Mature - Intended Audience :: Developers - License :: OSI Approved :: MIT License - Topic :: Software Development :: Testing - Topic :: Software Development :: Libraries - Topic :: Utilities - -This would generate three different packages: - -- the main one containing the app with the specified description, etc. - It has a test-requires pointing to the test package, - which classifiers -- the test package only containing the tests and setup.py - depending on the main package and all requirements collected from the - testenv -- the doc package containing generated html and txt files - (to be installable via a setup.py as well?) - -Here is what happens when tox is invoked now: - -- version gets auto-incremented (in setup.py and $PACKAGE/__init__.py files) -- main setup.py generated, files copied, sdist generated -- test setup.py generated, files copied, sdist generated -- doc setup.py generated, doc environment run, files copied, sdist generated - -- if --upload is specified, all packages are uploaded under - their respective names: - tox-VER - tests-tox-VER - docs-tox-VER - -- tox --sync creates a test result file for the tests-tox-VER run - and uploads it to testrun.org -- .tox/projectkeys contains a file that - was created by visiting testrun.org and registering/logging in. - -- download toxslave and execute it: - - toxslave --userkey=... [--project tox] - - which will query testrun.org for outstanding testruns - [for the tox project], download packages, execute them - and report back to the server - -merge tox and detox? ----------------------------------------------------------------- - -maybe it's time to merge it? - -http://lists.idyll.org/pipermail/testing-in-python/2012-October/005205.html -pyc files / test distributions ------------------------------------------------------------ - -investigate pyc cleaning, see - -http://lists.idyll.org/pipermail/testing-in-python/2012-October/005205.html - - -allow config overlays ------------------------------------------------------------ - -tags: 1.5 feature - -You can specify wildcards in section titles. - - [testenv] - testsrc=testing/**.py - commands=py.test {posargs} - - [testenv:py3*] - use2to3 = True - - [testenv:py32] - deps = - ... - -Configuration values are now looked up in a stricter-matches-first -manner: If environment "py32" is considered then first the -section under py32, then py3*, then testenv. - - -support 2to3 configurations / test file postprocessing ------------------------------------------------------------ - -tags: 1.5 feature - -Tests should be copied and transformed before being executed. -Setup a test definition:: - - [testenv] - testsrc=testing/**.py - commands=py.test {posargs} - - [testenv:py3*] - use2to3 = True - -would transform all specified test files for all py3 environments -such that a subsequent test run:: - - $ tox -e py25,py32 testing/test_hello.py - -causes a transformation of the test files to prepare test runs on -Python3 interpreters. The ``posargs`` specified files will be rewritten -to point to the transformed test files. - -export support for travis ----------------------------------------- -tag: 1.6 feature - -look into ways to support integration of tox with travis. - -- run tox from travis -- let tox read commands from travis config -- generate .travis.yml from tox.ini -- generate tox.ini from .travis.yml - -For the last two, take a look at http://pypi.python.org/pypi/panci/ - -allow user-specific python interpreters ------------------------------------------------- - -users should be able to define their set of python executables -to be used for creating virtualenvs. -.toxrc/interpreters: -pypy-c=~/p/pypy/branch/sys-prefix/pypy-c -... - -non-cached test dependencies ---------------------------------------------------------------- - -if there is a dependency on a URL whose content changes -the download-cache mechanism will prevent it from being reloaded. -Introduce a 'nocache:' prefix which will inhibit using the cache. -Also make and document a guarantee on the deps order so that -one can influence the exact configuration (e.g. use a dev-version -of some package which a later dependency or the original -package depends upon - i.e. deps should be installed first). - - -test and make "in-pkg" tests work ---------------------------------------- - -it is common to put tests into pkg subdirs, possibly -even with an __init__. See if/how this can be made -to work. Maybe also re-consider how py.test does its -importing, maybe add a pytest_addsyspath(testmodule) -and look how nose does it in detail. diff -r 4c796666bedef8040e7d40d6f0d00bb9b86d47d0 -r 7a21b4a0f589ab49718b3679246b4f27c6b1543b LICENSE --- a/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ - -Permission is hereby granted, free of charge, to any person obtaining a -copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be included -in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - diff -r 4c796666bedef8040e7d40d6f0d00bb9b86d47d0 -r 7a21b4a0f589ab49718b3679246b4f27c6b1543b MANIFEST.in --- a/MANIFEST.in +++ /dev/null @@ -1,9 +0,0 @@ -include CHANGELOG -include README.rst -include CONTRIBUTORS -include ISSUES.txt -include LICENSE -include setup.py -include tox.ini -graft doc -graft tests diff -r 4c796666bedef8040e7d40d6f0d00bb9b86d47d0 -r 7a21b4a0f589ab49718b3679246b4f27c6b1543b README.rst --- a/README.rst +++ b/README.rst @@ -1,25 +1,4 @@ +We moved to github +------------------- -What is Tox? --------------------- - -Tox is a generic virtualenv management and test command line tool you can use for: - -* checking your package installs correctly with different Python versions and - interpreters - -* running your tests in each of the environments, configuring your test tool of choice - -* acting as a frontend to Continuous Integration servers, greatly - reducing boilerplate and merging CI and shell-based testing. - -For more information and the repository please checkout: - -- homepage: http://tox.testrun.org - -- repository: https://bitbucket.org/hpk42/tox - - -have fun, - -holger krekel, 2015 - +https://github.com/tox-dev/tox diff -r 4c796666bedef8040e7d40d6f0d00bb9b86d47d0 -r 7a21b4a0f589ab49718b3679246b4f27c6b1543b doc/Makefile --- a/doc/Makefile +++ /dev/null @@ -1,140 +0,0 @@ -# Makefile for Sphinx documentation -# - -# You can set these variables from the command line. -SPHINXOPTS = -SPHINXBUILD = sphinx-build -PAPER = -BUILDDIR = _build - -# Internal variables. -PAPEROPT_a4 = -D latex_paper_size=a4 -PAPEROPT_letter = -D latex_paper_size=letter -ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . - -SITETARGET=$(shell ./_getdoctarget.py) - -.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest - -help: - @echo "Please use \`make ' where is one of" - @echo " html to make standalone HTML files" - @echo " dirhtml to make HTML files named index.html in directories" - @echo " singlehtml to make a single large HTML file" - @echo " pickle to make pickle files" - @echo " json to make JSON files" - @echo " htmlhelp to make HTML files and a HTML help project" - @echo " qthelp to make HTML files and a qthelp project" - @echo " devhelp to make HTML files and a Devhelp project" - @echo " epub to make an epub" - @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" - @echo " latexpdf to make LaTeX files and run them through pdflatex" - @echo " text to make text files" - @echo " man to make manual pages" - @echo " changes to make an overview of all changed/added/deprecated items" - @echo " linkcheck to check all external links for integrity" - @echo " doctest to run all doctests embedded in the documentation (if enabled)" - -clean: - -rm -rf $(BUILDDIR)/* - - -install: clean html - @rsync -avz $(BUILDDIR)/html/ testrun.org:/www/testrun.org/tox/latest - @rsync -avz $(BUILDDIR)/html/ testrun.org:/www/testrun.org/tox/$(SITETARGET) - #dev - #latexpdf - #@scp $(BUILDDIR)/latex/*.pdf testrun.org:www-tox/latest - -html: - $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html - @echo - @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." - -dirhtml: - $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml - @echo - @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." - -singlehtml: - $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml - @echo - @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml." - -pickle: - $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle - @echo - @echo "Build finished; now you can process the pickle files." - -json: - $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json - @echo - @echo "Build finished; now you can process the JSON files." - -htmlhelp: - $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp - @echo - @echo "Build finished; now you can run HTML Help Workshop with the" \ - ".hhp project file in $(BUILDDIR)/htmlhelp." - -qthelp: - $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp - @echo - @echo "Build finished; now you can run "qcollectiongenerator" with the" \ - ".qhcp project file in $(BUILDDIR)/qthelp, like this:" - @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/tox.qhcp" - @echo "To view the help file:" - @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/tox.qhc" - -devhelp: - $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp - @echo - @echo "Build finished." - @echo "To view the help file:" - @echo "# mkdir -p $$HOME/.local/share/devhelp/tox" - @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/tox" - @echo "# devhelp" - -epub: - $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub - @echo - @echo "Build finished. The epub file is in $(BUILDDIR)/epub." - -latex: - $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex - @echo - @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex." - @echo "Run \`make' in that directory to run these through (pdf)latex" \ - "(use \`make latexpdf' here to do that automatically)." - -latexpdf: - $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex - @echo "Running LaTeX files through pdflatex..." - make -C $(BUILDDIR)/latex all-pdf - @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." - -text: - $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text - @echo - @echo "Build finished. The text files are in $(BUILDDIR)/text." - -man: - $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man - @echo - @echo "Build finished. The manual pages are in $(BUILDDIR)/man." - -changes: - $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes - @echo - @echo "The overview file is in $(BUILDDIR)/changes." - -linkcheck: - $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck - @echo - @echo "Link check complete; look for any errors in the above output " \ - "or in $(BUILDDIR)/linkcheck/output.txt." - -doctest: - $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest - @echo "Testing of doctests in the sources finished, look at the " \ - "results in $(BUILDDIR)/doctest/output.txt." diff -r 4c796666bedef8040e7d40d6f0d00bb9b86d47d0 -r 7a21b4a0f589ab49718b3679246b4f27c6b1543b doc/_getdoctarget.py --- a/doc/_getdoctarget.py +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env python - -import py - -def get_version_string(): - fn = py.path.local(__file__).join("..", "..", - "tox", "__init__.py") - for line in fn.readlines(): - if "version" in line and not line.strip().startswith('#'): - return eval(line.split("=")[-1]) - -def get_minor_version_string(): - return ".".join(get_version_string().split(".")[:2]) - -if __name__ == "__main__": - print(get_minor_version_string()) diff -r 4c796666bedef8040e7d40d6f0d00bb9b86d47d0 -r 7a21b4a0f589ab49718b3679246b4f27c6b1543b doc/_static/sphinxdoc.css --- a/doc/_static/sphinxdoc.css +++ /dev/null @@ -1,339 +0,0 @@ -/* - * sphinxdoc.css_t - * ~~~~~~~~~~~~~~~ - * - * Sphinx stylesheet -- sphinxdoc theme. Originally created by - * Armin Ronacher for Werkzeug. - * - * :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS. - * :license: BSD, see LICENSE for details. - * - */ - - at import url("basic.css"); - -/* -- page layout ----------------------------------------------------------- */ - -body { - font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva', - 'Verdana', sans-serif; - font-size: 1.1em; - letter-spacing: -0.01em; - line-height: 150%; - text-align: center; - background-color: #BFD1D4; - color: black; - padding: 0; - border: 1px solid #aaa; - - margin: 0px 80px 0px 80px; - min-width: 740px; -} - -div.document { - background-color: white; - text-align: left; - background-image: url(contents.png); - background-repeat: repeat-x; -} - -div.bodywrapper { - margin: 0 240px 0 0; - border-right: 1px solid #ccc; -} - -div.body { - margin: 0; - padding: 0.5em 20px 20px 20px; -} - -div.related { - font-size: 0.8em; -} - -div.related ul { - background-image: url(navigation.png); - height: 2em; - border-top: 1px solid #ddd; - border-bottom: 1px solid #ddd; -} - -div.related ul li { - margin: 0; - padding: 0; - height: 2em; - float: left; -} - -div.related ul li.right { - float: right; - margin-right: 5px; -} - -div.related ul li a { - margin: 0; - padding: 0 5px 0 5px; - line-height: 1.75em; - color: #EE9816; -} - -div.related ul li a:hover { - color: #3CA8E7; -} - -div.sphinxsidebarwrapper { - padding: 0; -} - -div.sphinxsidebar { - margin: 0; - padding: 0.5em 15px 15px 0; - width: 210px; - float: right; - font-size: 1em; - text-align: left; -} - -div.sphinxsidebar h3, div.sphinxsidebar h4 { - margin: 1em 0 0.5em 0; - font-size: 1em; - padding: 0.1em 0 0.1em 0.5em; - color: white; - border: 1px solid #86989B; - background-color: #AFC1C4; -} - -div.sphinxsidebar h3 a { - color: white; -} - -div.sphinxsidebar ul { - padding-left: 1.5em; - margin-top: 7px; - padding: 0; - line-height: 130%; -} - -div.sphinxsidebar ul ul { - margin-left: 20px; -} - -div.footer { - background-color: #E3EFF1; - color: #86989B; - padding: 3px 8px 3px 0; - clear: both; - font-size: 0.8em; - text-align: right; -} - -div.footer a { - color: #86989B; - text-decoration: underline; -} - -/* -- body styles ----------------------------------------------------------- */ - -p { - margin: 0.8em 0 0.5em 0; -} - -a { - color: #CA7900; - text-decoration: none; -} - -a:hover { - color: #2491CF; -} - -div.body a { - text-decoration: underline; -} - -h1 { - margin: 0; - padding: 0.7em 0 0.3em 0; - font-size: 1.5em; - color: #11557C; -} - -h2 { - margin: 1.3em 0 0.2em 0; - font-size: 1.35em; - padding: 0; -} - -h3 { - margin: 1em 0 -0.3em 0; - font-size: 1.2em; -} - -div.body h1 a, div.body h2 a, div.body h3 a, div.body h4 a, div.body h5 a, div.body h6 a { - color: black!important; -} - -h1 a.anchor, h2 a.anchor, h3 a.anchor, h4 a.anchor, h5 a.anchor, h6 a.anchor { - display: none; - margin: 0 0 0 0.3em; - padding: 0 0.2em 0 0.2em; - color: #aaa!important; -} - -h1:hover a.anchor, h2:hover a.anchor, h3:hover a.anchor, h4:hover a.anchor, -h5:hover a.anchor, h6:hover a.anchor { - display: inline; -} - -h1 a.anchor:hover, h2 a.anchor:hover, h3 a.anchor:hover, h4 a.anchor:hover, -h5 a.anchor:hover, h6 a.anchor:hover { - color: #777; - background-color: #eee; -} - -a.headerlink { - color: #c60f0f!important; - font-size: 1em; - margin-left: 6px; - padding: 0 4px 0 4px; - text-decoration: none!important; -} - -a.headerlink:hover { - background-color: #ccc; - color: white!important; -} - -cite, code, tt { - font-family: 'Consolas', 'Deja Vu Sans Mono', - 'Bitstream Vera Sans Mono', monospace; - font-size: 0.95em; - letter-spacing: 0.01em; -} - -tt { - background-color: #f2f2f2; - border-bottom: 1px solid #ddd; - color: #333; -} - -tt.descname, tt.descclassname, tt.xref { - border: 0; -} - -hr { - border: 1px solid #abc; - margin: 2em; -} - -a tt { - border: 0; - color: #CA7900; -} - -a tt:hover { - color: #2491CF; -} - -pre { - font-family: 'Consolas', 'Deja Vu Sans Mono', - 'Bitstream Vera Sans Mono', monospace; - font-size: 0.95em; - letter-spacing: 0.015em; - line-height: 120%; - padding: 0.5em; - border: 1px solid #ccc; - background-color: #f8f8f8; -} - -pre a { - color: inherit; - text-decoration: underline; -} - -td.linenos pre { - padding: 0.5em 0; -} - -div.quotebar { - background-color: #f8f8f8; - max-width: 250px; - float: right; - padding: 2px 7px; - border: 1px solid #ccc; -} - -div.topic { - background-color: #f8f8f8; -} - -table { - border-collapse: collapse; - margin: 0 -0.5em 0 -0.5em; -} - -table td, table th { - padding: 0.2em 0.5em 0.2em 0.5em; -} - -div.admonition, div.warning { - font-size: 0.9em; - margin: 1em 0 1em 0; - border: 1px solid #86989B; - background-color: #f7f7f7; - padding: 0; -} - -div.admonition p, div.warning p { - margin: 0.5em 1em 0.5em 1em; - padding: 0; -} - -div.admonition pre, div.warning pre { - margin: 0.4em 1em 0.4em 1em; -} - -div.admonition p.admonition-title, -div.warning p.admonition-title { - margin: 0; - padding: 0.1em 0 0.1em 0.5em; - color: white; - border-bottom: 1px solid #86989B; - font-weight: bold; - background-color: #AFC1C4; -} - -div.warning { - border: 1px solid #940000; -} - -div.warning p.admonition-title { - background-color: #CF0000; - border-bottom-color: #940000; -} - -div.admonition ul, div.admonition ol, -div.warning ul, div.warning ol { - margin: 0.1em 0.5em 0.5em 3em; - padding: 0; -} - -div.versioninfo { - margin: 1em 0 0 0; - border: 1px solid #ccc; - background-color: #DDEAF0; - padding: 8px; - line-height: 1.3em; - font-size: 0.9em; -} - -.viewcode-back { - font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva', - 'Verdana', sans-serif; -} - -div.viewcode-block:target { - background-color: #f4debf; - border-top: 1px solid #ac9; - border-bottom: 1px solid #ac9; -} diff -r 4c796666bedef8040e7d40d6f0d00bb9b86d47d0 -r 7a21b4a0f589ab49718b3679246b4f27c6b1543b doc/_templates/indexsidebar.html --- a/doc/_templates/indexsidebar.html +++ /dev/null @@ -1,21 +0,0 @@ -

Download

-{% if version.endswith('(hg)') %} -

This documentation is for version {{ version }}, which is - not released yet.

-

You can use it from the - Mercurial repo or look for - released versions in the Python - Package Index.

-{% else %} -

Current: {{ version }} -[Changes]

-

-tox on PyPI -

-
pip install tox
-{% endif %} - -

Questions? Suggestions?

- -

Checkout support channels -

diff -r 4c796666bedef8040e7d40d6f0d00bb9b86d47d0 -r 7a21b4a0f589ab49718b3679246b4f27c6b1543b doc/_templates/layout.html --- a/doc/_templates/layout.html +++ /dev/null @@ -1,15 +0,0 @@ -{% extends "!layout.html" %} - - -{% block footer %} -{{ super() }} - - -{% endblock %} diff -r 4c796666bedef8040e7d40d6f0d00bb9b86d47d0 -r 7a21b4a0f589ab49718b3679246b4f27c6b1543b doc/_templates/localtoc.html --- a/doc/_templates/localtoc.html +++ /dev/null @@ -1,36 +0,0 @@ - -{%- if pagename != "search" %} - - -{%- endif %} - -

quicklinks

-
- - -
- home - - examples -
- install - - changelog -
- config - - issues[bb] -
- support - -
-
-{% extends "basic/localtoc.html" %} - diff -r 4c796666bedef8040e7d40d6f0d00bb9b86d47d0 -r 7a21b4a0f589ab49718b3679246b4f27c6b1543b doc/announce/release-0.5.txt --- a/doc/announce/release-0.5.txt +++ /dev/null @@ -1,26 +0,0 @@ -tox 0.5: a generic virtualenv and test management tool for Python -=========================================================================== - -I have been talking about with various people in the last year and -am happy to now announce the first release of ``tox``. It aims -to automate tedious Python related test activities driven -from a simple ``tox.ini`` file, including: - -* creation and management of different virtualenv environments -* installing your package into each of them -* running your test tool of choice (including e.g. running sphinx checks) -* testing packages against each other without needing to upload to PyPI - -``tox`` runs well on Python2.4 up until Python3.1 and integrates -well with Continuous Integration servers Jenkins. There are many -real-life examples and a good chunk of docs. Read it up on - - http://codespeak.net/tox - -and please report any issues. This is a fresh project and -i'd like to drive further improvements from real world needs. - -best, - -holger krekel - diff -r 4c796666bedef8040e7d40d6f0d00bb9b86d47d0 -r 7a21b4a0f589ab49718b3679246b4f27c6b1543b doc/announce/release-1.0.txt --- a/doc/announce/release-1.0.txt +++ /dev/null @@ -1,55 +0,0 @@ -tox 1.0: the rapid multi-python test automatizer -=========================================================================== - -I am happy to announce tox 1.0, mostly a stabilization and streamlined -release. TOX automates tedious test activities driven from a -simple ``tox.ini`` file, including: - -* creation and management of different virtualenv environments with - different Python interpreters -* packaging and installing your package into each of them -* running your test tool of choice, be it nose, py.test or unittest2 or - other tools such as "sphinx" doc checks -* testing dev packages against each other without needing to upload to PyPI - -Docs and examples are at: - - http://tox.readthedocs.org - -Installation: - - pip install -U tox - -Note that code hosting and issue tracking has moved from Google to Bitbucket: - - https://bitbucket.org/hpk42/tox - -The 1.0 release includes contributions and is based on feedback and -work from Chris Rose, Ronny Pfannschmidt, Jannis Leidel, Jakob Kaplan-Moss, -Sridhar Ratnakumar, Carl Meyer and others. Many thanks! - -best, -Holger Krekel - -CHANGES ---------------------- - -- fix issue24: introduce a way to set environment variables for - for test commands (thanks Chris Rose) -- fix issue22: require virtualenv-1.6.1, obsoleting virtualenv5 (thanks Jannis Leidel) - and making things work with pypy-1.5 and python3 more seemlessly -- toxbootstrap.py (used by jenkins build slaves) now follows the latest release of virtualenv -- fix issue20: document format of URLs for specifying dependencies -- fix issue19: substitute Hudson for Jenkins everywhere following the renaming - of the project. NOTE: if you used the special [tox:hudson] - section it will now need to be named [tox:jenkins]. -- fix issue 23 / apply some ReST fixes -- change the positional argument specifier to use {posargs:} syntax and - fix issues #15 and #10 by refining the argument parsing method (Chris Rose) -- remove use of inipkg lazy importing logic - - the namespace/imports are anyway very small with tox. -- fix a fspath related assertion to work with debian installs which uses - symlinks -- show path of the underlying virtualenv invocation and bootstrap - virtualenv.py into a working subdir -- added a CONTRIBUTORS file diff -r 4c796666bedef8040e7d40d6f0d00bb9b86d47d0 -r 7a21b4a0f589ab49718b3679246b4f27c6b1543b doc/announce/release-1.1.txt --- a/doc/announce/release-1.1.txt +++ /dev/null @@ -1,50 +0,0 @@ -tox 1.1: the rapid multi-python test automatizer -=========================================================================== - -I am happy to announce tox 1.1, a bug fix release easing some commong -workflows. TOX automates tedious test activities driven from a simple -``tox.ini`` file, including: - -* creation and management of different virtualenv environments with - different Python interpreters -* packaging and installing your package into each of them -* running your test tool of choice, be it nose, py.test or unittest2 or - other tools such as "sphinx" doc checks -* testing dev packages against each other without needing to upload to PyPI - -It works well on virtually all Python interpreters that support virtualenv. - -Docs and examples are at: - - http://tox.readthedocs.org - -Installation: - - pip install -U tox - -Note that code hosting and issue tracking has moved from Google to Bitbucket: - - https://bitbucket.org/hpk42/tox - -The 1.0 release includes contributions and is based on feedback and -work from Chris Rose, Ronny Pfannschmidt, Jannis Leidel, Jakob Kaplan-Moss, -Sridhar Ratnakumar, Carl Meyer and others. Many thanks! - -best, -Holger Krekel - -CHANGES ---------------------- - -- fix issue5 - don't require argparse for python versions that have it -- fix issue6 - recreate virtualenv if installing dependencies failed -- fix issue3 - fix example on frontpage -- fix issue2 - warn if a test command does not come from the test - environment -- fixed/enhanced: except for initial install always call "-U - --no-deps" for installing the sdist package to ensure that a package - gets upgraded even if its version number did not change. (reported on - TIP mailing list and IRC) -- inline virtualenv.py (1.6.1) script to avoid a number of issues, - particularly failing to install python3 environents from a python2 - virtualenv installation. diff -r 4c796666bedef8040e7d40d6f0d00bb9b86d47d0 -r 7a21b4a0f589ab49718b3679246b4f27c6b1543b doc/announce/release-1.2.txt --- a/doc/announce/release-1.2.txt +++ /dev/null @@ -1,42 +0,0 @@ -tox 1.2: the virtualenv-based test run automatizer -=========================================================================== - -I am happy to announce tox 1.2, now using and depending on the latest -virtualenv code and containing some bug fixes. TOX automates tedious -test activities driven from a simple ``tox.ini`` file, including: - -* creation and management of different virtualenv environments with - different Python interpreters -* packaging and installing your package into each of them -* running your test tool of choice, be it nose, py.test or unittest2 or - other tools such as "sphinx" doc checks -* testing dev packages against each other without needing to upload to PyPI - -It works well on virtually all Python interpreters that support virtualenv. - -Docs and examples are at: - - http://tox.testrun.org/ - -Installation: - - pip install -U tox - -code hosting and issue tracking on bitbucket: - - https://bitbucket.org/hpk42/tox - -best, -Holger Krekel - -1.2 compared to 1.1 ---------------------- - -- remove the virtualenv.py that was distributed with tox and depend - on virtualenv-1.6.4 (possible now since the latter fixes a few bugs - that the inling tried to work around) -- fix issue10: work around UnicodeDecodeError when inokving pip (thanks - Marc Abramowitz) -- fix a problem with parsing {posargs} in tox commands (spotted by goodwill) -- fix the warning check for commands to be installed in testevironment - (thanks Michael Foord for reporting) diff -r 4c796666bedef8040e7d40d6f0d00bb9b86d47d0 -r 7a21b4a0f589ab49718b3679246b4f27c6b1543b doc/announce/release-1.3.txt --- a/doc/announce/release-1.3.txt +++ /dev/null @@ -1,41 +0,0 @@ -tox 1.3: the virtualenv-based test run automatizer -=========================================================================== - -I am happy to announce tox 1.3, containing a few improvements -over 1.2. TOX automates tedious test activities driven from a -simple ``tox.ini`` file, including: - -* creation and management of different virtualenv environments - with different Python interpreters -* packaging and installing your package into each of them -* running your test tool of choice, be it nose, py.test or unittest2 or other tools such as "sphinx" doc checks -* testing dev packages against each other without needing to upload to PyPI - -Docs and examples are at: - - http://tox.testrun.org/ - -Installation: - - pip install -U tox - -code hosting and issue tracking on bitbucket: - - https://bitbucket.org/hpk42/tox - -best, -Holger Krekel - -1.3 ------------------ - -- fix: allow to specify wildcard filesystem paths when - specifiying dependencies such that tox searches for - the highest version - -- fix issue issue21: clear PIP_REQUIRES_VIRTUALENV which avoids - pip installing to the wrong environment, thanks to bb's streeter - -- make the install step honour a testenv's setenv setting - (thanks Ralf Schmitt) - diff -r 4c796666bedef8040e7d40d6f0d00bb9b86d47d0 -r 7a21b4a0f589ab49718b3679246b4f27c6b1543b doc/announce/release-1.4.3.txt --- a/doc/announce/release-1.4.3.txt +++ /dev/null @@ -1,97 +0,0 @@ -tox 1.4.3: the Python virtualenv-based testing automatizer -============================================================================= - -tox 1.4.3 fixes some bugs and introduces a new script and two new options: - -- "tox-quickstart" - run this script, answer a few questions, and - get a tox.ini created for you (thanks Marc Abramowitz) - -- "tox -l" lists configured environment names (thanks Lukasz Balcerzak) - -- (experimental) "--installpkg=localpath" option which will skip the - sdist-creation of a package and instead install the given localpath package. - -- use pip-script.py instead of pip.exe on win32 to avoid windows locking - the .exe - -Note that the sister project "detox" should continue to work - it's a -separately released project which drives tox test runs on multiple CPUs -in parallel. - -More documentation: - - http://tox.testrun.org/ - -Installation: - - pip install -U tox - -repository hosting and issue tracking on bitbucket: - - https://bitbucket.org/hpk42/tox - - -What is tox? ----------------- - -tox standardizes and automates tedious python driven test activities -driven from a simple ``tox.ini`` file, including: - -* creation and management of different virtualenv environments - with different Python interpreters -* packaging and installing your package into each of them -* running your test tool of choice, be it nose, py.test or unittest2 or other tools such as "sphinx" doc checks -* testing dev packages against each other without needing to upload to PyPI - -best, -Holger Krekel - - -CHANGELOG -================ - -1.4.3 (compared to 1.4.2) --------------------------------- - -- introduce -l|--listenv option to list configured environments - (thanks Lukasz Balcerzak) - -- fix downloadcache determination to work according to docs: Only - make pip use a download cache if PIP_DOWNLOAD_CACHE or a - downloadcache=PATH testenv setting is present. (The ENV setting - takes precedence) - -- fix issue84 - pypy on windows creates a bin not a scripts venv directory - (thanks Lukasz Balcerzak) - -- experimentally introduce --installpkg=PATH option to install a package rather than - create/install an sdist package. This will still require and use - tox.ini and tests from the current working dir (and not from the remote - package). - -- substitute {envsitepackagesdir} with the package installation directory (closes #72) - (thanks g2p) - -- issue #70 remove PYTHONDONTWRITEBYTECODE workaround now that - virtualenv behaves properly (thanks g2p) - -- merged tox-quickstart command, contributed by Marc Abramowitz, which - generates a default tox.ini after asking a few questions - -- fix #48 - win32 detection of pypy and other interpreters that are on PATH - (thanks Gustavo Picon) - -- fix grouping of index servers, it is now done by name instead of - indexserver url, allowing to use it to separate dependencies - into groups even if using the same default indexserver. - -- look for "tox.ini" files in parent dirs of current dir (closes #34) - -- the "py" environment now by default uses the current interpreter - (sys.executable) make tox' own setup.py test execute tests with it - (closes #46) - -- change tests to not rely on os.path.expanduser (closes #60), - also make mock session return args[1:] for more precise checking (closes #61) - thanks to Barry Warszaw for both. - diff -r 4c796666bedef8040e7d40d6f0d00bb9b86d47d0 -r 7a21b4a0f589ab49718b3679246b4f27c6b1543b doc/announce/release-1.4.txt --- a/doc/announce/release-1.4.txt +++ /dev/null @@ -1,62 +0,0 @@ -tox 1.4: the virtualenv-based test run automatizer -============================================================================= - -I am happy to announce tox 1.4 which brings: - -- improvements with configuration file syntax, now allowing re-using - selected settings across config file sections. see http://testrun.org/tox/latest/config.html#substitution-for-values-from-other-sections - -- terminal reporting was simplified and streamlined. Now with - verbosity==0 (the default), less information will be shown - and you can use one or multiple "-v" options to increase verbosity. - -- internal re-organisation so that the separately released "detox" - tool can reuse tox code to implement a fully distributed tox run. - -More documentation: - - http://tox.testrun.org/ - -Installation: - - pip install -U tox - -code hosting and issue tracking on bitbucket: - - https://bitbucket.org/hpk42/tox - -What is tox? ----------------- - -tox standardizes and automates tedious test activities driven from a -simple ``tox.ini`` file, including: - -* creation and management of different virtualenv environments - with different Python interpreters -* packaging and installing your package into each of them -* running your test tool of choice, be it nose, py.test or unittest2 or other tools such as "sphinx" doc checks -* testing dev packages against each other without needing to upload to PyPI - -best, -Holger Krekel - - -1.4 ------------------ - -- fix issue26 - no warnings on absolute or relative specified paths for commands -- fix issue33 - commentchars are ignored in key-value settings allowing - for specifying commands like: python -c "import sys ; print sys" - which would formerly raise irritating errors because the ";" - was considered a comment -- tweak and improve reporting -- refactor reporting and virtualenv manipulation - to be more accessible from 3rd party tools -- support value substitution from other sections - with the {[section]key} syntax -- fix issue29 - correctly point to pytest explanation - for importing modules fully qualified -- fix issue32 - use --system-site-packages and don't pass --no-site-packages -- add python3.3 to the default env list, so early adopters can test -- drop python2.4 support (you can still have your tests run on - python-2.4, just tox itself requires 2.5 or higher. This diff is so big that we needed to truncate the remainder. Repository URL: https://bitbucket.org/hpk42/tox/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. From commits-noreply at bitbucket.org Sat Sep 17 14:30:33 2016 From: commits-noreply at bitbucket.org (commits-noreply at bitbucket.org) Date: Sat, 17 Sep 2016 18:30:33 -0000 Subject: [Pytest-commit] commit/tox: RonnyPfannschmidt: clean out source files and link to new repo Message-ID: <20160917183033.15560.95461@celery-worker-105.ash1.bb-inf.net> 1 new commit in tox: https://bitbucket.org/hpk42/tox/commits/3820d490129f/ Changeset: 3820d490129f User: RonnyPfannschmidt Date: 2016-09-17 18:30:13+00:00 Summary: clean out source files and link to new repo Affected #: 64 files diff -r 581a1b974cd2aeeba670d3e8ec53cab45c030a95 -r 3820d490129fb9fb96c25cc9f941e4d6caf8c337 CHANGELOG --- a/CHANGELOG +++ /dev/null @@ -1,695 +0,0 @@ -2.4.0 ------ - -- fix issue302: allow cross-testenv substitution where we substitute - with ``{x,y}`` generative syntax. Thanks Andrew Pashkin. - -- fix issue212: allow escaping curly brace chars "\{" and "\}" if you need the - chars "{" and "}" to appear in your commands or other ini values. - Thanks John Vandenberg. - -- addresses issue66: add --workdir option to override where tox stores its ".tox" directory - and all of the virtualenv environment. Thanks Danring. - -- introduce per-venv list_dependencies_command which defaults - to "pip freeze" to obtain the list of installed packages. - Thanks Ted Shaw, Holger Krekel. - -- close issue66: add documentation to jenkins page on how to avoid - "too long shebang" lines when calling pip from tox. Note that we - can not use "python -m pip install X" by default because the latter - adds the CWD and pip will think X is installed if it is there. - "pip install X" does not do that. - -- new list_dependencies_command to influence how tox determines - which dependencies are installed in a testenv. - -- (experimental) New feature: When a search for a config file fails, tox tries loading - setup.cfg with a section prefix of "tox". - -- fix issue275: Introduce hooks ``tox_runtest_pre``` and - ``tox_runtest_post`` which run before and after the tests of a venv, - respectively. Thanks to Matthew Schinckel and itxaka serrano. - -- fix issue317: evaluate minversion before tox config is parsed completely. - Thanks Sachi King for the PR. - -2.3.2 ------ - -- fix issue314: fix command invocation with .py scripts on windows. - -- fix issue279: allow cross-section substitution when the value contains - posargs. Thanks Sachi King for the PR. - -2.3.1 ------ - -- fix issue294: re-allow cross-section substitution for setenv. - -2.3.0 ------ - -- DEPRECATE use of "indexservers" in tox.ini. It complicates - the internal code and it is recommended to rather use the - devpi system for managing indexes for pip. - -- fix issue285: make setenv processing fully lazy to fix regressions - of tox-2.2.X and so that we can now have testenv attributes like - "basepython" depend on environment variables that are set in - a setenv section. Thanks Nelfin for some tests and initial - work on a PR. - -- allow "#" in commands. This is slightly incompatible with commands - sections that used a comment after a "\" line continuation. - Thanks David Stanek for the PR. - -- fix issue289: fix build_sphinx target, thanks Barry Warsaw. - -- fix issue252: allow environment names with special characters. - Thanks Julien Castets for initial PR and patience. - -- introduce experimental tox_testenv_create(venv, action) and - tox_testenv_install_deps(venv, action) hooks to allow - plugins to do additional work on creation or installing - deps. These hooks are experimental mainly because of - the involved "venv" and session objects whose current public - API is not fully guranteed. - -- internal: push some optional object creation into tests because - tox core doesn't need it. - -2.2.1 ------ - -- fix bug where {envdir} substitution could not be used in setenv - if that env value is then used in {basepython}. Thanks Florian Bruhin. - -2.2.0 ------ - -- fix issue265 and add LD_LIBRARY_PATH to passenv on linux by default - because otherwise the python interpreter might not start up in - certain configurations (redhat software collections). Thanks David Riddle. - -- fix issue246: fix regression in config parsing by reordering - such that {envbindir} can be used again in tox.ini. Thanks Olli Walsh. - -- fix issue99: the {env:...} substitution now properly uses environment - settings from the ``setenv`` section. Thanks Itxaka Serrano. - -- fix issue281: make --force-dep work when urls are present in - dependency configs. Thanks Glyph Lefkowitz for reporting. - -- fix issue174: add new ``ignore_outcome`` testenv attribute which - can be set to True in which case it will produce a warning instead - of an error on a failed testenv command outcome. - Thanks Rebecka Gulliksson for the PR. - -- fix issue280: properly skip missing interpreter if - {envsitepackagesdir} is present in commands. Thanks BB:ceridwenv - - -2.1.1 ----------- - -- fix platform skipping for detox - -- report skipped platforms as skips in the summary - -2.1.0 ----------- - -- fix issue258, fix issue248, fix issue253: for non-test commands - (installation, venv creation) we pass in the full invocation environment. - -- remove experimental --set-home option which was hardly used and - hackily implemented (if people want home-directory isolation we should - figure out a better way to do it, possibly through a plugin) - -- fix issue259: passenv is now a line-list which allows to intersperse - comments. Thanks stefano-m. - -- allow envlist to be a multi-line list, to intersperse comments - and have long envlist settings split more naturally. Thanks Andre Caron. - -- introduce a TOX_TESTENV_PASSENV setting which is honored - when constructing the set of environment variables for test environments. - Thanks Marc Abramowitz for pushing in this direction. - - -2.0.2 ----------- - -- fix issue247: tox now passes the LANG variable from the tox invocation - environment to the test environment by default. - -- add SYSTEMDRIVE into default passenv on windows to allow pip6 to work. - Thanks Michael Krause. - - -2.0.1 ------------ - -- fix wheel packaging to properly require argparse on py26. - -2.0.0 ------------ - -- (new) introduce environment variable isolation: - tox now only passes the PATH and PIP_INDEX_URL variable from the tox - invocation environment to the test environment and on Windows - also ``SYSTEMROOT``, ``PATHEXT``, ``TEMP`` and ``TMP`` whereas - on unix additionally ``TMPDIR`` is passed. If you need to pass - through further environment variables you can use the new ``passenv`` setting, - a space-separated list of environment variable names. Each name - can make use of fnmatch-style glob patterns. All environment - variables which exist in the tox-invocation environment will be copied - to the test environment. - -- a new ``--help-ini`` option shows all possible testenv settings and - their defaults. - -- (new) introduce a way to specify on which platform a testenvironment is to - execute: the new per-venv "platform" setting allows to specify - a regular expression which is matched against sys.platform. - If platform is set and doesn't match the platform spec in the test - environment the test environment is ignored, no setup or tests are attempted. - -- (new) add per-venv "ignore_errors" setting, which defaults to False. - If ``True``, a non-zero exit code from one command will be ignored and - further commands will be executed (which was the default behavior in tox < - 2.0). If ``False`` (the default), then a non-zero exit code from one command - will abort execution of commands for that environment. - -- show and store in json the version dependency information for each venv - -- remove the long-deprecated "distribute" option as it has no effect these days. - -- fix issue233: avoid hanging with tox-setuptools integration example. Thanks simonb. - -- fix issue120: allow substitution for the commands section. Thanks - Volodymyr Vitvitski. - -- fix issue235: fix AttributeError with --installpkg. Thanks - Volodymyr Vitvitski. - -- tox has now somewhat pep8 clean code, thanks to Volodymyr Vitvitski. - -- fix issue240: allow to specify empty argument list without it being - rewritten to ".". Thanks Daniel Hahler. - -- introduce experimental (not much documented yet) plugin system - based on pytest's externalized "pluggy" system. - See tox/hookspecs.py for the current hooks. - -- introduce parser.add_testenv_attribute() to register an ini-variable - for testenv sections. Can be used from plugins through the - tox_add_option hook. - -- rename internal files -- tox offers no external API except for the - experimental plugin hooks, use tox internals at your own risk. - -- DEPRECATE distshare in documentation - - - -1.9.2 ------------ - -- backout ability that --force-dep substitutes name/versions in - requirement files due to various issues. - This fixes issue228, fixes issue230, fixes issue231 - which popped up with 1.9.1. - -1.9.1 ------------ - -- use a file instead of a pipe for command output in "--result-json". - Fixes some termination issues with python2.6. - -- allow --force-dep to override dependencies in "-r" requirements - files. Thanks Sontek for the PR. - -- fix issue227: use "-m virtualenv" instead of "-mvirtualenv" to make - it work with pyrun. Thanks Marc-Andre Lemburg. - - -1.9.0 ------------ - -- fix issue193: Remove ``--pre`` from the default ``install_command``; by - default tox will now only install final releases from PyPI for unpinned - dependencies. Use ``pip_pre = true`` in a testenv or the ``--pre`` - command-line option to restore the previous behavior. - -- fix issue199: fill resultlog structure ahead of virtualenv creation - -- refine determination if we run from Jenkins, thanks Borge Lanes. - -- echo output to stdout when ``--report-json`` is used - -- fix issue11: add a ``skip_install`` per-testenv setting which - prevents the installation of a package. Thanks Julian Krause. - -- fix issue124: ignore command exit codes; when a command has a "-" prefix, - tox will ignore the exit code of that command - -- fix issue198: fix broken envlist settings, e.g. {py26,py27}{-lint,} - -- fix issue191: lessen factor-use checks - - -1.8.1 ------------ - -- fix issue190: allow setenv to be empty. - -- allow escaping curly braces with "\". Thanks Marc Abramowitz for the PR. - -- allow "." names in environment names such that "py27-django1.7" is a - valid environment name. Thanks Alex Gaynor and Alex Schepanovski. - -- report subprocess exit code when execution fails. Thanks Marius - Gedminas. - -1.8.0 ------------ - -- new multi-dimensional configuration support. Many thanks to - Alexander Schepanovski for the complete PR with docs. - And to Mike Bayer and others for testing and feedback. - -- fix issue148: remove "__PYVENV_LAUNCHER__" from os.environ when starting - subprocesses. Thanks Steven Myint. - -- fix issue152: set VIRTUAL_ENV when running test commands, - thanks Florian Ludwig. - -- better report if we can't get version_info from an interpreter - executable. Thanks Floris Bruynooghe. - - -1.7.2 ------------ - -- fix issue150: parse {posargs} more like we used to do it pre 1.7.0. - The 1.7.0 behaviour broke a lot of OpenStack projects. - See PR85 and the issue discussions for (far) more details, hopefully - resulting in a more refined behaviour in the 1.8 series. - And thanks to Clark Boylan for the PR. - -- fix issue59: add a config variable ``skip-missing-interpreters`` as well as - command line option ``--skip-missing-interpreters`` which won't fail the - build if Python interpreters listed in tox.ini are missing. Thanks - Alexandre Conrad for PR104. - -- fix issue164: better traceback info in case of failing test commands. - Thanks Marc Abramowitz for PR92. - -- support optional env variable substitution, thanks Morgan Fainberg - for PR86. - -- limit python hashseed to 1024 on Windows to prevent possible - memory errors. Thanks March Schlaich for the PR90. - -1.7.1 ---------- - -- fix issue162: don't list python 2.5 as compatibiliy/supported - -- fix issue158 and fix issue155: windows/virtualenv properly works now: - call virtualenv through "python -m virtualenv" with the same - interpreter which invoked tox. Thanks Chris Withers, Ionel Maries Cristian. - -1.7.0 ---------- - -- don't lookup "pip-script" anymore but rather just "pip" on windows - as this is a pip implementation detail and changed with pip-1.5. - It might mean that tox-1.7 is not able to install a different pip - version into a virtualenv anymore. - -- drop Python2.5 compatibility because it became too hard due - to the setuptools-2.0 dropping support. tox now has no - support for creating python2.5 based environments anymore - and all internal special-handling has been removed. - -- merged PR81: new option --force-dep which allows to - override tox.ini specified dependencies in setuptools-style. - For example "--force-dep 'django<1.6'" will make sure - that any environment using "django" as a dependency will - get the latest 1.5 release. Thanks Bruno Oliveria for - the complete PR. - -- merged PR125: tox now sets "PYTHONHASHSEED" to a random value - and offers a "--hashseed" option to repeat a test run with a specific seed. - You can also use --hashsheed=noset to instruct tox to leave the value - alone. Thanks Chris Jerdonek for all the work behind this. - -- fix issue132: removing zip_safe setting (so it defaults to false) - to allow installation of tox - via easy_install/eggs. Thanks Jenisys. - -- fix issue126: depend on virtualenv>=1.11.2 so that we can rely - (hopefully) on a pip version which supports --pre. (tox by default - uses to --pre). also merged in PR84 so that we now call "virtualenv" - directly instead of looking up interpreters. Thanks Ionel Maries Cristian. - This also fixes issue140. - -- fix issue130: you can now set install_command=easy_install {opts} {packages} - and expect it to work for repeated tox runs (previously it only worked - when always recreating). Thanks jenisys for precise reporting. - -- fix issue129: tox now uses Popen(..., universal_newlines=True) to force - creation of unicode stdout/stderr streams. fixes a problem on specific - platform configs when creating virtualenvs with Python3.3. Thanks - Jorgen Sch?fer or investigation and solution sketch. - -- fix issue128: enable full substitution in install_command, - thanks for the PR to Ronald Evers - -- rework and simplify "commands" parsing and in particular posargs - substitutions to avoid various win32/posix related quoting issues. - -- make sure that the --installpkg option trumps any usedevelop settings - in tox.ini or - -- introduce --no-network to tox's own test suite to skip tests - requiring networks - -- introduce --sitepackages to force sitepackages=True in all - environments. - -- fix issue105 -- don't depend on an existing HOME directory from tox tests. - -1.6.1 ------ - -- fix issue119: {envsitepackagesdir} is now correctly computed and has - a better test to prevent regression. - -- fix issue116: make 1.6 introduced behaviour of changing to a - per-env HOME directory during install activities dependent - on "--set-home" for now. Should re-establish the old behaviour - when no option is given. - -- fix issue118: correctly have two tests use realpath(). Thanks Barry - Warsaw. - -- fix test runs on environments without a home directory - (in this case we use toxinidir as the homedir) - -- fix issue117: python2.5 fix: don't use ``--insecure`` option because - its very existence depends on presence of "ssl". If you - want to support python2.5/pip1.3.1 based test environments you need - to install ssl and/or use PIP_INSECURE=1 through ``setenv``. section. - -- fix issue102: change to {toxinidir} when installing dependencies. - this allows to use relative path like in "-rrequirements.txt". - -1.6.0 ------------------ - -- fix issue35: add new EXPERIMENTAL "install_command" testenv-option to - configure the installation command with options for dep/pkg install. - Thanks Carl Meyer for the PR and docs. - -- fix issue91: python2.5 support by vendoring the virtualenv-1.9.1 - script and forcing pip<1.4. Also the default [py25] environment - modifies the default installer_command (new config option) - to use pip without the "--pre" option which was introduced - with pip-1.4 and is now required if you want to install non-stable - releases. (tox defaults to install with "--pre" everywhere). - -- during installation of dependencies HOME is now set to a pseudo - location ({envtmpdir}/pseudo-home). If an index url was specified - a .pydistutils.cfg file will be written with an index_url setting - so that packages defining ``setup_requires`` dependencies will not - silently use your HOME-directory settings or https://pypi.python.org. - -- fix issue1: empty setup files are properly detected, thanks Anthon van - der Neuth - -- remove toxbootstrap.py for now because it is broken. - -- fix issue109 and fix issue111: multiple "-e" options are now combined - (previously the last one would win). Thanks Anthon van der Neut. - -- add --result-json option to write out detailed per-venv information - into a json report file to be used by upstream tools. - -- add new config options ``usedevelop`` and ``skipsdist`` as well as a - command line option ``--develop`` to install the package-under-test in develop mode. - thanks Monty Tailor for the PR. - -- always unset PYTHONDONTWRITEBYTE because newer setuptools doesn't like it - -- if a HOMEDIR cannot be determined, use the toxinidir. - -- refactor interpreter information detection to live in new - tox/interpreters.py file, tests in tests/test_interpreters.py. - -1.5.0 ------------------ - -- fix issue104: use setuptools by default, instead of distribute, - now that setuptools has distribute merged. - -- make sure test commands are searched first in the virtualenv - -- re-fix issue2 - add whitelist_externals to be used in ``[testenv*]`` - sections, allowing to avoid warnings for commands such as ``make``, - used from the commands value. - -- fix issue97 - allow substitutions to reference from other sections - (thanks Krisztian Fekete) - -- fix issue92 - fix {envsitepackagesdir} to actually work again - -- show (test) command that is being executed, thanks - Lukasz Balcerzak - -- re-license tox to MIT license - -- depend on virtualenv-1.9.1 - -- rename README.txt to README.rst to make bitbucket happier - - -1.4.3 ------------------ - -- use pip-script.py instead of pip.exe on win32 to avoid the lock exe - file on execution issue (thanks Philip Thiem) - -- introduce -l|--listenv option to list configured environments - (thanks Lukasz Balcerzak) - -- fix downloadcache determination to work according to docs: Only - make pip use a download cache if PIP_DOWNLOAD_CACHE or a - downloadcache=PATH testenv setting is present. (The ENV setting - takes precedence) - -- fix issue84 - pypy on windows creates a bin not a scripts venv directory - (thanks Lukasz Balcerzak) - -- experimentally introduce --installpkg=PATH option to install a package - rather than create/install an sdist package. This will still require - and use tox.ini and tests from the current working dir (and not from the - remote package). - -- substitute {envsitepackagesdir} with the package installation - directory (closes #72) (thanks g2p) - -- issue #70 remove PYTHONDONTWRITEBYTECODE workaround now that - virtualenv behaves properly (thanks g2p) - -- merged tox-quickstart command, contributed by Marc Abramowitz, which - generates a default tox.ini after asking a few questions - -- fix #48 - win32 detection of pypy and other interpreters that are on PATH - (thanks Gustavo Picon) - -- fix grouping of index servers, it is now done by name instead of - indexserver url, allowing to use it to separate dependencies - into groups even if using the same default indexserver. - -- look for "tox.ini" files in parent dirs of current dir (closes #34) - -- the "py" environment now by default uses the current interpreter - (sys.executable) make tox' own setup.py test execute tests with it - (closes #46) - -- change tests to not rely on os.path.expanduser (closes #60), - also make mock session return args[1:] for more precise checking (closes #61) - thanks to Barry Warsaw for both. - -1.4.2 ------------------ - -- fix some tests which fail if /tmp is a symlink to some other place -- "python setup.py test" now runs tox tests via tox :) - also added an example on how to do it for your project. - -1.4.1 ------------------ - -- fix issue41 better quoting on windows - you can now use "<" and ">" in - deps specifications, thanks Chris Withers for reporting - -1.4 ------------------ - -- fix issue26 - no warnings on absolute or relative specified paths for commands -- fix issue33 - commentchars are ignored in key-value settings allowing - for specifying commands like: python -c "import sys ; print sys" - which would formerly raise irritating errors because the ";" - was considered a comment -- tweak and improve reporting -- refactor reporting and virtualenv manipulation - to be more accessible from 3rd party tools -- support value substitution from other sections - with the {[section]key} syntax -- fix issue29 - correctly point to pytest explanation - for importing modules fully qualified -- fix issue32 - use --system-site-packages and don't pass --no-site-packages -- add python3.3 to the default env list, so early adopters can test -- drop python2.4 support (you can still have your tests run on -- fix the links/checkout howtos in the docs - python-2.4, just tox itself requires 2.5 or higher. - -1.3 ------------------ - -- fix: allow to specify wildcard filesystem paths when - specifying dependencies such that tox searches for - the highest version - -- fix issue issue21: clear PIP_REQUIRES_VIRTUALENV which avoids - pip installing to the wrong environment, thanks to bb's streeter - -- make the install step honour a testenv's setenv setting - (thanks Ralf Schmitt) - - -1.2 ------------------ - -- remove the virtualenv.py that was distributed with tox and depend - on >=virtualenv-1.6.4 (possible now since the latter fixes a few bugs - that the inlining tried to work around) -- fix issue10: work around UnicodeDecodeError when invoking pip (thanks - Marc Abramowitz) -- fix a problem with parsing {posargs} in tox commands (spotted by goodwill) -- fix the warning check for commands to be installed in testenvironment - (thanks Michael Foord for reporting) - -1.1 ------------------ - -- fix issue5 - don't require argparse for python versions that have it -- fix issue6 - recreate virtualenv if installing dependencies failed -- fix issue3 - fix example on frontpage -- fix issue2 - warn if a test command does not come from the test - environment -- fixed/enhanced: except for initial install always call "-U - --no-deps" for installing the sdist package to ensure that a package - gets upgraded even if its version number did not change. (reported on - TIP mailing list and IRC) -- inline virtualenv.py (1.6.1) script to avoid a number of issues, - particularly failing to install python3 environments from a python2 - virtualenv installation. -- rework and enhance docs for display on readthedocs.org - -1.0 ------------------ - -- move repository and toxbootstrap links to http://bitbucket.org/hpk42/tox -- fix issue7: introduce a "minversion" directive such that tox - bails out if it does not have the correct version. -- fix issue24: introduce a way to set environment variables for - for test commands (thanks Chris Rose) -- fix issue22: require virtualenv-1.6.1, obsoleting virtualenv5 (thanks Jannis Leidel) - and making things work with pypy-1.5 and python3 more seamlessly -- toxbootstrap.py (used by jenkins build slaves) now follows the latest release of virtualenv -- fix issue20: document format of URLs for specifying dependencies -- fix issue19: substitute Hudson for Jenkins everywhere following the renaming - of the project. NOTE: if you used the special [tox:hudson] - section it will now need to be named [tox:jenkins]. -- fix issue 23 / apply some ReST fixes -- change the positional argument specifier to use {posargs:} syntax and - fix issues #15 and #10 by refining the argument parsing method (Chris Rose) -- remove use of inipkg lazy importing logic - - the namespace/imports are anyway very small with tox. -- fix a fspath related assertion to work with debian installs which uses - symlinks -- show path of the underlying virtualenv invocation and bootstrap - virtualenv.py into a working subdir -- added a CONTRIBUTORS file - -0.9 ------------------ - -- fix pip-installation mixups by always unsetting PIP_RESPECT_VIRTUALENV - (thanks Armin Ronacher) -- issue1: Add a toxbootstrap.py script for tox, thanks to Sridhar - Ratnakumar -- added support for working with different and multiple PyPI indexservers. -- new option: -r|--recreate to force recreation of virtualenv -- depend on py>=1.4.0 which does not contain or install the py.test - anymore which is now a separate distribution "pytest". -- show logfile content if there is an error (makes CI output - more readable) - -0.8 ------------------ - -- work around a virtualenv limitation which crashes if - PYTHONDONTWRITEBYTECODE is set. -- run pip/easy installs from the environment log directory, avoids - naming clashes between env names and dependencies (thanks ronny) -- require a more recent version of py lib -- refactor and refine config detection to work from a single file - and to detect the case where a python installation overwrote - an old one and resulted in a new executable. This invalidates - the existing virtualenvironment now. -- change all internal source to strip trailing whitespaces - -0.7 ------------------ - -- use virtualenv5 (my own fork of virtualenv3) for now to create python3 - environments, fixes a couple of issues and makes tox more likely to - work with Python3 (on non-windows environments) - -- add ``sitepackages`` option for testenv sections so that environments - can be created with access to globals (default is not to have access, - i.e. create environments with ``--no-site-packages``. - -- addressing issue4: always prepend venv-path to PATH variable when calling subprocesses - -- fix issue2: exit with proper non-zero return code if there were - errors or test failures. - -- added unittest2 examples contributed by Michael Foord - -- only allow 'True' or 'False' for boolean config values - (lowercase / uppercase is irrelevant) - -- recreate virtualenv on changed configurations - -0.6 ------------------ - -- fix OSX related bugs that could cause the caller's environment to get - screwed (sorry). tox was using the same file as virtualenv for tracking - the Python executable dependency and there also was confusion wrt links. - this should be fixed now. - -- fix long description, thanks Michael Foord - -0.5 ------------------ - -- initial release diff -r 581a1b974cd2aeeba670d3e8ec53cab45c030a95 -r 3820d490129fb9fb96c25cc9f941e4d6caf8c337 CONTRIBUTORS --- a/CONTRIBUTORS +++ /dev/null @@ -1,34 +0,0 @@ - -contributions: - -Krisztian Fekete -Marc Abramowitz -Aleaxner Schepanovski -Sridhar Ratnakumar -Barry Warsaw -Chris Rose -Jannis Leidl -Ronny Pfannschmidt -Lukasz Balcerzak -Philip Thiem -Monty Taylor -Bruno Oliveira -Ionel Maries Cristian -Anatoly techntonik -Matt Jeffery -Chris Jerdonek -Ronald Evers -Carl Meyer -Anthon van der Neuth -Matt Good -Mattieu Agopian -Asmund Grammeltwedt -Ionel Maries Cristian -Julian Krause -Alexandre Conrad -Morgan Fainberg -Marc Schlaich -Clark Boylan -Eugene Yunak -Mark Hirota -Itxaka Serrano diff -r 581a1b974cd2aeeba670d3e8ec53cab45c030a95 -r 3820d490129fb9fb96c25cc9f941e4d6caf8c337 ISSUES.txt --- a/ISSUES.txt +++ /dev/null @@ -1,162 +0,0 @@ -introduce package and setup.py less sdist creation ------------------------------------------------------------ - -Example sections for tox itself:: - - [pkgdef] - basename = pytest - description = virtualenv-based automation of test activities - authors = holger krekel - url = http://tox.testrun.org - entry_points = console_scripts: tox=tox:cmdline - requires = py - packages = - preuploadenvs = sphinx - - classifiers= - Development Status :: 6 - Mature - Intended Audience :: Developers - License :: OSI Approved :: MIT License - Topic :: Software Development :: Testing - Topic :: Software Development :: Libraries - Topic :: Utilities - -This would generate three different packages: - -- the main one containing the app with the specified description, etc. - It has a test-requires pointing to the test package, - which classifiers -- the test package only containing the tests and setup.py - depending on the main package and all requirements collected from the - testenv -- the doc package containing generated html and txt files - (to be installable via a setup.py as well?) - -Here is what happens when tox is invoked now: - -- version gets auto-incremented (in setup.py and $PACKAGE/__init__.py files) -- main setup.py generated, files copied, sdist generated -- test setup.py generated, files copied, sdist generated -- doc setup.py generated, doc environment run, files copied, sdist generated - -- if --upload is specified, all packages are uploaded under - their respective names: - tox-VER - tests-tox-VER - docs-tox-VER - -- tox --sync creates a test result file for the tests-tox-VER run - and uploads it to testrun.org -- .tox/projectkeys contains a file that - was created by visiting testrun.org and registering/logging in. - -- download toxslave and execute it: - - toxslave --userkey=... [--project tox] - - which will query testrun.org for outstanding testruns - [for the tox project], download packages, execute them - and report back to the server - -merge tox and detox? ----------------------------------------------------------------- - -maybe it's time to merge it? - -http://lists.idyll.org/pipermail/testing-in-python/2012-October/005205.html -pyc files / test distributions ------------------------------------------------------------ - -investigate pyc cleaning, see - -http://lists.idyll.org/pipermail/testing-in-python/2012-October/005205.html - - -allow config overlays ------------------------------------------------------------ - -tags: 1.5 feature - -You can specify wildcards in section titles. - - [testenv] - testsrc=testing/**.py - commands=py.test {posargs} - - [testenv:py3*] - use2to3 = True - - [testenv:py32] - deps = - ... - -Configuration values are now looked up in a stricter-matches-first -manner: If environment "py32" is considered then first the -section under py32, then py3*, then testenv. - - -support 2to3 configurations / test file postprocessing ------------------------------------------------------------ - -tags: 1.5 feature - -Tests should be copied and transformed before being executed. -Setup a test definition:: - - [testenv] - testsrc=testing/**.py - commands=py.test {posargs} - - [testenv:py3*] - use2to3 = True - -would transform all specified test files for all py3 environments -such that a subsequent test run:: - - $ tox -e py25,py32 testing/test_hello.py - -causes a transformation of the test files to prepare test runs on -Python3 interpreters. The ``posargs`` specified files will be rewritten -to point to the transformed test files. - -export support for travis ----------------------------------------- -tag: 1.6 feature - -look into ways to support integration of tox with travis. - -- run tox from travis -- let tox read commands from travis config -- generate .travis.yml from tox.ini -- generate tox.ini from .travis.yml - -For the last two, take a look at http://pypi.python.org/pypi/panci/ - -allow user-specific python interpreters ------------------------------------------------- - -users should be able to define their set of python executables -to be used for creating virtualenvs. -.toxrc/interpreters: -pypy-c=~/p/pypy/branch/sys-prefix/pypy-c -... - -non-cached test dependencies ---------------------------------------------------------------- - -if there is a dependency on a URL whose content changes -the download-cache mechanism will prevent it from being reloaded. -Introduce a 'nocache:' prefix which will inhibit using the cache. -Also make and document a guarantee on the deps order so that -one can influence the exact configuration (e.g. use a dev-version -of some package which a later dependency or the original -package depends upon - i.e. deps should be installed first). - - -test and make "in-pkg" tests work ---------------------------------------- - -it is common to put tests into pkg subdirs, possibly -even with an __init__. See if/how this can be made -to work. Maybe also re-consider how py.test does its -importing, maybe add a pytest_addsyspath(testmodule) -and look how nose does it in detail. diff -r 581a1b974cd2aeeba670d3e8ec53cab45c030a95 -r 3820d490129fb9fb96c25cc9f941e4d6caf8c337 LICENSE --- a/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ - -Permission is hereby granted, free of charge, to any person obtaining a -copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be included -in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - diff -r 581a1b974cd2aeeba670d3e8ec53cab45c030a95 -r 3820d490129fb9fb96c25cc9f941e4d6caf8c337 MANIFEST.in --- a/MANIFEST.in +++ /dev/null @@ -1,9 +0,0 @@ -include CHANGELOG -include README.rst -include CONTRIBUTORS -include ISSUES.txt -include LICENSE -include setup.py -include tox.ini -graft doc -graft tests diff -r 581a1b974cd2aeeba670d3e8ec53cab45c030a95 -r 3820d490129fb9fb96c25cc9f941e4d6caf8c337 README.rst --- a/README.rst +++ b/README.rst @@ -1,25 +1,4 @@ +We moved to github +------------------- -What is Tox? --------------------- - -Tox is a generic virtualenv management and test command line tool you can use for: - -* checking your package installs correctly with different Python versions and - interpreters - -* running your tests in each of the environments, configuring your test tool of choice - -* acting as a frontend to Continuous Integration servers, greatly - reducing boilerplate and merging CI and shell-based testing. - -For more information and the repository please checkout: - -- homepage: http://tox.testrun.org - -- repository: https://bitbucket.org/hpk42/tox - - -have fun, - -holger krekel, 2015 - +https://github.com/tox-dev/tox diff -r 581a1b974cd2aeeba670d3e8ec53cab45c030a95 -r 3820d490129fb9fb96c25cc9f941e4d6caf8c337 doc/Makefile --- a/doc/Makefile +++ /dev/null @@ -1,140 +0,0 @@ -# Makefile for Sphinx documentation -# - -# You can set these variables from the command line. -SPHINXOPTS = -SPHINXBUILD = sphinx-build -PAPER = -BUILDDIR = _build - -# Internal variables. -PAPEROPT_a4 = -D latex_paper_size=a4 -PAPEROPT_letter = -D latex_paper_size=letter -ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . - -SITETARGET=$(shell ./_getdoctarget.py) - -.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest - -help: - @echo "Please use \`make ' where is one of" - @echo " html to make standalone HTML files" - @echo " dirhtml to make HTML files named index.html in directories" - @echo " singlehtml to make a single large HTML file" - @echo " pickle to make pickle files" - @echo " json to make JSON files" - @echo " htmlhelp to make HTML files and a HTML help project" - @echo " qthelp to make HTML files and a qthelp project" - @echo " devhelp to make HTML files and a Devhelp project" - @echo " epub to make an epub" - @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" - @echo " latexpdf to make LaTeX files and run them through pdflatex" - @echo " text to make text files" - @echo " man to make manual pages" - @echo " changes to make an overview of all changed/added/deprecated items" - @echo " linkcheck to check all external links for integrity" - @echo " doctest to run all doctests embedded in the documentation (if enabled)" - -clean: - -rm -rf $(BUILDDIR)/* - - -install: clean html - @rsync -avz $(BUILDDIR)/html/ testrun.org:/www/testrun.org/tox/latest - @rsync -avz $(BUILDDIR)/html/ testrun.org:/www/testrun.org/tox/$(SITETARGET) - #dev - #latexpdf - #@scp $(BUILDDIR)/latex/*.pdf testrun.org:www-tox/latest - -html: - $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html - @echo - @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." - -dirhtml: - $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml - @echo - @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." - -singlehtml: - $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml - @echo - @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml." - -pickle: - $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle - @echo - @echo "Build finished; now you can process the pickle files." - -json: - $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json - @echo - @echo "Build finished; now you can process the JSON files." - -htmlhelp: - $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp - @echo - @echo "Build finished; now you can run HTML Help Workshop with the" \ - ".hhp project file in $(BUILDDIR)/htmlhelp." - -qthelp: - $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp - @echo - @echo "Build finished; now you can run "qcollectiongenerator" with the" \ - ".qhcp project file in $(BUILDDIR)/qthelp, like this:" - @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/tox.qhcp" - @echo "To view the help file:" - @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/tox.qhc" - -devhelp: - $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp - @echo - @echo "Build finished." - @echo "To view the help file:" - @echo "# mkdir -p $$HOME/.local/share/devhelp/tox" - @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/tox" - @echo "# devhelp" - -epub: - $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub - @echo - @echo "Build finished. The epub file is in $(BUILDDIR)/epub." - -latex: - $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex - @echo - @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex." - @echo "Run \`make' in that directory to run these through (pdf)latex" \ - "(use \`make latexpdf' here to do that automatically)." - -latexpdf: - $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex - @echo "Running LaTeX files through pdflatex..." - make -C $(BUILDDIR)/latex all-pdf - @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." - -text: - $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text - @echo - @echo "Build finished. The text files are in $(BUILDDIR)/text." - -man: - $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man - @echo - @echo "Build finished. The manual pages are in $(BUILDDIR)/man." - -changes: - $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes - @echo - @echo "The overview file is in $(BUILDDIR)/changes." - -linkcheck: - $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck - @echo - @echo "Link check complete; look for any errors in the above output " \ - "or in $(BUILDDIR)/linkcheck/output.txt." - -doctest: - $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest - @echo "Testing of doctests in the sources finished, look at the " \ - "results in $(BUILDDIR)/doctest/output.txt." diff -r 581a1b974cd2aeeba670d3e8ec53cab45c030a95 -r 3820d490129fb9fb96c25cc9f941e4d6caf8c337 doc/_getdoctarget.py --- a/doc/_getdoctarget.py +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env python - -import py - -def get_version_string(): - fn = py.path.local(__file__).join("..", "..", - "tox", "__init__.py") - for line in fn.readlines(): - if "version" in line and not line.strip().startswith('#'): - return eval(line.split("=")[-1]) - -def get_minor_version_string(): - return ".".join(get_version_string().split(".")[:2]) - -if __name__ == "__main__": - print(get_minor_version_string()) diff -r 581a1b974cd2aeeba670d3e8ec53cab45c030a95 -r 3820d490129fb9fb96c25cc9f941e4d6caf8c337 doc/_static/sphinxdoc.css --- a/doc/_static/sphinxdoc.css +++ /dev/null @@ -1,339 +0,0 @@ -/* - * sphinxdoc.css_t - * ~~~~~~~~~~~~~~~ - * - * Sphinx stylesheet -- sphinxdoc theme. Originally created by - * Armin Ronacher for Werkzeug. - * - * :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS. - * :license: BSD, see LICENSE for details. - * - */ - - at import url("basic.css"); - -/* -- page layout ----------------------------------------------------------- */ - -body { - font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva', - 'Verdana', sans-serif; - font-size: 1.1em; - letter-spacing: -0.01em; - line-height: 150%; - text-align: center; - background-color: #BFD1D4; - color: black; - padding: 0; - border: 1px solid #aaa; - - margin: 0px 80px 0px 80px; - min-width: 740px; -} - -div.document { - background-color: white; - text-align: left; - background-image: url(contents.png); - background-repeat: repeat-x; -} - -div.bodywrapper { - margin: 0 240px 0 0; - border-right: 1px solid #ccc; -} - -div.body { - margin: 0; - padding: 0.5em 20px 20px 20px; -} - -div.related { - font-size: 0.8em; -} - -div.related ul { - background-image: url(navigation.png); - height: 2em; - border-top: 1px solid #ddd; - border-bottom: 1px solid #ddd; -} - -div.related ul li { - margin: 0; - padding: 0; - height: 2em; - float: left; -} - -div.related ul li.right { - float: right; - margin-right: 5px; -} - -div.related ul li a { - margin: 0; - padding: 0 5px 0 5px; - line-height: 1.75em; - color: #EE9816; -} - -div.related ul li a:hover { - color: #3CA8E7; -} - -div.sphinxsidebarwrapper { - padding: 0; -} - -div.sphinxsidebar { - margin: 0; - padding: 0.5em 15px 15px 0; - width: 210px; - float: right; - font-size: 1em; - text-align: left; -} - -div.sphinxsidebar h3, div.sphinxsidebar h4 { - margin: 1em 0 0.5em 0; - font-size: 1em; - padding: 0.1em 0 0.1em 0.5em; - color: white; - border: 1px solid #86989B; - background-color: #AFC1C4; -} - -div.sphinxsidebar h3 a { - color: white; -} - -div.sphinxsidebar ul { - padding-left: 1.5em; - margin-top: 7px; - padding: 0; - line-height: 130%; -} - -div.sphinxsidebar ul ul { - margin-left: 20px; -} - -div.footer { - background-color: #E3EFF1; - color: #86989B; - padding: 3px 8px 3px 0; - clear: both; - font-size: 0.8em; - text-align: right; -} - -div.footer a { - color: #86989B; - text-decoration: underline; -} - -/* -- body styles ----------------------------------------------------------- */ - -p { - margin: 0.8em 0 0.5em 0; -} - -a { - color: #CA7900; - text-decoration: none; -} - -a:hover { - color: #2491CF; -} - -div.body a { - text-decoration: underline; -} - -h1 { - margin: 0; - padding: 0.7em 0 0.3em 0; - font-size: 1.5em; - color: #11557C; -} - -h2 { - margin: 1.3em 0 0.2em 0; - font-size: 1.35em; - padding: 0; -} - -h3 { - margin: 1em 0 -0.3em 0; - font-size: 1.2em; -} - -div.body h1 a, div.body h2 a, div.body h3 a, div.body h4 a, div.body h5 a, div.body h6 a { - color: black!important; -} - -h1 a.anchor, h2 a.anchor, h3 a.anchor, h4 a.anchor, h5 a.anchor, h6 a.anchor { - display: none; - margin: 0 0 0 0.3em; - padding: 0 0.2em 0 0.2em; - color: #aaa!important; -} - -h1:hover a.anchor, h2:hover a.anchor, h3:hover a.anchor, h4:hover a.anchor, -h5:hover a.anchor, h6:hover a.anchor { - display: inline; -} - -h1 a.anchor:hover, h2 a.anchor:hover, h3 a.anchor:hover, h4 a.anchor:hover, -h5 a.anchor:hover, h6 a.anchor:hover { - color: #777; - background-color: #eee; -} - -a.headerlink { - color: #c60f0f!important; - font-size: 1em; - margin-left: 6px; - padding: 0 4px 0 4px; - text-decoration: none!important; -} - -a.headerlink:hover { - background-color: #ccc; - color: white!important; -} - -cite, code, tt { - font-family: 'Consolas', 'Deja Vu Sans Mono', - 'Bitstream Vera Sans Mono', monospace; - font-size: 0.95em; - letter-spacing: 0.01em; -} - -tt { - background-color: #f2f2f2; - border-bottom: 1px solid #ddd; - color: #333; -} - -tt.descname, tt.descclassname, tt.xref { - border: 0; -} - -hr { - border: 1px solid #abc; - margin: 2em; -} - -a tt { - border: 0; - color: #CA7900; -} - -a tt:hover { - color: #2491CF; -} - -pre { - font-family: 'Consolas', 'Deja Vu Sans Mono', - 'Bitstream Vera Sans Mono', monospace; - font-size: 0.95em; - letter-spacing: 0.015em; - line-height: 120%; - padding: 0.5em; - border: 1px solid #ccc; - background-color: #f8f8f8; -} - -pre a { - color: inherit; - text-decoration: underline; -} - -td.linenos pre { - padding: 0.5em 0; -} - -div.quotebar { - background-color: #f8f8f8; - max-width: 250px; - float: right; - padding: 2px 7px; - border: 1px solid #ccc; -} - -div.topic { - background-color: #f8f8f8; -} - -table { - border-collapse: collapse; - margin: 0 -0.5em 0 -0.5em; -} - -table td, table th { - padding: 0.2em 0.5em 0.2em 0.5em; -} - -div.admonition, div.warning { - font-size: 0.9em; - margin: 1em 0 1em 0; - border: 1px solid #86989B; - background-color: #f7f7f7; - padding: 0; -} - -div.admonition p, div.warning p { - margin: 0.5em 1em 0.5em 1em; - padding: 0; -} - -div.admonition pre, div.warning pre { - margin: 0.4em 1em 0.4em 1em; -} - -div.admonition p.admonition-title, -div.warning p.admonition-title { - margin: 0; - padding: 0.1em 0 0.1em 0.5em; - color: white; - border-bottom: 1px solid #86989B; - font-weight: bold; - background-color: #AFC1C4; -} - -div.warning { - border: 1px solid #940000; -} - -div.warning p.admonition-title { - background-color: #CF0000; - border-bottom-color: #940000; -} - -div.admonition ul, div.admonition ol, -div.warning ul, div.warning ol { - margin: 0.1em 0.5em 0.5em 3em; - padding: 0; -} - -div.versioninfo { - margin: 1em 0 0 0; - border: 1px solid #ccc; - background-color: #DDEAF0; - padding: 8px; - line-height: 1.3em; - font-size: 0.9em; -} - -.viewcode-back { - font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva', - 'Verdana', sans-serif; -} - -div.viewcode-block:target { - background-color: #f4debf; - border-top: 1px solid #ac9; - border-bottom: 1px solid #ac9; -} diff -r 581a1b974cd2aeeba670d3e8ec53cab45c030a95 -r 3820d490129fb9fb96c25cc9f941e4d6caf8c337 doc/_templates/indexsidebar.html --- a/doc/_templates/indexsidebar.html +++ /dev/null @@ -1,21 +0,0 @@ -

Download

-{% if version.endswith('(hg)') %} -

This documentation is for version {{ version }}, which is - not released yet.

-

You can use it from the - Mercurial repo or look for - released versions in the Python - Package Index.

-{% else %} -

Current: {{ version }} -[Changes]

-

-tox on PyPI -

-
pip install tox
-{% endif %} - -

Questions? Suggestions?

- -

Checkout support channels -

diff -r 581a1b974cd2aeeba670d3e8ec53cab45c030a95 -r 3820d490129fb9fb96c25cc9f941e4d6caf8c337 doc/_templates/layout.html --- a/doc/_templates/layout.html +++ /dev/null @@ -1,15 +0,0 @@ -{% extends "!layout.html" %} - - -{% block footer %} -{{ super() }} - - -{% endblock %} diff -r 581a1b974cd2aeeba670d3e8ec53cab45c030a95 -r 3820d490129fb9fb96c25cc9f941e4d6caf8c337 doc/_templates/localtoc.html --- a/doc/_templates/localtoc.html +++ /dev/null @@ -1,36 +0,0 @@ - -{%- if pagename != "search" %} - - -{%- endif %} - -

quicklinks

-
- - -
- home - - examples -
- install - - changelog -
- config - - issues[bb] -
- support - -
-
-{% extends "basic/localtoc.html" %} - diff -r 581a1b974cd2aeeba670d3e8ec53cab45c030a95 -r 3820d490129fb9fb96c25cc9f941e4d6caf8c337 doc/announce/release-0.5.txt --- a/doc/announce/release-0.5.txt +++ /dev/null @@ -1,26 +0,0 @@ -tox 0.5: a generic virtualenv and test management tool for Python -=========================================================================== - -I have been talking about with various people in the last year and -am happy to now announce the first release of ``tox``. It aims -to automate tedious Python related test activities driven -from a simple ``tox.ini`` file, including: - -* creation and management of different virtualenv environments -* installing your package into each of them -* running your test tool of choice (including e.g. running sphinx checks) -* testing packages against each other without needing to upload to PyPI - -``tox`` runs well on Python2.4 up until Python3.1 and integrates -well with Continuous Integration servers Jenkins. There are many -real-life examples and a good chunk of docs. Read it up on - - http://codespeak.net/tox - -and please report any issues. This is a fresh project and -i'd like to drive further improvements from real world needs. - -best, - -holger krekel - diff -r 581a1b974cd2aeeba670d3e8ec53cab45c030a95 -r 3820d490129fb9fb96c25cc9f941e4d6caf8c337 doc/announce/release-1.0.txt --- a/doc/announce/release-1.0.txt +++ /dev/null @@ -1,55 +0,0 @@ -tox 1.0: the rapid multi-python test automatizer -=========================================================================== - -I am happy to announce tox 1.0, mostly a stabilization and streamlined -release. TOX automates tedious test activities driven from a -simple ``tox.ini`` file, including: - -* creation and management of different virtualenv environments with - different Python interpreters -* packaging and installing your package into each of them -* running your test tool of choice, be it nose, py.test or unittest2 or - other tools such as "sphinx" doc checks -* testing dev packages against each other without needing to upload to PyPI - -Docs and examples are at: - - http://tox.readthedocs.org - -Installation: - - pip install -U tox - -Note that code hosting and issue tracking has moved from Google to Bitbucket: - - https://bitbucket.org/hpk42/tox - -The 1.0 release includes contributions and is based on feedback and -work from Chris Rose, Ronny Pfannschmidt, Jannis Leidel, Jakob Kaplan-Moss, -Sridhar Ratnakumar, Carl Meyer and others. Many thanks! - -best, -Holger Krekel - -CHANGES ---------------------- - -- fix issue24: introduce a way to set environment variables for - for test commands (thanks Chris Rose) -- fix issue22: require virtualenv-1.6.1, obsoleting virtualenv5 (thanks Jannis Leidel) - and making things work with pypy-1.5 and python3 more seemlessly -- toxbootstrap.py (used by jenkins build slaves) now follows the latest release of virtualenv -- fix issue20: document format of URLs for specifying dependencies -- fix issue19: substitute Hudson for Jenkins everywhere following the renaming - of the project. NOTE: if you used the special [tox:hudson] - section it will now need to be named [tox:jenkins]. -- fix issue 23 / apply some ReST fixes -- change the positional argument specifier to use {posargs:} syntax and - fix issues #15 and #10 by refining the argument parsing method (Chris Rose) -- remove use of inipkg lazy importing logic - - the namespace/imports are anyway very small with tox. -- fix a fspath related assertion to work with debian installs which uses - symlinks -- show path of the underlying virtualenv invocation and bootstrap - virtualenv.py into a working subdir -- added a CONTRIBUTORS file diff -r 581a1b974cd2aeeba670d3e8ec53cab45c030a95 -r 3820d490129fb9fb96c25cc9f941e4d6caf8c337 doc/announce/release-1.1.txt --- a/doc/announce/release-1.1.txt +++ /dev/null @@ -1,50 +0,0 @@ -tox 1.1: the rapid multi-python test automatizer -=========================================================================== - -I am happy to announce tox 1.1, a bug fix release easing some commong -workflows. TOX automates tedious test activities driven from a simple -``tox.ini`` file, including: - -* creation and management of different virtualenv environments with - different Python interpreters -* packaging and installing your package into each of them -* running your test tool of choice, be it nose, py.test or unittest2 or - other tools such as "sphinx" doc checks -* testing dev packages against each other without needing to upload to PyPI - -It works well on virtually all Python interpreters that support virtualenv. - -Docs and examples are at: - - http://tox.readthedocs.org - -Installation: - - pip install -U tox - -Note that code hosting and issue tracking has moved from Google to Bitbucket: - - https://bitbucket.org/hpk42/tox - -The 1.0 release includes contributions and is based on feedback and -work from Chris Rose, Ronny Pfannschmidt, Jannis Leidel, Jakob Kaplan-Moss, -Sridhar Ratnakumar, Carl Meyer and others. Many thanks! - -best, -Holger Krekel - -CHANGES ---------------------- - -- fix issue5 - don't require argparse for python versions that have it -- fix issue6 - recreate virtualenv if installing dependencies failed -- fix issue3 - fix example on frontpage -- fix issue2 - warn if a test command does not come from the test - environment -- fixed/enhanced: except for initial install always call "-U - --no-deps" for installing the sdist package to ensure that a package - gets upgraded even if its version number did not change. (reported on - TIP mailing list and IRC) -- inline virtualenv.py (1.6.1) script to avoid a number of issues, - particularly failing to install python3 environents from a python2 - virtualenv installation. diff -r 581a1b974cd2aeeba670d3e8ec53cab45c030a95 -r 3820d490129fb9fb96c25cc9f941e4d6caf8c337 doc/announce/release-1.2.txt --- a/doc/announce/release-1.2.txt +++ /dev/null @@ -1,42 +0,0 @@ -tox 1.2: the virtualenv-based test run automatizer -=========================================================================== - -I am happy to announce tox 1.2, now using and depending on the latest -virtualenv code and containing some bug fixes. TOX automates tedious -test activities driven from a simple ``tox.ini`` file, including: - -* creation and management of different virtualenv environments with - different Python interpreters -* packaging and installing your package into each of them -* running your test tool of choice, be it nose, py.test or unittest2 or - other tools such as "sphinx" doc checks -* testing dev packages against each other without needing to upload to PyPI - -It works well on virtually all Python interpreters that support virtualenv. - -Docs and examples are at: - - http://tox.testrun.org/ - -Installation: - - pip install -U tox - -code hosting and issue tracking on bitbucket: - - https://bitbucket.org/hpk42/tox - -best, -Holger Krekel - -1.2 compared to 1.1 ---------------------- - -- remove the virtualenv.py that was distributed with tox and depend - on virtualenv-1.6.4 (possible now since the latter fixes a few bugs - that the inling tried to work around) -- fix issue10: work around UnicodeDecodeError when inokving pip (thanks - Marc Abramowitz) -- fix a problem with parsing {posargs} in tox commands (spotted by goodwill) -- fix the warning check for commands to be installed in testevironment - (thanks Michael Foord for reporting) diff -r 581a1b974cd2aeeba670d3e8ec53cab45c030a95 -r 3820d490129fb9fb96c25cc9f941e4d6caf8c337 doc/announce/release-1.3.txt --- a/doc/announce/release-1.3.txt +++ /dev/null @@ -1,41 +0,0 @@ -tox 1.3: the virtualenv-based test run automatizer -=========================================================================== - -I am happy to announce tox 1.3, containing a few improvements -over 1.2. TOX automates tedious test activities driven from a -simple ``tox.ini`` file, including: - -* creation and management of different virtualenv environments - with different Python interpreters -* packaging and installing your package into each of them -* running your test tool of choice, be it nose, py.test or unittest2 or other tools such as "sphinx" doc checks -* testing dev packages against each other without needing to upload to PyPI - -Docs and examples are at: - - http://tox.testrun.org/ - -Installation: - - pip install -U tox - -code hosting and issue tracking on bitbucket: - - https://bitbucket.org/hpk42/tox - -best, -Holger Krekel - -1.3 ------------------ - -- fix: allow to specify wildcard filesystem paths when - specifiying dependencies such that tox searches for - the highest version - -- fix issue issue21: clear PIP_REQUIRES_VIRTUALENV which avoids - pip installing to the wrong environment, thanks to bb's streeter - -- make the install step honour a testenv's setenv setting - (thanks Ralf Schmitt) - diff -r 581a1b974cd2aeeba670d3e8ec53cab45c030a95 -r 3820d490129fb9fb96c25cc9f941e4d6caf8c337 doc/announce/release-1.4.3.txt --- a/doc/announce/release-1.4.3.txt +++ /dev/null @@ -1,97 +0,0 @@ -tox 1.4.3: the Python virtualenv-based testing automatizer -============================================================================= - -tox 1.4.3 fixes some bugs and introduces a new script and two new options: - -- "tox-quickstart" - run this script, answer a few questions, and - get a tox.ini created for you (thanks Marc Abramowitz) - -- "tox -l" lists configured environment names (thanks Lukasz Balcerzak) - -- (experimental) "--installpkg=localpath" option which will skip the - sdist-creation of a package and instead install the given localpath package. - -- use pip-script.py instead of pip.exe on win32 to avoid windows locking - the .exe - -Note that the sister project "detox" should continue to work - it's a -separately released project which drives tox test runs on multiple CPUs -in parallel. - -More documentation: - - http://tox.testrun.org/ - -Installation: - - pip install -U tox - -repository hosting and issue tracking on bitbucket: - - https://bitbucket.org/hpk42/tox - - -What is tox? ----------------- - -tox standardizes and automates tedious python driven test activities -driven from a simple ``tox.ini`` file, including: - -* creation and management of different virtualenv environments - with different Python interpreters -* packaging and installing your package into each of them -* running your test tool of choice, be it nose, py.test or unittest2 or other tools such as "sphinx" doc checks -* testing dev packages against each other without needing to upload to PyPI - -best, -Holger Krekel - - -CHANGELOG -================ - -1.4.3 (compared to 1.4.2) --------------------------------- - -- introduce -l|--listenv option to list configured environments - (thanks Lukasz Balcerzak) - -- fix downloadcache determination to work according to docs: Only - make pip use a download cache if PIP_DOWNLOAD_CACHE or a - downloadcache=PATH testenv setting is present. (The ENV setting - takes precedence) - -- fix issue84 - pypy on windows creates a bin not a scripts venv directory - (thanks Lukasz Balcerzak) - -- experimentally introduce --installpkg=PATH option to install a package rather than - create/install an sdist package. This will still require and use - tox.ini and tests from the current working dir (and not from the remote - package). - -- substitute {envsitepackagesdir} with the package installation directory (closes #72) - (thanks g2p) - -- issue #70 remove PYTHONDONTWRITEBYTECODE workaround now that - virtualenv behaves properly (thanks g2p) - -- merged tox-quickstart command, contributed by Marc Abramowitz, which - generates a default tox.ini after asking a few questions - -- fix #48 - win32 detection of pypy and other interpreters that are on PATH - (thanks Gustavo Picon) - -- fix grouping of index servers, it is now done by name instead of - indexserver url, allowing to use it to separate dependencies - into groups even if using the same default indexserver. - -- look for "tox.ini" files in parent dirs of current dir (closes #34) - -- the "py" environment now by default uses the current interpreter - (sys.executable) make tox' own setup.py test execute tests with it - (closes #46) - -- change tests to not rely on os.path.expanduser (closes #60), - also make mock session return args[1:] for more precise checking (closes #61) - thanks to Barry Warszaw for both. - diff -r 581a1b974cd2aeeba670d3e8ec53cab45c030a95 -r 3820d490129fb9fb96c25cc9f941e4d6caf8c337 doc/announce/release-1.4.txt --- a/doc/announce/release-1.4.txt +++ /dev/null @@ -1,62 +0,0 @@ -tox 1.4: the virtualenv-based test run automatizer -============================================================================= - -I am happy to announce tox 1.4 which brings: - -- improvements with configuration file syntax, now allowing re-using - selected settings across config file sections. see http://testrun.org/tox/latest/config.html#substitution-for-values-from-other-sections - -- terminal reporting was simplified and streamlined. Now with - verbosity==0 (the default), less information will be shown - and you can use one or multiple "-v" options to increase verbosity. - -- internal re-organisation so that the separately released "detox" - tool can reuse tox code to implement a fully distributed tox run. - -More documentation: - - http://tox.testrun.org/ - -Installation: - - pip install -U tox - -code hosting and issue tracking on bitbucket: - - https://bitbucket.org/hpk42/tox - -What is tox? ----------------- - -tox standardizes and automates tedious test activities driven from a -simple ``tox.ini`` file, including: - -* creation and management of different virtualenv environments - with different Python interpreters -* packaging and installing your package into each of them -* running your test tool of choice, be it nose, py.test or unittest2 or other tools such as "sphinx" doc checks -* testing dev packages against each other without needing to upload to PyPI - -best, -Holger Krekel - - -1.4 ------------------ - -- fix issue26 - no warnings on absolute or relative specified paths for commands -- fix issue33 - commentchars are ignored in key-value settings allowing - for specifying commands like: python -c "import sys ; print sys" - which would formerly raise irritating errors because the ";" - was considered a comment -- tweak and improve reporting -- refactor reporting and virtualenv manipulation - to be more accessible from 3rd party tools -- support value substitution from other sections - with the {[section]key} syntax -- fix issue29 - correctly point to pytest explanation - for importing modules fully qualified -- fix issue32 - use --system-site-packages and don't pass --no-site-packages -- add python3.3 to the default env list, so early adopters can test -- drop python2.4 support (you can still have your tests run on - python-2.4, just tox itself requires 2.5 or higher. This diff is so big that we needed to truncate the remainder. Repository URL: https://bitbucket.org/hpk42/tox/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. From issues-reply at bitbucket.org Sat Sep 17 14:31:10 2016 From: issues-reply at bitbucket.org (Ronny Pfannschmidt) Date: Sat, 17 Sep 2016 18:31:10 -0000 Subject: [Pytest-commit] Issue #365: we moved to github - https://github.com/tox-dev/tox (hpk42/tox) Message-ID: <20160917183110.29352.90892@celery-worker-101.ash1.bb-inf.net> New issue 365: we moved to github - https://github.com/tox-dev/tox https://bitbucket.org/hpk42/tox/issues/365/we-moved-to-github-https-githubcom-tox-dev Ronny Pfannschmidt: https://github.com/tox-dev/tox