Skip to content

Commit 6a36ba1

Browse files
authored
Merge pull request #2 from yattom/master
pytestなどのバージョンを最新にする
2 parents 019d5a5 + 03b1dbb commit 6a36ba1

File tree

5 files changed

+37
-32
lines changed

5 files changed

+37
-32
lines changed

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
language: python
22
python:
3-
- 2.7
4-
- 3.3
5-
- 3.4
6-
- 3.5
7-
- pypy
3+
- 3.6
4+
- 3.7
5+
- 3.8
6+
- 3.9
7+
- pypy3
88

99
install:
1010
- pip install tox tox-travis

README.rst

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,37 +9,38 @@ TDDBC for Python with Pytest
99
動作確認環境
1010
============
1111

12-
- Python 2.7.6
13-
- Python 3.3.1
14-
- PyPy 1.9.0
15-
- PyPy 2.2.0
12+
- Python 3.8.5
13+
- pytest 6.2.4
14+
15+
※Python2は2020年1月にサポート終了(EOL)していますので、Python3をご利用ください。
1616

1717
セットアップ
1818
============
1919

2020
.. code-block:: sh
2121
22-
$ pip install -r requirements.txt
22+
$ pip3 install -r requirements.txt
2323
2424
**setup.py** を実行し
2525

2626
.. code-block:: sh
2727
28-
$ python setup.py test
28+
$ python3 setup.py test
2929
3030
...
3131
3232
# Output sample
33-
======================== test session starts =================================
34-
platform linux2 -- Python 2.7.3[pypy-2.2.0-final] -- pytest-2.4.2
35-
-- ~/.virtualenvs/tddbc_python_pytest_pypy22/bin/python
36-
plugins: cov, xdist
33+
============================= test session starts ==============================
34+
platform linux -- Python 3.8.5, pytest-6.2.4, py-1.10.0, pluggy-0.13.1 -- /usr/bin/python3
35+
cachedir: .pytest_cache
36+
rootdir: /root/work/python_pytest, configfile: setup.cfg
37+
plugins: forked-1.3.0, cov-2.11.1, xdist-2.2.1
3738
collected 3 items
3839
39-
tests/acme/test_acme.py:28: TestPython.test_be_out_of_question PASSED
40-
tests/acme/test_acme.py:41: TestMontyPython.test_say_name[Monty Python] PASSED
41-
tests/acme/test_acme.py:41: TestMontyPython.test_say_name[John Smith] PASSED
42-
======================== 3 passed in 0.10 seconds ============================
40+
tests/acme/test_snake.py::TestPython::test_be_out_of_question PASSED [ 33%]
41+
tests/acme/test_snake.py::TestMontyPython::test_say_name[Monty Python] PASSED [ 66%]
42+
tests/acme/test_snake.py::TestMontyPython::test_say_name[John Smith] PASSED [100%]
43+
============================== 3 passed in 0.05s ===============================
4344
4445
のように正常終了すればOKです
4546

requirements.txt

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1+
appdirs==1.4.4
12
cov-core==1.15.0
2-
coverage==4.4.1
3-
execnet==1.4.1
4-
py==1.4.34
5-
pytest==3.1.3
6-
pytest-cov==2.5.1
7-
pytest-xdist==1.18.0
8-
tox==2.7.0
9-
virtualenv==15.1.0
3+
coverage==5.5
4+
distlib==0.3.1
5+
execnet==1.8.0
6+
filelock==3.0.12
7+
iniconfig==1.1.1
8+
py==1.10.0
9+
pytest-cov==2.11.1
10+
pytest-xdist==2.2.1
11+
pytest==6.2.4
12+
tox==3.23.1
13+
virtualenv==20.4.6

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[metadata]
2-
license-file = LICENSE
2+
license_file = LICENSE
33

44
[wheel]
55
universal = 1

tox.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[tox]
22
skipsdist = True
33
envlist =
4-
py27,
5-
py33,
6-
py34,
7-
py35
4+
py36,
5+
py37,
6+
py38,
7+
py39
88

99
[testenv]
1010
deps=

0 commit comments

Comments
 (0)