From 4234cfcc6337cb400391962e69f970d51a3c9da7 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 20 Dec 2013 19:09:37 +0400 Subject: [PATCH] Do not install tests but include them in source distribution --- MANIFEST.in | 3 +++ m_lib/flad/test/__init__.py | 1 - m_lib/pbar/test/__init__.py | 1 - setup.py | 13 ++++--------- 4 files changed, 7 insertions(+), 11 deletions(-) delete mode 100644 m_lib/flad/test/__init__.py delete mode 100644 m_lib/pbar/test/__init__.py diff --git a/MANIFEST.in b/MANIFEST.in index 646b3c0..b4f5579 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1,4 @@ include INSTALL.txt MANIFEST.in README-flad.txt +recursive-include m_lib/flad/test *.py *.cfg *.txt +recursive-include m_lib/hash/test *.py +recursive-include m_lib/pbar/test *.py diff --git a/m_lib/flad/test/__init__.py b/m_lib/flad/test/__init__.py deleted file mode 100644 index 6f91d98..0000000 --- a/m_lib/flad/test/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"Broytman Flat ASCII Database for Python - Test, Copyright (C) 1996-2001 PhiloSoft Design" diff --git a/m_lib/pbar/test/__init__.py b/m_lib/pbar/test/__init__.py deleted file mode 100644 index 6f91d98..0000000 --- a/m_lib/pbar/test/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"Broytman Flat ASCII Database for Python - Test, Copyright (C) 1996-2001 PhiloSoft Design" diff --git a/setup.py b/setup.py index 5d22450..305bfce 100755 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from distutils.core import setup setup(name = "m_lib", - version = "2.0.1", + version = "2.1.0", description = "Broytman Library for Python", long_description = "Broytman Library for Python, Copyright (C) 1996-2013 PhiloSoft Design", author = "Oleg Broytman", @@ -11,14 +11,9 @@ setup(name = "m_lib", url = "http://phdru.name/Software/Python/#m_lib", license = "GPL", platforms = "All", - packages = ["m_lib", "m_lib.clock", "m_lib.flad", "m_lib.flad.test", - "m_lib.hash", "m_lib.hash.test", "m_lib.lazy", + packages = ["m_lib", "m_lib.clock", "m_lib.flad", + "m_lib.hash", "m_lib.lazy", "m_lib.net", "m_lib.net.ftp", "m_lib.net.www", - "m_lib.pbar", "m_lib.pbar.test", "m_lib.rus", + "m_lib.pbar", "m_lib.rus", ], - package_data = {'m_lib.flad': [ - "test/comment.txt", - "test/test.cfg", - "test/test.txt", - ]}, ) -- 2.39.5