Skip to content

Commit

Permalink
Unpin TF1. Fixes #1594.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 314356554
Change-Id: Ice154d35b11ca74389b265837e13912e4389204b
  • Loading branch information
adarob authored and Copybara-Service committed Jun 2, 2020
1 parent 0350fdf commit 20cbc69
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 31 deletions.
2 changes: 1 addition & 1 deletion magenta/models/music_vae/trained_model.py
Expand Up @@ -18,8 +18,8 @@
import os
import re
import tarfile
import tempfile

from backports import tempfile
import numpy as np
import tensorflow.compat.v1 as tf

Expand Down
2 changes: 1 addition & 1 deletion magenta/version.py
Expand Up @@ -18,4 +18,4 @@
pulling in all the dependencies in __init__.py.
"""

__version__ = '1.3.3'
__version__ = '2.0.0'
39 changes: 10 additions & 29 deletions setup.py
Expand Up @@ -25,30 +25,22 @@
exec(in_file.read()) # pylint: disable=exec-used

REQUIRED_PACKAGES = [
'IPython',
'Pillow >= 3.4.2',
'absl-py',
'apache-beam[gcp] >= 2.14.0',
'attrs',
'backports.tempfile',
'bokeh >= 0.12.0',
# Temporary fix for gast issue with TF.
# Details:
# https://github.com/tensorflow/tensorflow/issues/32319
# https://github.com/tensorflow/tensorflow/commit/c72125bd59858ec82a9238b232bbd77c45889c5a
'gast == 0.2.2',
# tensor2tensor requires gym, but the newest version of gym depends on a
# a version of cloudpickle that is incompatible with tensorflow-probability
# 0.7.0.
'gym < 0.16.0',
'dm-sonnet',
'imageio',
'intervaltree >= 2.1.0',
'IPython',
'joblib >= 0.12',
'librosa >= 0.6.2',
'matplotlib >= 1.5.3',
'mido == 1.2.6',
'mir_eval >= 0.4',
'numpy >= 1.14.6', # 1.14.6 is required for colab compatibility.
'numpy',
'pandas >= 0.18.1',
'Pillow >= 3.4.2',
'pretty_midi >= 0.2.6',
'protobuf >= 3.6.1',
'pygtrie >= 2.3',
Expand All @@ -57,23 +49,13 @@
'scipy >= 0.18.1',
'six >= 1.12.0',
'sk-video',
# Keep Sonnet < 2.0.0 because that requires TF2.
# For now, restrict to < 1.36 because that requires tensorflow-probability
# 0.8.0, which causes problems with tensor2tensor.
'dm-sonnet < 1.36.0', # Sonnet 2 requires TF2.
'sox >= 1.3.7',
'tensorflow >= 1.15.0, < 2.0.0', # Magenta is not yet TF2 compatible.
'tensorflow-datasets >= 1.0.2',
# Pinned to be compatible with tensor2tensor requirements.
'tensorflow-probability == 0.7.0',
'tensor2tensor >= 1.13.4',
'tensor2tensor',
'tensorflow',
'tensorflow-datasets',
'tensorflow-probability',
'tf_slim',
'wheel',
'futures;python_version=="2.7"',
'apache-beam[gcp] >= 2.14.0',
# Temporary fix for:
# https://issues.apache.org/jira/projects/AVRO/issues/AVRO-2737?filter=allopenissues
'avro-python3 !=1.9.2',
]

EXTRAS_REQUIRE = {
Expand Down Expand Up @@ -176,7 +158,6 @@
tests_require=[
'pytest >= 5.2.0',
'pytest-xdist < 1.30.0', # 1.30 has problems working with pylint plugin
'pylint < 2.0.0;python_version<"3"',
'pylint >= 2.4.2;python_version>="3"',
'pylint >= 2.4.2',
],
)

0 comments on commit 20cbc69

Please sign in to comment.