question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for multiple virtual environments (tox)

See original GitHub issue

If I’m maintaining a package that needs to run under multiple python versions, I’d like to be able to pipenv install multiple times, so that I can do: pipenv run --python=python2.7 py.test tests or pipenv run --three py.test tests or ->

Tox. I copied and edited tox.ini from here http://docs.pipenv.org/en/latest/advanced.html#tox-automation-project but all the tests in every tox instance were running under the virtualenv of pipenv, instead of it’s own created one. So I went ‘oldschool’ with tox, running outside of pipenv, but it’s a shame it doesn’t work as the docs say.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:16 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
kennethreitzcommented, May 24, 2017

maybe make pipenv --two actually change the current virtualenv, and two are created, one for two, one for three!

0reactions
djetelinacommented, May 25, 2017

Well okay, that way tox could probably run, but instead of making my life easier, pipenv is actually making my life harder that way.

I’m not really sure if it should be tox recognizing pipfile and filling in dependencies from there, or pipenv being able to run tox, or if the way it is right now is okay.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration - tox
tox configuration can be split into two categories: core and environment specific. Core settings are options that can be set once and used...
Read more >
Multiversion Testing With Tox - Cloud City Development
tox allows one to define configurations with list substitutions shell-style globs. tox will spin up a total of 27 different virtual environments ......
Read more >
Managing a Project's Virtualenvs with tox | seanh.cc
Tox is a great tool for standardising and automating any development task that benefits from being run in an isolated virtualenv.
Read more >
Do I need virtualenv if I have tox? - Stack Overflow
The fact that tox creates virtual environments is kind of an implementation detail. Its goal is to run the current project's test suite...
Read more >
Tox with Pyenv & Poetry to Test Projects with Multiple Python ...
Manually running the tests for each supported version of Python will require ... To get tox to use poetry to build the virtual...
Read more >

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found