From 78f5d8a1ec8b1fc7d96806faa12eb1d550e73628 Mon Sep 17 00:00:00 2001 From: FELD Boris Date: Thu, 26 Jul 2012 10:37:55 +0100 Subject: Do not include tests files for installation in setup.py. Clean setup.py for python3. Closes #72022. Closes #82417. Closes #76910. --- setup.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index a764d2e..33854b5 100644 --- a/setup.py +++ b/setup.py @@ -38,9 +38,6 @@ except ImportError: from distutils.command import install_lib USE_SETUPTOOLS = 0 -# pylint needs to filter some test files expected to be wrong -P3K_FILES_TO_IGNORE= ('test/input/func_noerror_encoding.py', - 'test/input/func_unknown_encoding.py',) try: # python3 from distutils.command.build_py import build_py_2to3 as build_py @@ -52,9 +49,6 @@ try: if self.packages: self.build_packages() self.build_package_data() - # filter test files - self.updated_files = [f for f in self.updated_files - if not f.endswith(P3K_FILES_TO_IGNORE)] # 2to3 self.run_2to3(self.updated_files) # Remaining base class code @@ -104,8 +98,7 @@ def get_packages(directory, prefix): for package in os.listdir(directory): absfile = join(directory, package) if isdir(absfile): - if exists(join(absfile, '__init__.py')) or \ - package in ('test', 'tests'): + if exists(join(absfile, '__init__.py')): if prefix: result.append('%s.%s' % (prefix, package)) else: -- cgit v1.2.1