Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

tox but with conda

Project Description

[tox](http://tox.readthedocs.org/) but with conda.

[![Build Status](https://travis-ci.org/hayd/ctox.svg?branch=master)](https://travis-ci.org/hayd/ctox)

This is a really rough hack to replicate tox using conda (Note that tox is professionally supported whilst ctox isn’t supported). In the long-term a much better solution is to add conda support to tox…

Currently:

  • conda envs and dependancies are cached (very naively)
  • some tox substitutions (some missing features)
  • ~~no~~ some cli options (lots of missing features)
  • no parallel support (yet)
  • bugs (probably lots)

However, the neat thing is that it makes tox-like testing on a machine with conda installed, but not all python versions are installed.

In conclusion, you’re probably better off using tox, here be :dragon:s.

Usage

Have conda installed on your system. The recommended way (I think) is via [miniconda](http://conda.pydata.org/miniconda.html), the not recommended way (which will almost certainly fail) is via pip, please don’t use this with conda installed via pip.

In the project’s directory (which has a tox.ini file):

`sh cd project_dir ctox # or to pdb into any failing environments ctox -- --pdb --pdb-fail ` Note this assumes you have something like `nosetest {posargs}` (or `py.test {posargs}`) in the projects tox.ini file. which this will be replaced with `nosetest –pdb –pdb-fail` (or `py.test –pdb –pdb-fail`).

Why

I was sick of InterpreterNotFound when trying to use tox having installed python with conda. This solves that and I thought it wouldn’t take very long to put together. No doubt I should’ve just hacked on tox, which in the long-run will be the best solution, but there you are!

Release History

Release History

This version
History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1

History Node

0.1a

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
ctox-0.1.3-py3-none-any.whl (15.3 kB) Copy SHA256 Checksum SHA256 3.5 Wheel Sep 19, 2016
ctox-0.1.3.tar.gz (14.0 kB) Copy SHA256 Checksum SHA256 Source Sep 19, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting