Install ExifRead from GitHub on Python 3.
This commit is contained in:
parent
cca5d508ad
commit
ab46e89a65
10
setup.py
10
setup.py
@ -53,6 +53,8 @@ if PY2:
|
|||||||
# # their next release.
|
# # their next release.
|
||||||
# py2_only_install_requires.append('pbr==0.5.22')
|
# py2_only_install_requires.append('pbr==0.5.22')
|
||||||
py2_only_install_requires.append('mock') # mock is in the stdlib for 3.3+
|
py2_only_install_requires.append('mock') # mock is in the stdlib for 3.3+
|
||||||
|
# PyPI version (1.4.2) does not have proper Python 3 support
|
||||||
|
py2_only_install_requires.append('ExifRead')
|
||||||
|
|
||||||
install_requires = [
|
install_requires = [
|
||||||
'gunicorn',
|
'gunicorn',
|
||||||
@ -79,7 +81,6 @@ install_requires = [
|
|||||||
'oauthlib',
|
'oauthlib',
|
||||||
'unidecode',
|
'unidecode',
|
||||||
'jsonschema',
|
'jsonschema',
|
||||||
'ExifRead', # TODO(berker): Install develop branch for Python 3
|
|
||||||
'PasteDeploy',
|
'PasteDeploy',
|
||||||
'requests',
|
'requests',
|
||||||
'pyld',
|
'pyld',
|
||||||
@ -91,6 +92,12 @@ install_requires = [
|
|||||||
# 'Pillow',
|
# 'Pillow',
|
||||||
] + py2_only_install_requires
|
] + py2_only_install_requires
|
||||||
|
|
||||||
|
dependency_links = []
|
||||||
|
if not PY2:
|
||||||
|
# PyPI version (1.4.2) does not have proper Python 3 support
|
||||||
|
dependency_links.append('https://github.com/ianare/exif-py/zipball/develop#egg=ExifRead-2.0.0')
|
||||||
|
install_requires.append('ExifRead>=2.0.0')
|
||||||
|
|
||||||
with open(READMEFILE, encoding="utf-8") as fobj:
|
with open(READMEFILE, encoding="utf-8") as fobj:
|
||||||
long_description = fobj.read()
|
long_description = fobj.read()
|
||||||
|
|
||||||
@ -103,6 +110,7 @@ try:
|
|||||||
include_package_data = True,
|
include_package_data = True,
|
||||||
# scripts and dependencies
|
# scripts and dependencies
|
||||||
install_requires=install_requires,
|
install_requires=install_requires,
|
||||||
|
dependency_links=dependency_links,
|
||||||
test_suite='nose.collector',
|
test_suite='nose.collector',
|
||||||
entry_points="""\
|
entry_points="""\
|
||||||
[console_scripts]
|
[console_scripts]
|
||||||
|
6
tox.ini
6
tox.ini
@ -5,11 +5,9 @@ sitepackages = False
|
|||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
whitelist_externals = sh
|
# for ExifRead 2.0.0
|
||||||
|
install_command = pip install --process-dependency-links --pre {opts} {packages}
|
||||||
commands = py.test ./mediagoblin/tests --boxed
|
commands = py.test ./mediagoblin/tests --boxed
|
||||||
deps =
|
deps =
|
||||||
lxml
|
lxml
|
||||||
Pillow
|
Pillow
|
||||||
# exif-py 1.4.2 does not yet have proper py3 support,
|
|
||||||
# so for now...
|
|
||||||
git+https://github.com/ianare/exif-py.git@develop
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user