Skip to content

Commit 0d0c6e6

Browse files
committed
Install ipython_pytest via PyPI
1 parent 4643b4e commit 0d0c6e6

File tree

9 files changed

+28
-229
lines changed

9 files changed

+28
-229
lines changed

notebooks/beginner/exercises/testing1_exercise.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"# Let's make sure pytest and ipython_pytest plugin are installed\n",
1010
"import sys\n",
1111
"!{sys.executable} -m pip install pytest\n",
12-
"!{sys.executable} -m pip install ../../../utils/ipython_pytest/"
12+
"!{sys.executable} -m pip install ipython_pytest"
1313
]
1414
},
1515
{

notebooks/beginner/exercises/testing2_exercise.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"# Let's make sure pytest and ipython_pytest plugin are installed\n",
1010
"import sys\n",
1111
"!{sys.executable} -m pip install pytest\n",
12-
"!{sys.executable} -m pip install ../../../utils/ipython_pytest/"
12+
"!{sys.executable} -m pip install ipython_pytest"
1313
]
1414
},
1515
{

notebooks/beginner/html/testing1.html

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11854,7 +11854,7 @@ <h3 id="Running-pytest-inside-notebooks">Running pytest inside notebooks<a class
1185411854
<div class=" highlight hl-ipython3"><pre><span></span><span class="c1"># Let&#39;s make sure pytest and ipython_pytest plugin are installed</span>
1185511855
<span class="kn">import</span> <span class="nn">sys</span>
1185611856
<span class="o">!{</span>sys.executable<span class="o">}</span> -m pip install pytest
11857-
<span class="o">!{</span>sys.executable<span class="o">}</span> -m pip install ../../utils/ipython_pytest/
11857+
<span class="o">!{</span>sys.executable<span class="o">}</span> -m pip install ipython_pytest
1185811858
</pre></div>
1185911859

1186011860
</div>
@@ -11872,26 +11872,13 @@ <h3 id="Running-pytest-inside-notebooks">Running pytest inside notebooks<a class
1187211872

1187311873
<div class="output_subarea output_stream output_stdout output_text">
1187411874
<pre>Requirement already satisfied: pytest in /Users/jerry/.virtualenvs/learn-python3/lib/python3.5/site-packages (3.5.0)
11875-
Requirement already satisfied: six&gt;=1.10.0 in /Users/jerry/.virtualenvs/learn-python3/lib/python3.5/site-packages (from pytest) (1.11.0)
11876-
Requirement already satisfied: setuptools in /Users/jerry/.virtualenvs/learn-python3/lib/python3.5/site-packages (from pytest) (39.0.1)
11877-
Requirement already satisfied: attrs&gt;=17.4.0 in /Users/jerry/.virtualenvs/learn-python3/lib/python3.5/site-packages (from pytest) (17.4.0)
11878-
Requirement already satisfied: more-itertools&gt;=4.0.0 in /Users/jerry/.virtualenvs/learn-python3/lib/python3.5/site-packages (from pytest) (4.1.0)
1187911875
Requirement already satisfied: pluggy&lt;0.7,&gt;=0.5 in /Users/jerry/.virtualenvs/learn-python3/lib/python3.5/site-packages (from pytest) (0.6.0)
1188011876
Requirement already satisfied: py&gt;=1.5.0 in /Users/jerry/.virtualenvs/learn-python3/lib/python3.5/site-packages (from pytest) (1.5.3)
11881-
<span class="ansi-yellow-fg">You are using pip version 10.0.0, however version 10.0.1 is available.
11882-
You should consider upgrading via the &#39;pip install --upgrade pip&#39; command.</span>
11883-
Processing /Users/jerry/github/jerry-git/learn-python3/utils/ipython_pytest
11884-
Building wheels for collected packages: ipython-pytest
11885-
Running setup.py bdist_wheel for ipython-pytest ... - done
11886-
Stored in directory: /private/var/folders/nk/wgt71p5s1_d1wssm881h7ykc0000gn/T/pip-ephem-wheel-cache-tfei96ba/wheels/cd/57/26/ee80676d18b225631db5c78e9ddda568e7d2abf6f03c97047a
11887-
Successfully built ipython-pytest
11888-
Installing collected packages: ipython-pytest
11889-
Found existing installation: ipython-pytest 0.0.1.dev0
11890-
Uninstalling ipython-pytest-0.0.1.dev0:
11891-
Successfully uninstalled ipython-pytest-0.0.1.dev0
11892-
Successfully installed ipython-pytest-0.0.1.dev0
11893-
<span class="ansi-yellow-fg">You are using pip version 10.0.0, however version 10.0.1 is available.
11894-
You should consider upgrading via the &#39;pip install --upgrade pip&#39; command.</span>
11877+
Requirement already satisfied: attrs&gt;=17.4.0 in /Users/jerry/.virtualenvs/learn-python3/lib/python3.5/site-packages (from pytest) (17.4.0)
11878+
Requirement already satisfied: six&gt;=1.10.0 in /Users/jerry/.virtualenvs/learn-python3/lib/python3.5/site-packages (from pytest) (1.11.0)
11879+
Requirement already satisfied: more-itertools&gt;=4.0.0 in /Users/jerry/.virtualenvs/learn-python3/lib/python3.5/site-packages (from pytest) (4.1.0)
11880+
Requirement already satisfied: setuptools in /Users/jerry/.virtualenvs/learn-python3/lib/python3.5/site-packages (from pytest) (39.0.1)
11881+
Requirement already satisfied: ipython_pytest in /Users/jerry/.virtualenvs/learn-python3/lib/python3.5/site-packages (0.0.1)
1189511882
</pre>
1189611883
</div>
1189711884
</div>
@@ -11981,15 +11968,15 @@ <h2 id="pytest-test-cases"><code>pytest</code> test cases<a class="anchor-link"
1198111968

1198211969

1198311970
<div class="output_subarea output_stream output_stdout output_text">
11984-
<pre>=========================================================== test session starts ===========================================================
11971+
<pre>============================================================ test session starts ============================================================
1198511972
platform darwin -- Python 3.5.4, pytest-3.5.0, py-1.5.3, pluggy-0.6.0
11986-
rootdir: /private/var/folders/nk/wgt71p5s1_d1wssm881h7ykc0000gn/T/tmpgm5fi86g, inifile:
11973+
rootdir: /private/var/folders/nk/wgt71p5s1_d1wssm881h7ykc0000gn/T/tmpy9z1rypm, inifile:
1198711974
plugins: nbval-0.9.0
1198811975
collected 1 item
1198911976

11990-
_ipytesttmp.py . [100%]
11977+
_ipytesttmp.py . [100%]
1199111978

11992-
======================================================== 1 passed in 0.02 seconds =========================================================
11979+
========================================================= 1 passed in 0.02 seconds ==========================================================
1199311980
</pre>
1199411981
</div>
1199511982
</div>

notebooks/beginner/html/testing2.html

Lines changed: 14 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -11811,7 +11811,7 @@ <h1 id="Testing-with-pytest---part-2">Testing with <a href="https://docs.pytest.
1181111811
<div class=" highlight hl-ipython3"><pre><span></span><span class="c1"># Let&#39;s make sure pytest and ipython_pytest plugin are installed</span>
1181211812
<span class="kn">import</span> <span class="nn">sys</span>
1181311813
<span class="o">!{</span>sys.executable<span class="o">}</span> -m pip install pytest
11814-
<span class="o">!{</span>sys.executable<span class="o">}</span> -m pip install ../../utils/ipython_pytest/
11814+
<span class="o">!{</span>sys.executable<span class="o">}</span> -m pip install ipython_pytest
1181511815
</pre></div>
1181611816

1181711817
</div>
@@ -11829,26 +11829,13 @@ <h1 id="Testing-with-pytest---part-2">Testing with <a href="https://docs.pytest.
1182911829

1183011830
<div class="output_subarea output_stream output_stdout output_text">
1183111831
<pre>Requirement already satisfied: pytest in /Users/jerry/.virtualenvs/learn-python3/lib/python3.5/site-packages (3.5.0)
11832-
Requirement already satisfied: more-itertools&gt;=4.0.0 in /Users/jerry/.virtualenvs/learn-python3/lib/python3.5/site-packages (from pytest) (4.1.0)
1183311832
Requirement already satisfied: py&gt;=1.5.0 in /Users/jerry/.virtualenvs/learn-python3/lib/python3.5/site-packages (from pytest) (1.5.3)
11834-
Requirement already satisfied: six&gt;=1.10.0 in /Users/jerry/.virtualenvs/learn-python3/lib/python3.5/site-packages (from pytest) (1.11.0)
11835-
Requirement already satisfied: attrs&gt;=17.4.0 in /Users/jerry/.virtualenvs/learn-python3/lib/python3.5/site-packages (from pytest) (17.4.0)
1183611833
Requirement already satisfied: pluggy&lt;0.7,&gt;=0.5 in /Users/jerry/.virtualenvs/learn-python3/lib/python3.5/site-packages (from pytest) (0.6.0)
11834+
Requirement already satisfied: more-itertools&gt;=4.0.0 in /Users/jerry/.virtualenvs/learn-python3/lib/python3.5/site-packages (from pytest) (4.1.0)
1183711835
Requirement already satisfied: setuptools in /Users/jerry/.virtualenvs/learn-python3/lib/python3.5/site-packages (from pytest) (39.0.1)
11838-
<span class="ansi-yellow-fg">You are using pip version 10.0.0, however version 10.0.1 is available.
11839-
You should consider upgrading via the &#39;pip install --upgrade pip&#39; command.</span>
11840-
Processing /Users/jerry/github/jerry-git/learn-python3/utils/ipython_pytest
11841-
Building wheels for collected packages: ipython-pytest
11842-
Running setup.py bdist_wheel for ipython-pytest ... - done
11843-
Stored in directory: /private/var/folders/nk/wgt71p5s1_d1wssm881h7ykc0000gn/T/pip-ephem-wheel-cache-ksypg6cf/wheels/cd/57/26/ee80676d18b225631db5c78e9ddda568e7d2abf6f03c97047a
11844-
Successfully built ipython-pytest
11845-
Installing collected packages: ipython-pytest
11846-
Found existing installation: ipython-pytest 0.0.1.dev0
11847-
Uninstalling ipython-pytest-0.0.1.dev0:
11848-
Successfully uninstalled ipython-pytest-0.0.1.dev0
11849-
Successfully installed ipython-pytest-0.0.1.dev0
11850-
<span class="ansi-yellow-fg">You are using pip version 10.0.0, however version 10.0.1 is available.
11851-
You should consider upgrading via the &#39;pip install --upgrade pip&#39; command.</span>
11836+
Requirement already satisfied: six&gt;=1.10.0 in /Users/jerry/.virtualenvs/learn-python3/lib/python3.5/site-packages (from pytest) (1.11.0)
11837+
Requirement already satisfied: attrs&gt;=17.4.0 in /Users/jerry/.virtualenvs/learn-python3/lib/python3.5/site-packages (from pytest) (17.4.0)
11838+
Requirement already satisfied: ipython_pytest in /Users/jerry/.virtualenvs/learn-python3/lib/python3.5/site-packages (0.0.1)
1185211839
</pre>
1185311840
</div>
1185411841
</div>
@@ -11959,15 +11946,15 @@ <h2 id="@pytest.fixture"><a href="https://docs.pytest.org/en/latest/fixture.html
1195911946

1196011947

1196111948
<div class="output_subarea output_stream output_stdout output_text">
11962-
<pre>=========================================================== test session starts ===========================================================
11949+
<pre>============================================================ test session starts ============================================================
1196311950
platform darwin -- Python 3.5.4, pytest-3.5.0, py-1.5.3, pluggy-0.6.0
11964-
rootdir: /private/var/folders/nk/wgt71p5s1_d1wssm881h7ykc0000gn/T/tmpi20fl62u, inifile:
11951+
rootdir: /private/var/folders/nk/wgt71p5s1_d1wssm881h7ykc0000gn/T/tmpj71o38he, inifile:
1196511952
plugins: nbval-0.9.0
1196611953
collected 4 items
1196711954

11968-
_ipytesttmp.py .... [100%]
11955+
_ipytesttmp.py .... [100%]
1196911956

11970-
======================================================== 4 passed in 0.03 seconds =========================================================
11957+
========================================================= 4 passed in 0.03 seconds ==========================================================
1197111958
</pre>
1197211959
</div>
1197311960
</div>
@@ -12038,20 +12025,20 @@ <h2 id="@pytest.mark.parametrize"><a href="https://docs.pytest.org/en/latest/par
1203812025

1203912026

1204012027
<div class="output_subarea output_stream output_stdout output_text">
12041-
<pre>=========================================================== test session starts ===========================================================
12028+
<pre>============================================================ test session starts ============================================================
1204212029
platform darwin -- Python 3.5.4, pytest-3.5.0, py-1.5.3, pluggy-0.6.0
12043-
rootdir: /private/var/folders/nk/wgt71p5s1_d1wssm881h7ykc0000gn/T/tmpevgtpxwb, inifile:
12030+
rootdir: /private/var/folders/nk/wgt71p5s1_d1wssm881h7ykc0000gn/T/tmp3bo6s4_6, inifile:
1204412031
plugins: nbval-0.9.0
1204512032
collected 3 items
1204612033

12047-
_ipytesttmp.py ... [100%]
12034+
_ipytesttmp.py ... [100%]
1204812035

12049-
============================================================ warnings summary =============================================================
12036+
============================================================= warnings summary ==============================================================
1205012037
None
1205112038
Module already imported so cannot be rewritten: nbval
1205212039

1205312040
-- Docs: http://doc.pytest.org/en/latest/warnings.html
12054-
================================================== 3 passed, 1 warnings in 0.03 seconds ===================================================
12041+
=================================================== 3 passed, 1 warnings in 0.03 seconds ====================================================
1205512042
</pre>
1205612043
</div>
1205712044
</div>

notebooks/beginner/testing1.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"# Let's make sure pytest and ipython_pytest plugin are installed\n",
5555
"import sys\n",
5656
"!{sys.executable} -m pip install pytest\n",
57-
"!{sys.executable} -m pip install ../../utils/ipython_pytest/"
57+
"!{sys.executable} -m pip install ipython_pytest"
5858
]
5959
},
6060
{

notebooks/beginner/testing2.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"# Let's make sure pytest and ipython_pytest plugin are installed\n",
1717
"import sys\n",
1818
"!{sys.executable} -m pip install pytest\n",
19-
"!{sys.executable} -m pip install ../../utils/ipython_pytest/"
19+
"!{sys.executable} -m pip install ipython_pytest"
2020
]
2121
},
2222
{

utils/ipython_pytest/README.rst

Lines changed: 0 additions & 129 deletions
This file was deleted.

utils/ipython_pytest/ipython_pytest.py

Lines changed: 0 additions & 29 deletions
This file was deleted.

utils/ipython_pytest/setup.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)