2

I know this sounds strange but I can't get it. Here (http://pytest.org/dev/getting-started.html) it says that a simple pip install pytest would work, but that only installs pytest-2.2.4

I tried going to pypi.python.org and find it directly but all I get is pytest-2.2.4 (http://pypi.python.org/pypi/pytest)

Several google searches yielded no results except for the fact that it seems everyone has managed to get it except me.

Using Python27 on a Mac.

Nacht
  • 10,488
  • 8
  • 31
  • 39

2 Answers2

4

2.2.4 is the current release . . . 2.3 is a dev version

There are instructions to get the latest code here:

http://pytest.org/latest/develop.html

I believe this should work as well:

pip install -i http://pypi.testrun.org -U pytest

That's the answer from this question (and appears to be from the lead dev of pytest): pytest running scenarios in the correct order in the class

Community
  • 1
  • 1
ernie
  • 6,356
  • 23
  • 28
  • Ohh...why would they use 2.3 as the example for installing then? In their installation site, when verifying that you got the "correct version", they use `2.3.0.dev21` as the example. Very confusing. – Nacht Oct 17 '12 at 16:03
  • 1
    @Nacht Note the URL you were using has `dev` in it. You probably wanted latest: http://pytest.org/latest/getting-started.html; the URLs with dev in them are the ones that are currently being worked on. – ernie Oct 17 '12 at 16:04
1

pytest-2.3 has just been released, so you can get it by installing from pypi via e.g.

pip install -U pytest

It's true that the documentation was a bit confused - hopefully dev and latest will be more separate in the future. Note, btw, that the docs will see un-announced extra-released which have a version number like "2.3.0.N" which means that docs got updated but no code changed.

hpk42
  • 21,501
  • 4
  • 47
  • 53