Skip to content

Commit 046e352

Browse files
committed
Merge branch 'release/1.7'
* release/1.7: bump version updates CHANGELOG udates CHANGELOG Add support for Python 3.8 Remove branch restriction to allow test of feature branches Fix typos Fix and update links Drop the dot https://twitter.com/pytestdotorg/status/753767547866972160 Add support for Python 3.6, 3.7 and PyPy3 sudo no longer needed https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration Drop support for EOL Python 2.6, 3.2-3.4 Fix for Python 4
2 parents 9397934 + 11a7f63 commit 046e352

File tree

9 files changed

+59
-56
lines changed

9 files changed

+59
-56
lines changed

.travis.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,20 @@
11
language: python
2-
sudo: false
32

43
python:
54
- "2.7"
6-
- "3.3"
7-
- "3.4"
85
- "3.5"
96
- "3.6"
7+
- "3.7"
8+
- "3.8"
109
- "pypy"
10+
- "pypy3"
1111

1212
install:
1313
- pip install .
1414
- pip install tox codecov
1515
- "TOX_ENV=${TRAVIS_PYTHON_VERSION/[0-9].[0-9]/py${TRAVIS_PYTHON_VERSION/.}}"
1616

1717

18-
branches:
19-
only:
20-
- master
21-
- develop
22-
- feature/travis
23-
24-
2518
before_success:
2619
- coverage erase
2720

CHANGELOG

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
1.6.0 (dev)
2-
-----------
1+
1.7.0
2+
-----
3+
* add support python 3.6,3.7,3.8
4+
* bug fixes
5+
6+
1.6.0
7+
-----
38
* removed pip dependency
49
* drop support pytest<3.0
510

611
1.5.1
712
-----
8-
* drop suport python 2.6
13+
* drop support python 2.6
914

1015
1.5
1116
---

README.rst

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ pytest-echo
44

55

66
.. image:: https://badge.fury.io/py/pytest-echo.svg
7-
:target: http://badge.fury.io/py/pytest-echo
7+
:target: https://pypi.org/project/pytest-echo/
88
:alt: PyPI package
99

1010

1111
Print environment variables, package version and generic attributes,
12-
as they are at the begining of the test.
12+
as they are at the beginning of the test.
1313

1414
Useful in the continuous integration to dump test
1515
configuration/environment and or to check if attributes are properly set
@@ -33,7 +33,7 @@ Dump environment variables
3333

3434
.. code-block:: sh
3535
36-
$ py.test --echo-env=HOME
36+
$ pytest --echo-env=HOME
3737
============================= test session starts =========================
3838
platform linux2 -- Python 2.7.4 -- py-1.4.22 -- pytest-2.6.0 -- /bin/python
3939
Environment:
@@ -46,7 +46,7 @@ Dump package version
4646

4747
.. code-block:: sh
4848
49-
$ py.test --echo-version=pytest_echo
49+
$ pytest --echo-version=pytest_echo
5050
============================= test session starts =========================
5151
platform linux2 -- Python 2.7.4 -- py-1.4.22 -- pytest-2.6.0 -- /bin/python
5252
Package version:
@@ -65,7 +65,7 @@ Dump attributes
6565

6666
.. code-block:: sh
6767
68-
$ py.test --echo-attr=django.conf.settings.DEBUG
68+
$ pytest --echo-attr=django.conf.settings.DEBUG
6969
============================= test session starts =========================
7070
platform linux2 -- Python 2.7.4 -- py-1.4.22 -- pytest-2.6.0 -- /bin/python
7171
Inspections
@@ -102,7 +102,7 @@ Example of use in a django project:
102102
103103
.. code-block:: sh
104104
105-
$ py.test
105+
$ pytest
106106
============================= test session starts =========================
107107
platform linux2 -- Python 2.7.4 -- py-1.4.22 -- pytest-2.6.0 -- /bin/python
108108
Environment:
@@ -130,7 +130,7 @@ as:
130130

131131
.. code-block:: sh
132132
133-
$ py.test --echo-version=pytest-* --echo-env=VIRTUAL*
133+
$ pytest --echo-version=pytest-* --echo-env=VIRTUAL*
134134
135135
or
136136

@@ -152,33 +152,33 @@ Links
152152
+--------------------+-----------------+---------------+----------------+
153153
| Development | |dev-build| | |dev-cov| | |dev-doc| |
154154
+--------------------+-----------------+---------------+----------------+
155-
| Project home page: | https://github.com/saxix/pytest-echo |
155+
| Project home page: | https://github.com/pytest-dev/pytest-echo |
156156
+--------------------+--------------------------------------------------+
157-
| Issue tracker: | https://github.com/saxix/pytest-echo/issues?sort |
157+
| Issue tracker: | https://github.com/pytest-dev/pytest-echo/issues |
158158
+--------------------+--------------------------------------------------+
159-
| CI: | https://travis-ci.org/saxix/pytest-echo |
159+
| CI: | https://travis-ci.org/pytest-dev/pytest-echo |
160160
+--------------------+--------------------------------------------------+
161-
| Download: | http://pypi.python.org/pypi/pytest-echo/ |
161+
| Download: | https://pypi.org/project/pytest-echo/ |
162162
+--------------------+--------------------------------------------------+
163-
| Documentation: | https://pytest-echo.readthedocs.org/en/latest/ |
163+
| Documentation: | https://pytest-echo.readthedocs.io/en/latest/ |
164164
+--------------------+--------------------------------------------------+
165165

166166

167-
.. |master-build| image:: https://secure.travis-ci.org/saxix/pytest-echo.png?branch=master
168-
:target: http://travis-ci.org/saxix/pytest-echo/
167+
.. |master-build| image:: https://travis-ci.org/pytest-dev/pytest-echo.svg?branch=master
168+
:target: https://travis-ci.org/pytest-dev/pytest-echo
169169

170-
.. |master-cov| image:: https://codecov.io/gh/saxix/pytest-echo/branch/master/graph/badge.svg
171-
:target: https://codecov.io/gh/saxix/pytest-echo
170+
.. |master-cov| image:: https://codecov.io/gh/pytest-dev/pytest-echo/branch/master/graph/badge.svg
171+
:target: https://codecov.io/gh/pytest-dev/pytest-echo
172172

173173
.. |master-doc| image:: https://readthedocs.org/projects/pytest-echo/badge/?version=stable
174-
:target: http://pytest-echo.readthedocs.io/en/stable/
174+
:target: https://pytest-echo.readthedocs.io/en/stable/
175175

176-
.. |dev-build| image:: https://secure.travis-ci.org/saxix/pytest-echo.png?branch=develop
177-
:target: http://travis-ci.org/saxix/pytest-echo/
176+
.. |dev-build| image:: https://travis-ci.org/pytest-dev/pytest-echo.svg?branch=develop
177+
:target: https://travis-ci.org/pytest-dev/pytest-echo
178178

179-
.. |dev-cov| image:: https://codecov.io/gh/saxix/pytest-echo/branch/develop/graph/badge.svg
180-
:target: https://codecov.io/gh/saxix/pytest-echo
179+
.. |dev-cov| image:: https://codecov.io/gh/pytest-dev/pytest-echo/branch/develop/graph/badge.svg
180+
:target: https://codecov.io/gh/pytest-dev/pytest-echo
181181

182182
.. |dev-doc| image:: https://readthedocs.org/projects/pytest-echo/badge/?version=latest
183-
:target: http://pytest-echo.readthedocs.io/en/latest/
183+
:target: https://pytest-echo.readthedocs.io/en/latest/
184184

appveyor.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
# What Python version is installed where:
2-
# http://www.appveyor.com/docs/installed-software#python
2+
# https://www.appveyor.com/docs/build-environment/#python
33

44
environment:
55
matrix:
66
- PYTHON: "C:\\Python27"
77
TOX_ENV: "py27"
88

9-
- PYTHON: "C:\\Python33"
10-
TOX_ENV: "py33"
11-
12-
- PYTHON: "C:\\Python34"
13-
TOX_ENV: "py34"
14-
159
- PYTHON: "C:\\Python35"
1610
TOX_ENV: "py35"
1711

12+
- PYTHON: "C:\\Python36"
13+
TOX_ENV: "py36"
14+
15+
- PYTHON: "C:\\Python37"
16+
TOX_ENV: "py37"
17+
18+
- PYTHON: "C:\\Python38"
19+
TOX_ENV: "py38"
20+
1821

1922
init:
2023
- "%PYTHON%/python -V"

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,4 +243,4 @@
243243

244244

245245
# Example configuration for intersphinx: refer to the Python standard library.
246-
intersphinx_mapping = {'http://docs.python.org/': None}
246+
intersphinx_mapping = {'https://docs.python.org/': None}

pytest_echo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import pkg_resources
99
from pkg_resources import DistributionNotFound
1010

11-
__version__ = '1.6.0'
11+
__version__ = '1.7.0'
1212

1313

1414
def get_installed_distributions():
@@ -66,7 +66,7 @@ def get_module_attribute(path):
6666
The `attribute` can be either a module attribute (ie. os.path.curdir)
6767
or a object attribute (ie. linecache.cache.__class__)
6868
69-
Warning: Be careful when use thi function as it load any module in the path
69+
Warning: Be careful when use this function as it load any module in the path
7070
and this will execute any module's level code
7171
7272
:param path: full path to the attribute

setup.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@
99
description='pytest plugin with mechanisms for echoing environment '
1010
'variables, package version and generic attributes',
1111
long_description=open("README.rst").read(),
12+
long_description_content_type='text/x-rst',
1213
version=__version__,
1314
author='Stefano Apostolico',
1415
author_email='[email protected]',
15-
url='https://github.com/saxix/pytest-echo',
16+
url='https://github.com/pytest-dev/pytest-echo',
1617
py_modules=['pytest_echo'],
1718
entry_points={'pytest11': ['echo = pytest_echo']},
1819
install_requires=['pytest>=2.2'],
1920
license="MIT License",
21+
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*",
2022
classifiers=[
2123
'Development Status :: 5 - Production/Stable',
2224
'Environment :: Plugins',
@@ -29,11 +31,11 @@
2931
'Topic :: Software Development :: Libraries',
3032
'Topic :: Utilities',
3133
'Programming Language :: Python',
32-
'Programming Language :: Python :: 2.6',
34+
'Programming Language :: Python :: 2',
3335
'Programming Language :: Python :: 2.7',
34-
'Programming Language :: Python :: 3.2',
35-
'Programming Language :: Python :: 3.3',
36-
'Programming Language :: Python :: 3.4',
36+
'Programming Language :: Python :: 3',
3737
'Programming Language :: Python :: 3.5',
38-
'Programming Language :: Python :: 3.6'
38+
'Programming Language :: Python :: 3.6',
39+
'Programming Language :: Python :: 3.7',
40+
'Programming Language :: Python :: 3.8',
3941
])

test_echo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def test_echo_attr_module_object_attr(testdir):
139139
result = testdir.runpytest('--echo-attr=linecache.cache.__class__')
140140
if sys.version_info[0] == 2:
141141
match = " linecache.cache.__class__: <type 'dict'>"
142-
elif sys.version_info[0] == 3:
142+
else:
143143
match = " linecache.cache.__class__: <class 'dict'>"
144144

145145
result.stdout.fnmatch_lines([match])

tox.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[tox]
2-
envlist=py{27,35,36}-pytest{30,31,32,33,34,35}
2+
envlist=py{27,35,36,37,38}-pytest{30,31,32,33,34,35}
33

44
[testenv]
55
deps =
66
coverage
7-
py{27,33},pypy: django<2
8-
py{34,35,36}: django>=2
7+
py{27},pypy: django<2
8+
py{35,36,37,38},pypy3: django>=2
99
pytest30: pytest>=3.0,<3.1
1010
pytest31: pytest>=3.1,<3.2
1111
pytest32: pytest>=3.2,<3.3
@@ -15,7 +15,7 @@ deps =
1515

1616
commands =
1717
pip install -e .
18-
coverage run -m py.test -vv test_echo.py pytest_echo.py
18+
coverage run -m pytest -vv test_echo.py pytest_echo.py
1919
coverage report
2020
coverage html
2121

0 commit comments

Comments
 (0)