Skip to content

Commit f3f6cb2

Browse files
authored
Merge pull request #4877 from blueyed/pluggymaster
tox: generic pluggymaster factor, remove env hack
2 parents ed68fcf + c4aa57b commit f3f6cb2

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

setup.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import os
2-
31
from setuptools import setup
42

53
# TODO: if py gets upgrade to >=1.6,
@@ -15,15 +13,10 @@
1513
'funcsigs;python_version<"3.0"',
1614
'pathlib2>=2.2.0;python_version<"3.6"',
1715
'colorama;sys_platform=="win32"',
16+
"pluggy>=0.7",
1817
]
1918

2019

21-
# if _PYTEST_SETUP_SKIP_PLUGGY_DEP is set, skip installing pluggy;
22-
# used by tox.ini to test with pluggy master
23-
if "_PYTEST_SETUP_SKIP_PLUGGY_DEP" not in os.environ:
24-
INSTALL_REQUIRES.append("pluggy>=0.7")
25-
26-
2720
def main():
2821
setup(
2922
use_scm_version={"write_to": "src/_pytest/_version.py"},

tox.ini

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ extras = testing
4747
deps =
4848
numpy: numpy
4949
pexpect: pexpect
50+
pluggymaster: git+https://github.com/pytest-dev/pluggy.git@master
5051
xdist: pytest-xdist>=1.13
5152
{env:_PYTEST_TOX_EXTRA_DEP:}
5253
platform = {env:_PYTEST_TOX_PLATFORM:.*}
@@ -78,18 +79,6 @@ commands =
7879
deps = {[testenv:py27-trial]deps}
7980
commands = {[testenv:py27-trial]commands}
8081

81-
[testenv:py27-pluggymaster]
82-
setenv=
83-
{[testenv]setenv}
84-
_PYTEST_SETUP_SKIP_PLUGGY_DEP=1
85-
deps =
86-
{[testenv]deps}
87-
git+https://github.com/pytest-dev/pluggy.git@master
88-
89-
[testenv:py37-pluggymaster]
90-
setenv = {[testenv:py27-pluggymaster]setenv}
91-
deps = {[testenv:py27-pluggymaster]deps}
92-
9382
[testenv:docs]
9483
basepython = python3
9584
skipsdist = True

0 commit comments

Comments
 (0)