{ "info": { "author": "Kumar McMillan", "author_email": "kumar.mcmillan@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "========\nOverview\n========\n\nNoseMultiVersion is a `Nose`_ plugin to run tests simultaneously in different versions of Python. \n\nWhen the plugin is activated, your test suite spawns off subprocesses to run the same tests in each Python interpreter then the results are printed in the main process. It was designed for libraries or applications that want to support legacy versions of Python or for projects that need to work in virtual environments that are configured differently. Because it uses sockets via execnet_ and parallel subprocesses, it only adds minimal overhead to your test time.\n\nInstallation\n============\n\nNoseMultiVersion, Nose_, and execnet_ must be installed in each version of Python you want to run your tests in. Your test and application modules **do not** need to be installed in each Python version.\n\nHere's how to install the NoseMultiVersion and its dependencies:\n\nInstall With Pip From Source\n============================\n\nGrab the `pip source`_ and do something like this::\n \n $ cd /pip/source\n $ sudo python2.4 ./scripts/pip install -e hg+http://bitbucket.org/kumar303/nose-multiversion/#egg=NoseMultiVersion\n $ sudo python2.5 ./scripts/pip install -e hg+http://bitbucket.org/kumar303/nose-multiversion/#egg=NoseMultiVersion\n $ sudo python2.6 ./scripts/pip install -e hg+http://bitbucket.org/kumar303/nose-multiversion/#egg=NoseMultiVersion\n\nInstall With Pip From PyPI\n==========================\n\nJust like above but do::\n \n $ cd /pip/source\n $ sudo python2.4 ./scripts/pip install NoseMultiVersion\n $ sudo python2.5 ./scripts/pip install NoseMultiVersion\n $ sudo python2.6 ./scripts/pip install NoseMultiVersion\n\nInstall With Setuptools\n=======================\n \n::\n \n $ sudo easy_install-2.4 http://bitbucket.org/kumar303/nose-multiversion/get/tip.zip\n $ sudo easy_install-2.5 http://bitbucket.org/kumar303/nose-multiversion/get/tip.zip\n $ sudo easy_install-2.6 http://bitbucket.org/kumar303/nose-multiversion/get/tip.zip\n\nRun A Simple Test Suite In Multiple Versions of Python\n======================================================\n\nIf you have an application without many dependencies you can probably just run the tests in multiple versions like this::\n \n $ cd /your/test/suite\n $ nosetests --in-python=2.4,2.5,2.6\n\nRun A Complex Test Suite In A Virtualenv\n========================================\n\nIt's most likely that your application has some dependencies that you are probably managing with a custom `virtualenv`_. \nThe value passed to the ``--in-python=`` option can also be an absolute path to a Python interpreter so set up your virtualenv directories then run your tests like this::\n \n $ cd /your/test/suite\n $ nosetests --in-python=/path/to/a/virtualenv-for-2.5/bin/python --in-python=/path/to/a/virtualenv-for-2.6/bin/python\n\nDeclare Option Values in a Config Script\n========================================\n\nAs with any Nose option, you can use a `config file`_ to set its value, like this::\n \n [nosetests]\n in-python= \n /path/to/your-virtualenv1/bin/python\n /path/to/your-virtualenv2/bin/python\n /path/to/jython\n /path/to/your-custom-build/bin/python\n\nAcknowledgements\n================\n\nThis plugin was created by Kumar McMillan . Big thanks to Holger Krekel for extracting execnet_ into its own package. This allowed Nose to steal a nice feature from `py.test`_ :)\n\nBugs, Patches\n=============\n\nSubmit all bugs and patches to http://bitbucket.org/kumar303/nose-multiversion/ -- thanks!\n\nRandom Notes\n============\n\n- If another plugin tries to do a frame hack then it might break because tracebacks and frames are flattened then pickled so they can be sent from a worker to the main process.\n- When `Nose supports Python 3.0`_ as well as execnet then adding 3.0 to your options should just magically work!\n- There are probably some other nifty things to steal from py.test like decorators that raise Nose's SkipTest exception when you don't want to run a test in a specific version.\n\n.. _Nose: http://somethingaboutorange.com/mrl/projects/nose\n.. _Nose supports Python 3.0: http://bitbucket.org/jpellerin/nose3/\n.. _execnet: http://codespeak.net/execnet/\n.. _pip source: http://pypi.python.org/pypi/pip\n.. _virtualenv: http://pypi.python.org/pypi/virtualenv\n.. _config file: http://somethingaboutorange.com/mrl/projects/nose/0.11.1/usage.html\n.. _py.test: http://codespeak.net/py/dist/test/", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/NoseMultiVersion", "keywords": null, "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "NoseMultiVersion", "package_url": "https://pypi.org/project/NoseMultiVersion/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/NoseMultiVersion/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/NoseMultiVersion" }, "release_url": "https://pypi.org/project/NoseMultiVersion/0.1/", "requires_dist": null, "requires_python": null, "summary": "A Nose plugin to run tests simultaneously in different versions of Python.", "version": "0.1" }, "last_serial": 784813, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "b08060a06c1d27094dfcc94e0039789a", "sha256": "346308aecb6a0543715265831e7976b705d2577de291c4da23062cfa8fd38a2e" }, "downloads": -1, "filename": "NoseMultiVersion-0.1.tar.gz", "has_sig": true, "md5_digest": "b08060a06c1d27094dfcc94e0039789a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5674, "upload_time": "2010-03-03T02:14:13", "url": "https://files.pythonhosted.org/packages/e7/7e/6190c2000097e63e0327610d66f3d7319ac027f559802997ff0b1ec6f53a/NoseMultiVersion-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b08060a06c1d27094dfcc94e0039789a", "sha256": "346308aecb6a0543715265831e7976b705d2577de291c4da23062cfa8fd38a2e" }, "downloads": -1, "filename": "NoseMultiVersion-0.1.tar.gz", "has_sig": true, "md5_digest": "b08060a06c1d27094dfcc94e0039789a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5674, "upload_time": "2010-03-03T02:14:13", "url": "https://files.pythonhosted.org/packages/e7/7e/6190c2000097e63e0327610d66f3d7319ac027f559802997ff0b1ec6f53a/NoseMultiVersion-0.1.tar.gz" } ] }