From be7c4e4d2142f2b392e0e45bf63bc71855759ff5 Mon Sep 17 00:00:00 2001 From: "Elf M. Sternberg" Date: Sun, 3 Jul 2016 16:43:09 -0700 Subject: [PATCH] Fixed build issue. Skipped pypy bytecode-without-source tests. --- MANIFEST.in | 8 ++++---- setup.py | 4 +--- tests/test_import.py | 4 ++++ 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 68e47f0..f18a051 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,8 +1,8 @@ -include AUTHORS.md -include CONTRIBUTING.md -include HISTORY.md +include AUTHORS.rst +include CONTRIBUTING.rst +include HISTORY.rst include LICENSE -include README.md +include README.rst recursive-include tests * recursive-exclude * __pycache__ diff --git a/setup.py b/setup.py index d916f71..7dd63a7 100644 --- a/setup.py +++ b/setup.py @@ -1,13 +1,11 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- - try: from setuptools import setup except ImportError: from distutils.core import setup - with open('README.rst') as readme_file: readme = readme_file.read() @@ -25,7 +23,7 @@ test_requirements = [ setup( name='polyloader', version='0.1.0', - description="Importlib shim that enables mixed syntax in Python packages and executables.", + description="Importlib shim that enables heterogeneous syntax in Python packages.", long_description=readme + '\n\n' + history, author='Kenneth M. "Elf" Sternberg', author_email='elf.sternberg@gmail.com', diff --git a/tests/test_import.py b/tests/test_import.py index b8f23e9..9c3c690 100644 --- a/tests/test_import.py +++ b/tests/test_import.py @@ -55,6 +55,8 @@ class Test_Imports(object): else: assert(False) + @pytest.mark.skipif(hasattr(sys, 'pypy_version_info'), + reason="PyPy won't load bytecode if source not present.") def test_import(self): sys.path.insert(0, os.curdir) ext = 'py' @@ -139,6 +141,8 @@ class Test_Imports(object): assert(orig_path == new_os.path) assert(orig_getenv != new_os.getenv) + @pytest.mark.skipif(hasattr(sys, 'pypy_version_info'), + reason="PyPy won't load bytecode if source not present.") def test_module_with_large_stack(self, module='longlist'): # Regression test for http://bugs.python.org/issue561858. filename = module + os.extsep + 'py'