diff options
author | FELD Boris <lothiraldan@gmail.com> | 2012-07-26 10:37:55 +0100 |
---|---|---|
committer | FELD Boris <lothiraldan@gmail.com> | 2012-07-26 10:37:55 +0100 |
commit | 6d1252aaa96154dfcc6e2660e959c86b44056b4d (patch) | |
tree | cba37d9f223f2bc493c64aa810bab4947796f917 /setup.py | |
parent | 2739e71c7498eb9a954b9bf1d0dc8bb40ee628d9 (diff) | |
download | pylint-git-6d1252aaa96154dfcc6e2660e959c86b44056b4d.tar.gz |
Do not include tests files for installation in setup.py. Clean setup.py for python3. Closes #72022. Closes #82417. Closes #76910.
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -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: |