mirror of
https://github.com/lepture/captcha.git
synced 2026-03-13 09:43:22 +08:00
Fix for install requires
This commit is contained in:
@@ -7,12 +7,8 @@ python:
|
||||
- "3.4"
|
||||
- "pypy"
|
||||
|
||||
env:
|
||||
- DEPS=Pillow
|
||||
- DEPS=Pillow wheezy.captcha
|
||||
|
||||
install:
|
||||
- if [[ $TRAVIS_PYTHON_VERSION != 'pypy' ]]; then pip install -q $DEPS; fi
|
||||
- if [[ $TRAVIS_PYTHON_VERSION != 'pypy' ]]; then pip install -q Pillow wheezy.captcha; fi
|
||||
|
||||
script:
|
||||
- python setup.py -q nosetests
|
||||
|
||||
7
setup.py
7
setup.py
@@ -8,11 +8,15 @@ try:
|
||||
except ImportError:
|
||||
from distutils.core import setup
|
||||
|
||||
import sys
|
||||
import captcha
|
||||
from email.utils import parseaddr
|
||||
|
||||
author, author_email = parseaddr(captcha.__author__)
|
||||
kwargs = {}
|
||||
if not hasattr(sys, 'pypy_version_info'):
|
||||
kwargs['install_requires'] = ['Pillow']
|
||||
|
||||
author, author_email = parseaddr(captcha.__author__)
|
||||
|
||||
|
||||
def fopen(filename):
|
||||
@@ -32,7 +36,6 @@ setup(
|
||||
license='BSD',
|
||||
zip_safe=False,
|
||||
include_package_data=True,
|
||||
install_requires=['Pillow'],
|
||||
test_require=['nose'],
|
||||
test_suite='nose.collector',
|
||||
classifiers=[
|
||||
|
||||
Reference in New Issue
Block a user