diff options
| author | jmbills <42755197+jmbills@users.noreply.github.com> | 2019-10-25 19:18:16 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-25 19:18:16 +0300 |
| commit | 0dbb60593ebb5a62190c0e6cff7f1770493303a2 (patch) | |
| tree | 0df2ce67404dbca3ddc4ee063dbfd9ae455be682 /meta-openembedded/meta-python/recipes-devtools/python/python-pytest/pytest_version_fix.patch | |
| parent | 34a3942845ac3264ce27c648ae5486d302c3e6d8 (diff) | |
| parent | cc9cea46d74d280de03c713c8b555153fd811f09 (diff) | |
| download | openbmc-0dbb60593ebb5a62190c0e6cff7f1770493303a2.tar.xz | |
Merge branch 'intel' into intel2
Diffstat (limited to 'meta-openembedded/meta-python/recipes-devtools/python/python-pytest/pytest_version_fix.patch')
| -rw-r--r-- | meta-openembedded/meta-python/recipes-devtools/python/python-pytest/pytest_version_fix.patch | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python-pytest/pytest_version_fix.patch b/meta-openembedded/meta-python/recipes-devtools/python/python-pytest/pytest_version_fix.patch deleted file mode 100644 index b373d93e8..000000000 --- a/meta-openembedded/meta-python/recipes-devtools/python/python-pytest/pytest_version_fix.patch +++ /dev/null @@ -1,51 +0,0 @@ -Upstream-Status: Inappropriate (OE specific) - -python-pytest: remove fetch during do_compile phase -commit: c974fbf9ebf185552ab65301e07af44f36517abf - -introduced an issue by making the version 0.0.0 -this fixes that - -Signed-off-by: Armin Kuster <akuster@mvista.com> - -Index: pytest-3.2.2/setup.py -=================================================================== ---- pytest-3.2.2.orig/setup.py -+++ pytest-3.2.2/setup.py -@@ -1,5 +1,6 @@ - import os - import sys -+import re - import setuptools - import pkg_resources - from setuptools import setup, Command -@@ -22,6 +23,18 @@ classifiers = [ - with open('README.rst') as fd: - long_description = fd.read() - -+def read(*names, **kwargs): -+ with open(os.path.join( *names), 'r') as fp: -+ return fp.read() -+ -+def find_version(*file_paths): -+ version_file = read(*file_paths) -+ version_match = re.search(r"^version = ['\']([^'\"]*)['\']", -+ version_file, re.M) -+ -+ if version_match: -+ return version_match.group(1) -+ raise RuntimeError("Unable to find version string.") - - def get_environment_marker_support_level(): - """ -@@ -59,9 +72,7 @@ def main(): - name='pytest', - description='pytest: simple powerful testing with Python', - long_description=long_description, -- use_scm_version={ -- 'write_to': '_pytest/_version.py', -- }, -+ version=find_version("_pytest", "_version.py"), - url='http://pytest.org', - license='MIT license', - platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'], |
