comparison setup.py @ 988:480cf1be291a trunk

Always include the test packages (otherwise sdists built on Python 2 don't work on Python 3 which is unexpected and confusing).
author hodgestar
date Sat, 26 Jan 2013 10:57:32 +0000
parents 97fcc9f0e191
children 323d592690da
comparison
equal deleted inserted replaced
987:f4237e2bbbed 988:480cf1be291a
93 extra = {} 93 extra = {}
94 if sys.version_info >= (3,): 94 if sys.version_info >= (3,):
95 extra['use_2to3'] = True 95 extra['use_2to3'] = True
96 extra['convert_2to3_doctests'] = [] 96 extra['convert_2to3_doctests'] = []
97 extra['use_2to3_fixers'] = ['fixes'] 97 extra['use_2to3_fixers'] = ['fixes']
98 # include tests for python3 setup.py test
99 packages = [
100 'genshi', 'genshi.filters', 'genshi.template',
101 'genshi.tests', 'genshi.filters.tests',
102 'genshi.template.tests',
103 'genshi.template.tests.templates',
104 ]
105 # Install genshi template tests 98 # Install genshi template tests
106 extra['include_package_data'] = True 99 extra['include_package_data'] = True
107 else: 100
108 packages = ['genshi', 'genshi.filters', 'genshi.template'] 101
102 # include tests for python3 setup.py test (needed when creating
103 # source distributions on python2 too so that they work on python3)
104 packages = [
105 'genshi', 'genshi.filters', 'genshi.template',
106 'genshi.tests', 'genshi.filters.tests',
107 'genshi.template.tests',
108 'genshi.template.tests.templates',
109 ]
109 110
110 111
111 setup( 112 setup(
112 name = 'Genshi', 113 name = 'Genshi',
113 version = '0.8', 114 version = '0.8',
Copyright (C) 2012-2017 Edgewall Software