Skip to content

Commit

Permalink
Stopped installing tests with package
Browse files Browse the repository at this point in the history
  • Loading branch information
AWhetter authored and PCManticore committed Jun 20, 2019
1 parent 7081d91 commit 33b8185
Show file tree
Hide file tree
Showing 1,068 changed files with 36 additions and 60 deletions.
8 changes: 5 additions & 3 deletions MANIFEST.in
@@ -1,11 +1,13 @@
include ChangeLog
include CONTRIBUTORS.txt
include COPYING
include DEPENDS
include README README.Python3
include README.rst
include bin/*
include examples/*.py examples/pylintrc examples/pylintrc_camelcase
include elisp/startup elisp/*.el
include man/*.1
include pytest.ini
recursive-include doc *.rst *.jpeg Makefile *.html *.py *.bat
graft pylint/test
recursive-include doc *.bat *.png *.py *.svg *.rst *.txt Makefile
graft tests
recursive-exclude tests *.pyc
2 changes: 0 additions & 2 deletions pylint/__pkginfo__.py
Expand Up @@ -85,5 +85,3 @@
scripts = [
join("bin", filename) for filename in ("pylint", "symilar", "epylint", "pyreverse")
]

include_dirs = [join("pylint", "test")]
6 changes: 6 additions & 0 deletions setup.cfg
@@ -1,3 +1,9 @@
[bdist_rpm]
packager = Sylvain Thenault <sylvain.thenault@logilab.fr>
provides = pylint

[aliases]
test = pytest

[tool:pytest]
testpaths = tests
32 changes: 1 addition & 31 deletions setup.py
Expand Up @@ -52,7 +52,6 @@
exec(f.read(), __pkginfo__)
scripts = __pkginfo__.get("scripts", [])
data_files = __pkginfo__.get("data_files", None)
include_dirs = __pkginfo__.get("include_dirs", [])
ext_modules = __pkginfo__.get("ext_modules", None)
install_requires = __pkginfo__.get("install_requires", None)
dependency_links = __pkginfo__.get("dependency_links", [])
Expand Down Expand Up @@ -97,35 +96,6 @@ def _filter_tests(files):
return [f for f in files if testdir not in f]


class MyInstallLib(install_lib.install_lib):
"""extend install_lib command to handle package __init__.py and
include_dirs variable if necessary
"""

def run(self):
"""overridden from install_lib class"""
install_lib.install_lib.run(self)
# manually install included directories if any
if include_dirs:
for directory in include_dirs:
dest = join(self.install_dir, directory)
if sys.version_info >= (3, 0):
exclude = {"invalid_encoded_data*", "unknown_encoding*"}
else:
exclude = set()
shutil.rmtree(dest, ignore_errors=True)
shutil.copytree(
directory, dest, ignore=shutil.ignore_patterns(*exclude)
)

# override this since pip/easy_install attempt to byte compile test data
# files, some of them being syntactically wrong by design, and this scares
# the end-user
def byte_compile(self, files):
files = _filter_tests(files)
install_lib.install_lib.byte_compile(self, files)


if easy_install_lib:

class easy_install(easy_install_lib.easy_install):
Expand Down Expand Up @@ -156,7 +126,7 @@ def install(**kwargs):
]
}
kwargs["packages"] = packages
cmdclass = {"install_lib": MyInstallLib, "build_py": build_py}
cmdclass = {"build_py": build_py}
if easy_install_lib:
cmdclass["easy_install"] = easy_install
return setup(
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 33b8185

Please sign in to comment.