By using PEP 426 markers with `extras_require` in `setup.py`, wheel can parse the marker and install ordereddict only on Python 2.6. ref: https://wheel.readthedocs.org/en/latest/#defining-conditional-dependencies Fixes #340.
		
			
				
	
	
		
			49 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
| #!/usr/bin/env python
 | |
| from __future__ import unicode_literals
 | |
| from setuptools import setup, find_packages
 | |
| 
 | |
| install_requires = [
 | |
|     "Jinja2",
 | |
|     "boto>=2.20.0",
 | |
|     "flask",
 | |
|     "httpretty>=0.6.1",
 | |
|     "requests",
 | |
|     "xmltodict",
 | |
|     "six",
 | |
|     "werkzeug",
 | |
| ]
 | |
| 
 | |
| extras_require = {
 | |
|     # No builtin OrderedDict before 2.7
 | |
|     ':python_version=="2.6"': ['ordereddict'],
 | |
| }
 | |
| 
 | |
| setup(
 | |
|     name='moto',
 | |
|     version='0.4.10',
 | |
|     description='A library that allows your python tests to easily'
 | |
|                 ' mock out the boto library',
 | |
|     author='Steve Pulec',
 | |
|     author_email='spulec@gmail',
 | |
|     url='https://github.com/spulec/moto',
 | |
|     entry_points={
 | |
|         'console_scripts': [
 | |
|             'moto_server = moto.server:main',
 | |
|         ],
 | |
|     },
 | |
|     packages=find_packages(exclude=("tests", "tests.*")),
 | |
|     install_requires=install_requires,
 | |
|     extras_require=extras_require,
 | |
|     license="Apache",
 | |
|     test_suite="tests",
 | |
|     classifiers=[
 | |
|         "Programming Language :: Python :: 2",
 | |
|         "Programming Language :: Python :: 2.6",
 | |
|         "Programming Language :: Python :: 2.7",
 | |
|         "Programming Language :: Python :: 3",
 | |
|         "Programming Language :: Python :: 3.3",
 | |
|         "License :: OSI Approved :: Apache Software License",
 | |
|         "Topic :: Software Development :: Testing",
 | |
|     ],
 | |
| )
 |