Improve tests bundling for Fedora

This commit is contained in:
Ram Rachum 2019-06-19 19:56:44 +02:00
parent f585746da7
commit de4027c0ef
3 changed files with 4 additions and 2 deletions

View File

@ -2,3 +2,5 @@ include README.md
include LICENSE
include requirements.in
include requirements.txt
recursive-include tests *.txt *.py
prune tests/.pytest_cache

View File

@ -24,7 +24,7 @@ import collections
__VersionInfo = collections.namedtuple('VersionInfo',
('major', 'minor', 'micro'))
__version__ = '0.2.1'
__version__ = '0.2.2'
__version_info__ = __VersionInfo(*(map(int, __version__.split('.'))))
del collections, __VersionInfo # Avoid polluting the namespace

View File

@ -20,7 +20,7 @@ setuptools.setup(
long_description=read_file('README.md'),
long_description_content_type='text/markdown',
url='https://github.com/cool-RR/PySnooper',
packages=setuptools.find_packages(exclude=['tests']),
packages=setuptools.find_packages(exclude=['tests*']),
install_requires=read_file('requirements.in'),
extras_require={
'tests': {