From c3e3a217f87a97524350dadcb92577de6dd8be34 Mon Sep 17 00:00:00 2001 From: Sam Clements Date: Fri, 6 Nov 2020 10:42:56 +0000 Subject: [PATCH] Include tests using MANIFEST.in instead of setup.py Fixes #28, #90. This should result in tests being included in the source distribution (along with docs for package maintainers to use); but not being "installed" when the module is installed (as users complain the tests aren't needed at runtime). https://github.com/borntyping/python-colorlog/issues/28 https://github.com/borntyping/python-colorlog/pull/63 https://github.com/borntyping/python-colorlog/pull/90 --- MANIFEST.in | 7 ++++--- setup.py | 5 ++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 6c43061..4e7d3e1 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,5 @@ -include README.md +global-exclude *.py[co] +include colorlog/tests/ +include doc/ include LICENSE -include colorlog/tests/test_config.ini -graft doc +include README.md diff --git a/setup.py b/setup.py index f12474e..6fe187f 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='colorlog', - version='4.4.0', + version='4.5.0', description='Log formatting with colors!', long_description=open('README.md').read(), @@ -14,8 +14,7 @@ license='MIT License', packages=[ - 'colorlog', - 'colorlog.tests' + 'colorlog' ], setup_requires=[