# HG changeset patch # User hodgestar # Date 1359197852 0 # Node ID 480cf1be291aadeab04dc39395460b4a8fd46ac9 # Parent f4237e2bbbed66ccc8b9cb9ea27d5fead9422ae1 Always include the test packages (otherwise sdists built on Python 2 don't work on Python 3 which is unexpected and confusing). diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -95,17 +95,18 @@ extra['use_2to3'] = True extra['convert_2to3_doctests'] = [] extra['use_2to3_fixers'] = ['fixes'] - # include tests for python3 setup.py test - packages = [ - 'genshi', 'genshi.filters', 'genshi.template', - 'genshi.tests', 'genshi.filters.tests', - 'genshi.template.tests', - 'genshi.template.tests.templates', - ] # Install genshi template tests extra['include_package_data'] = True -else: - packages = ['genshi', 'genshi.filters', 'genshi.template'] + + +# include tests for python3 setup.py test (needed when creating +# source distributions on python2 too so that they work on python3) +packages = [ + 'genshi', 'genshi.filters', 'genshi.template', + 'genshi.tests', 'genshi.filters.tests', + 'genshi.template.tests', + 'genshi.template.tests.templates', +] setup(