Install html5lib in the tox configuration automatically and directly call runtests.py without detour to setuptools' test command. We're not installing lxml automatically since it doesn't reliably work on all platforms.
This commit is contained in:
		
							
								
								
									
										4
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								setup.py
									
									
									
									
									
								
							| @@ -114,9 +114,6 @@ setup( | |||||||
|     install_requires = [ |     install_requires = [ | ||||||
|         'BeautifulSoup', |         'BeautifulSoup', | ||||||
|     ], |     ], | ||||||
|     tests_require = [ |  | ||||||
|         'Django', 'BeautifulSoup', |  | ||||||
|     ], |  | ||||||
|     classifiers = [ |     classifiers = [ | ||||||
|         'Development Status :: 4 - Beta', |         'Development Status :: 4 - Beta', | ||||||
|         'Framework :: Django', |         'Framework :: Django', | ||||||
| @@ -126,6 +123,5 @@ setup( | |||||||
|         'Programming Language :: Python', |         'Programming Language :: Python', | ||||||
|         'Topic :: Internet :: WWW/HTTP', |         'Topic :: Internet :: WWW/HTTP', | ||||||
|     ], |     ], | ||||||
|     test_suite='compressor.tests.runtests.runtests', |  | ||||||
|     zip_safe = False, |     zip_safe = False, | ||||||
| ) | ) | ||||||
|   | |||||||
							
								
								
									
										20
									
								
								tox.ini
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								tox.ini
									
									
									
									
									
								
							| @@ -2,51 +2,69 @@ | |||||||
| distribute=false | distribute=false | ||||||
| sitepackages=true | sitepackages=true | ||||||
| commands = | commands = | ||||||
|     python setup.py test |     python compressor/tests/runtests.py | ||||||
|  |  | ||||||
| [testenv:py25-1.1.X] | [testenv:py25-1.1.X] | ||||||
| basepython = python2.5 | basepython = python2.5 | ||||||
| deps = | deps = | ||||||
|  |     BeautifulSoup | ||||||
|  |     html5lib | ||||||
|     django==1.1.4 |     django==1.1.4 | ||||||
|  |  | ||||||
| [testenv:py26-1.1.X] | [testenv:py26-1.1.X] | ||||||
| basepython = python2.6 | basepython = python2.6 | ||||||
| deps = | deps = | ||||||
|  |     BeautifulSoup | ||||||
|  |     html5lib | ||||||
|     django==1.1.4 |     django==1.1.4 | ||||||
|  |  | ||||||
| [testenv:py27-1.1.X] | [testenv:py27-1.1.X] | ||||||
| basepython = python2.7 | basepython = python2.7 | ||||||
| deps = | deps = | ||||||
|  |     BeautifulSoup | ||||||
|  |     html5lib | ||||||
|     django==1.1.4 |     django==1.1.4 | ||||||
|  |  | ||||||
|  |  | ||||||
| [testenv:py25-1.2.X] | [testenv:py25-1.2.X] | ||||||
| basepython = python2.5 | basepython = python2.5 | ||||||
| deps = | deps = | ||||||
|  |     BeautifulSoup | ||||||
|  |     html5lib | ||||||
|     django==1.2.5 |     django==1.2.5 | ||||||
|  |  | ||||||
| [testenv:py26-1.2.X] | [testenv:py26-1.2.X] | ||||||
| basepython = python2.6 | basepython = python2.6 | ||||||
| deps = | deps = | ||||||
|  |     BeautifulSoup | ||||||
|  |     html5lib | ||||||
|     django==1.2.5 |     django==1.2.5 | ||||||
|  |  | ||||||
| [testenv:py27-1.2.X] | [testenv:py27-1.2.X] | ||||||
| basepython = python2.7 | basepython = python2.7 | ||||||
| deps = | deps = | ||||||
|  |     BeautifulSoup | ||||||
|  |     html5lib | ||||||
|     django==1.2.5 |     django==1.2.5 | ||||||
|  |  | ||||||
|  |  | ||||||
| [testenv:py25-1.3.X] | [testenv:py25-1.3.X] | ||||||
| basepython = python2.5 | basepython = python2.5 | ||||||
| deps = | deps = | ||||||
|  |     BeautifulSoup | ||||||
|  |     html5lib | ||||||
|     django==1.3 |     django==1.3 | ||||||
|  |  | ||||||
| [testenv:py26-1.3.X] | [testenv:py26-1.3.X] | ||||||
| basepython = python2.6 | basepython = python2.6 | ||||||
| deps = | deps = | ||||||
|  |     BeautifulSoup | ||||||
|  |     html5lib | ||||||
|     django==1.3 |     django==1.3 | ||||||
|  |  | ||||||
| [testenv:py27-1.3.X] | [testenv:py27-1.3.X] | ||||||
| basepython = python2.7 | basepython = python2.7 | ||||||
| deps = | deps = | ||||||
|  |     BeautifulSoup | ||||||
|  |     html5lib | ||||||
|     django==1.3 |     django==1.3 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jannis Leidel
					Jannis Leidel