Fixed build issue. Skipped pypy bytecode-without-source tests.
This commit is contained in:
parent
3d02248afe
commit
be7c4e4d21
|
@ -1,8 +1,8 @@
|
||||||
include AUTHORS.md
|
include AUTHORS.rst
|
||||||
include CONTRIBUTING.md
|
include CONTRIBUTING.rst
|
||||||
include HISTORY.md
|
include HISTORY.rst
|
||||||
include LICENSE
|
include LICENSE
|
||||||
include README.md
|
include README.rst
|
||||||
|
|
||||||
recursive-include tests *
|
recursive-include tests *
|
||||||
recursive-exclude * __pycache__
|
recursive-exclude * __pycache__
|
||||||
|
|
4
setup.py
4
setup.py
|
@ -1,13 +1,11 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from distutils.core import setup
|
from distutils.core import setup
|
||||||
|
|
||||||
|
|
||||||
with open('README.rst') as readme_file:
|
with open('README.rst') as readme_file:
|
||||||
readme = readme_file.read()
|
readme = readme_file.read()
|
||||||
|
|
||||||
|
@ -25,7 +23,7 @@ test_requirements = [
|
||||||
setup(
|
setup(
|
||||||
name='polyloader',
|
name='polyloader',
|
||||||
version='0.1.0',
|
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,
|
long_description=readme + '\n\n' + history,
|
||||||
author='Kenneth M. "Elf" Sternberg',
|
author='Kenneth M. "Elf" Sternberg',
|
||||||
author_email='elf.sternberg@gmail.com',
|
author_email='elf.sternberg@gmail.com',
|
||||||
|
|
|
@ -55,6 +55,8 @@ class Test_Imports(object):
|
||||||
else:
|
else:
|
||||||
assert(False)
|
assert(False)
|
||||||
|
|
||||||
|
@pytest.mark.skipif(hasattr(sys, 'pypy_version_info'),
|
||||||
|
reason="PyPy won't load bytecode if source not present.")
|
||||||
def test_import(self):
|
def test_import(self):
|
||||||
sys.path.insert(0, os.curdir)
|
sys.path.insert(0, os.curdir)
|
||||||
ext = 'py'
|
ext = 'py'
|
||||||
|
@ -139,6 +141,8 @@ class Test_Imports(object):
|
||||||
assert(orig_path == new_os.path)
|
assert(orig_path == new_os.path)
|
||||||
assert(orig_getenv != new_os.getenv)
|
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'):
|
def test_module_with_large_stack(self, module='longlist'):
|
||||||
# Regression test for http://bugs.python.org/issue561858.
|
# Regression test for http://bugs.python.org/issue561858.
|
||||||
filename = module + os.extsep + 'py'
|
filename = module + os.extsep + 'py'
|
||||||
|
|
Loading…
Reference in New Issue