Skip to content

Commit e06fec1

Browse files
dasmbubenkoff
andauthored
Updated dependencies on pytest-xdist
Due to changes in external dependency to pytest-xdist, pytest-xdist<1.26.0 is not supported anymore. Addressed deprecation warnings from pytest. Prepared for 4.0.0 release Co-authored-by: Anatoly Bubenkov <[email protected]>
1 parent 8453474 commit e06fec1

File tree

5 files changed

+19
-14
lines changed

5 files changed

+19
-14
lines changed

CHANGES.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
Changelog
22
=========
33

4-
3.1.0
4+
4.0.0
55
-----
66

77
- Add config option to select cipher for ssh connection (dasm)
8+
- Fix deprecation warnings for pytest (dasm)
9+
- Support pytest-xdist >= 1.26.0 (dasm)
10+
- Support pytest >= 3.6.1 (dasm)
11+
- Remove support for Python 3.0, 3.1, 3.2, 3.3 (consistent with pytest-xdist) (dasm)
812

913
3.0.1
1014
-----

pytest_cloud/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""PyTest Cloud."""
22

3-
__version__ = '3.0.1'
3+
__version__ = '4.0.0'

pytest_cloud/patches.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def setup(self):
8080
self.channel.setcallback(
8181
self.process_from_remote,
8282
endmarker=self.ENDMARK)
83-
self.channel.send((self.slaveinput, args, option_dict))
83+
self.channel.send((self.slaveinput, args, option_dict, None))
8484

8585

8686
def apply_patches():

pytest_cloud/plugin.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def pytest_addoption(parser):
8181
group.addoption(
8282
"--cloud-python",
8383
help="python executable name to be used on the remote test nodes."
84-
"Default is the executable used on the master.", type='string', action="store",
84+
"Default is the executable used on the master.", type=str, action="store",
8585
dest='cloud_python', metavar="NAME", default='python{0}.{1}'.format(*sys.version_info))
8686
group._addoption(
8787
'--cloud-chdir',
@@ -95,31 +95,31 @@ def pytest_addoption(parser):
9595
help="relative path on remote node to run tests in. Default is pytest_<username>_<current_folder_name>")
9696
group.addoption(
9797
"--cloud-nodes",
98-
help="space-separated test node list to use for distributed testing", type='string', action=NodesAction,
98+
help="space-separated test node list to use for distributed testing", type=str, action=NodesAction,
9999
dest='cloud_nodes', metavar="'USER@HOST", default=[])
100100
group.addoption(
101101
"--cloud-node",
102-
help="test node to use for distributed testing", type='string', action="append",
102+
help="test node to use for distributed testing", type=str, action="append",
103103
dest='cloud_nodes', metavar="USER@HOST", default=[])
104104
group.addoption(
105105
"--cloud-virtualenv-path",
106-
help="relative path to the virtualenv to be used on the remote test nodes.", type='string', action="store",
106+
help="relative path to the virtualenv to be used on the remote test nodes.", type=str, action="store",
107107
dest='cloud_virtualenv_path', metavar="PATH", default=get_virtualenv_path())
108108
group.addoption(
109109
"--cloud-mem-per-process",
110-
help="amount of memory roughly needed for test process, in megabytes", type='int', action="store",
110+
help="amount of memory roughly needed for test process, in megabytes", type=int, action="store",
111111
dest='cloud_mem_per_process', metavar="NUMBER", default=None)
112112
group.addoption(
113113
"--cloud-max-processes",
114-
help="maximum number of processes per test node", type='int', action="store",
114+
help="maximum number of processes per test node", type=int, action="store",
115115
dest='cloud_max_processes', metavar="NUMBER", default=None)
116116
group.addoption(
117117
"--cloud-rsync-max-processes",
118-
help="maximum number of rsync processes", type='int', action="store",
118+
help="maximum number of rsync processes", type=int, action="store",
119119
dest='cloud_rsync_max_processes', metavar="NUMBER", default=None)
120120
group.addoption(
121121
"--cloud-rsync-bandwidth-limit",
122-
help="maximum number of processes per test node", type='int', action="store",
122+
help="maximum number of processes per test node", type=int, action="store",
123123
dest='cloud_rsync_bandwidth_limit', metavar="NUMBER", default=10000)
124124
parser.addoption(
125125
"--cloud-rsync-cipher",

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,13 @@
2727
url='https://github.com/pytest-dev/pytest-cloud',
2828
install_requires=[
2929
'psutil',
30-
'pytest>=2.7.0',
31-
'pytest-xdist>=1.22.1',
30+
'pytest>=3.6.1',
31+
'pytest-xdist>=1.26.0',
3232
'setuptools',
3333
'six',
3434
'timeout-decorator>=0.3.2',
3535
],
36+
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
3637
classifiers=[
3738
'Development Status :: 6 - Mature',
3839
'Intended Audience :: Developers',
@@ -45,7 +46,7 @@
4546
'Topic :: Utilities',
4647
'Programming Language :: Python :: 2',
4748
'Programming Language :: Python :: 3',
48-
] + [('Programming Language :: Python :: %s' % x) for x in '2.7 3.0 3.1 3.2 3.3 3.4 3.5 3.6 3.7'.split()],
49+
] + [('Programming Language :: Python :: %s' % x) for x in '2.7 3 3.4 3.5 3.6 3.7'.split()],
4950
tests_require=['tox'],
5051
entry_points={'pytest11': [
5152
'pytest-cloud=pytest_cloud.plugin',

0 commit comments

Comments
 (0)