restore linting, drop _pytest._version for check-manifest
This commit is contained in:
parent
c0a51f5662
commit
2cf422733c
|
@ -1,5 +1,7 @@
|
||||||
__all__ = ['__version__']
|
__all__ = ['__version__']
|
||||||
|
import pkg_resources
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from ._version import version as __version__
|
__version__ = pkg_resources.get_distribution('pytest').version
|
||||||
except ImportError:
|
except Exception:
|
||||||
__version__ = None # broken installation, we don't even try
|
__version__ = None # broken installation, we don't even try
|
||||||
|
|
4
setup.py
4
setup.py
|
@ -54,9 +54,7 @@ def main():
|
||||||
name='pytest',
|
name='pytest',
|
||||||
description='pytest: simple powerful testing with Python',
|
description='pytest: simple powerful testing with Python',
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
use_scm_version={
|
use_scm_version=True,
|
||||||
'write_to': '_pytest/_version.py',
|
|
||||||
},
|
|
||||||
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'],
|
||||||
|
|
7
tox.ini
7
tox.ini
|
@ -47,8 +47,9 @@ commands=
|
||||||
|
|
||||||
[testenv:linting]
|
[testenv:linting]
|
||||||
basepython = python2.7
|
basepython = python2.7
|
||||||
setenv = # needed to keep check-manifest working
|
# needed to keep check-manifest working
|
||||||
SETUPTOOLS_SCM_PRETEND_VERSION=0.0.1
|
setenv =
|
||||||
|
SETUPTOOLS_SCM_PRETEND_VERSION=2.0.1
|
||||||
deps =
|
deps =
|
||||||
flake8
|
flake8
|
||||||
# pygments required by rst-lint
|
# pygments required by rst-lint
|
||||||
|
@ -58,7 +59,7 @@ deps =
|
||||||
commands =
|
commands =
|
||||||
{envpython} scripts/check-manifest.py
|
{envpython} scripts/check-manifest.py
|
||||||
flake8 pytest.py _pytest testing
|
flake8 pytest.py _pytest testing
|
||||||
rst-lint CHANGELOG.rst HOWTORELEASE.rst README.rst
|
rst-lint CHANGELOG.rst HOWTORELEASE.rst README.rst --encoding utf-8
|
||||||
|
|
||||||
[testenv:py27-xdist]
|
[testenv:py27-xdist]
|
||||||
deps=pytest-xdist>=1.13
|
deps=pytest-xdist>=1.13
|
||||||
|
|
Loading…
Reference in New Issue