bumping version to a dev version, run tests by using python PyPI by default
This commit is contained in:
parent
f1fc6e5eb6
commit
d894bae281
|
@ -1,4 +1,9 @@
|
||||||
Changes between 1.3.4 and 2.0.0dev0
|
Changes between 2.0.0 and 2.0.1.dev1
|
||||||
|
----------------------------------------------
|
||||||
|
|
||||||
|
- refinements to terminal output
|
||||||
|
|
||||||
|
Changes between 1.3.4 and 2.0.0
|
||||||
----------------------------------------------
|
----------------------------------------------
|
||||||
|
|
||||||
- pytest-2.0 is now its own package and depends on pylib-2.0
|
- pytest-2.0 is now its own package and depends on pylib-2.0
|
||||||
|
|
|
@ -136,6 +136,9 @@ class TerminalReporter:
|
||||||
self._tw.line()
|
self._tw.line()
|
||||||
self.currentfspath = None
|
self.currentfspath = None
|
||||||
|
|
||||||
|
def write(self, content, **markup):
|
||||||
|
self._tw.write(content, **markup)
|
||||||
|
|
||||||
def write_line(self, line, **markup):
|
def write_line(self, line, **markup):
|
||||||
line = str(line)
|
line = str(line)
|
||||||
self.ensure_newline()
|
self.ensure_newline()
|
||||||
|
@ -215,7 +218,7 @@ class TerminalReporter:
|
||||||
|
|
||||||
def pytest_collection(self):
|
def pytest_collection(self):
|
||||||
if not self.hasmarkup:
|
if not self.hasmarkup:
|
||||||
self.write_line("collecting ...", bold=True)
|
self.write("collecting ... ", bold=True)
|
||||||
|
|
||||||
def pytest_collectreport(self, report):
|
def pytest_collectreport(self, report):
|
||||||
if report.failed:
|
if report.failed:
|
||||||
|
|
|
@ -40,7 +40,7 @@ clean:
|
||||||
-rm -rf $(BUILDDIR)/*
|
-rm -rf $(BUILDDIR)/*
|
||||||
|
|
||||||
install: clean html
|
install: clean html
|
||||||
rsync -avz _build/html/ code:www-pytest/2.0.0
|
rsync -avz _build/html/ code:www-pytest/
|
||||||
|
|
||||||
html:
|
html:
|
||||||
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
|
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
|
||||||
|
|
|
@ -49,7 +49,7 @@ copyright = u'2010, holger krekel et aliter'
|
||||||
# built documents.
|
# built documents.
|
||||||
#
|
#
|
||||||
# The short X.Y version.
|
# The short X.Y version.
|
||||||
version = '2.0.0'
|
version = '2.0'
|
||||||
# The full version, including alpha/beta/rc tags.
|
# The full version, including alpha/beta/rc tags.
|
||||||
import py, pytest
|
import py, pytest
|
||||||
assert py.path.local().relto(py.path.local(pytest.__file__).dirpath().dirpath())
|
assert py.path.local().relto(py.path.local(pytest.__file__).dirpath().dirpath())
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
"""
|
"""
|
||||||
unit and functional testing with Python.
|
unit and functional testing with Python.
|
||||||
"""
|
"""
|
||||||
__version__ = '2.0.0'
|
__version__ = '2.0.1.dev1'
|
||||||
__all__ = ['main']
|
__all__ = ['main']
|
||||||
|
|
||||||
from _pytest.core import main, UsageError, _preloadplugins
|
from _pytest.core import main, UsageError, _preloadplugins
|
||||||
|
|
4
setup.py
4
setup.py
|
@ -22,14 +22,14 @@ def main():
|
||||||
name='pytest',
|
name='pytest',
|
||||||
description='py.test: simple powerful testing with Python',
|
description='py.test: simple powerful testing with Python',
|
||||||
long_description = long_description,
|
long_description = long_description,
|
||||||
version='2.0.0',
|
version='2.0.1.dev1',
|
||||||
url='http://pytest.org',
|
url='http://pytest.org',
|
||||||
license='MIT license',
|
license='MIT license',
|
||||||
platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],
|
platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],
|
||||||
author='holger krekel, Guido Wesdorp, Carl Friedrich Bolz, Armin Rigo, Maciej Fijalkowski & others',
|
author='holger krekel, Guido Wesdorp, Carl Friedrich Bolz, Armin Rigo, Maciej Fijalkowski & others',
|
||||||
author_email='holger at merlinux.eu',
|
author_email='holger at merlinux.eu',
|
||||||
entry_points= make_entry_points(),
|
entry_points= make_entry_points(),
|
||||||
install_requires=['py>=1.4.0a2'],
|
install_requires=['py>=1.4.0'],
|
||||||
classifiers=['Development Status :: 5 - Production/Stable',
|
classifiers=['Development Status :: 5 - Production/Stable',
|
||||||
'Intended Audience :: Developers',
|
'Intended Audience :: Developers',
|
||||||
'License :: OSI Approved :: MIT License',
|
'License :: OSI Approved :: MIT License',
|
||||||
|
|
18
tox.ini
18
tox.ini
|
@ -2,20 +2,20 @@
|
||||||
distshare={homedir}/.tox/distshare
|
distshare={homedir}/.tox/distshare
|
||||||
envlist=py26,py27,py31,py32,py27-xdist,py25,py24
|
envlist=py26,py27,py31,py32,py27-xdist,py25,py24
|
||||||
indexserver=
|
indexserver=
|
||||||
default = http://pypi.testrun.org
|
default = http://pypi.python.org/simple
|
||||||
pypi = http://pypi.python.org/simple
|
testrun = http://pypi.testrun.org
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
changedir=testing
|
changedir=testing
|
||||||
commands= py.test -rfsxX --junitxml={envlogdir}/junit-{envname}.xml []
|
commands= py.test -rfsxX --junitxml={envlogdir}/junit-{envname}.xml []
|
||||||
deps=
|
deps=
|
||||||
:pypi:pexpect
|
pexpect
|
||||||
:pypi:nose
|
nose
|
||||||
|
|
||||||
[testenv:genscript]
|
[testenv:genscript]
|
||||||
changedir=.
|
changedir=.
|
||||||
commands= py.test --genscript=pytest1
|
commands= py.test --genscript=pytest1
|
||||||
deps=py>=1.4.0a2
|
deps=py>=1.4.0
|
||||||
|
|
||||||
[testenv:py27-xdist]
|
[testenv:py27-xdist]
|
||||||
changedir=.
|
changedir=.
|
||||||
|
@ -28,7 +28,7 @@ commands=
|
||||||
[testenv:trial]
|
[testenv:trial]
|
||||||
changedir=.
|
changedir=.
|
||||||
basepython=python2.6
|
basepython=python2.6
|
||||||
deps=:pypi:twisted
|
deps=twisted
|
||||||
commands=
|
commands=
|
||||||
py.test -rsxf \
|
py.test -rsxf \
|
||||||
--junitxml={envlogdir}/junit-{envname}.xml [testing/test_unittest.py]
|
--junitxml={envlogdir}/junit-{envname}.xml [testing/test_unittest.py]
|
||||||
|
@ -41,14 +41,14 @@ deps=
|
||||||
[testenv:doc]
|
[testenv:doc]
|
||||||
basepython=python
|
basepython=python
|
||||||
changedir=doc
|
changedir=doc
|
||||||
deps=:pypi:sphinx
|
deps=sphinx
|
||||||
pytest
|
pytest
|
||||||
|
|
||||||
commands=
|
commands=
|
||||||
make html
|
make html
|
||||||
|
|
||||||
[testenv:py31]
|
[testenv:py31]
|
||||||
deps=py>=1.4.0a2
|
deps=py>=1.4.0
|
||||||
|
|
||||||
[testenv:py31-xdist]
|
[testenv:py31-xdist]
|
||||||
deps=pytest-xdist
|
deps=pytest-xdist
|
||||||
|
@ -57,7 +57,7 @@ commands=
|
||||||
--junitxml={envlogdir}/junit-{envname}.xml []
|
--junitxml={envlogdir}/junit-{envname}.xml []
|
||||||
|
|
||||||
[testenv:py32]
|
[testenv:py32]
|
||||||
deps=py>=1.4.0a2
|
deps=py>=1.4.0
|
||||||
|
|
||||||
[testenv:pypy]
|
[testenv:pypy]
|
||||||
basepython=pypy-c
|
basepython=pypy-c
|
||||||
|
|
Loading…
Reference in New Issue