Remove unneeded tensorflow-privacy
dependencies.
Please note: 1. I have manually tested the TFP release for python 3.10. 2. TFP does not define the set of python version that it is compatible with. This change should be followed up with the following changes: * Define the set of python version that TFP is compatible with. * Setup a Python package building test. * Release TFP so that projects depending on TFP can support Python 3.11 PiperOrigin-RevId: 572297305
This commit is contained in:
parent
0eea97f220
commit
a9ea9ba4a0
4 changed files with 4 additions and 16 deletions
|
@ -31,14 +31,6 @@ better performance, it is also recommended to install TensorFlow with GPU
|
||||||
support (detailed instructions on how to do this are available in the TensorFlow
|
support (detailed instructions on how to do this are available in the TensorFlow
|
||||||
installation documentation).
|
installation documentation).
|
||||||
|
|
||||||
In addition to TensorFlow and its dependencies, other prerequisites are:
|
|
||||||
|
|
||||||
* `scipy` >= 0.17
|
|
||||||
|
|
||||||
* `mpmath` (for testing)
|
|
||||||
|
|
||||||
* `tensorflow_datasets` (for the RNN tutorial `lm_dpsgd_tutorial.py` only)
|
|
||||||
|
|
||||||
### Installing TensorFlow Privacy
|
### Installing TensorFlow Privacy
|
||||||
|
|
||||||
If you only want to use TensorFlow Privacy as a library, you can simply execute
|
If you only want to use TensorFlow Privacy as a library, you can simply execute
|
||||||
|
|
|
@ -26,7 +26,6 @@ dm-tree==0.1.8
|
||||||
dp-accounting==0.4.3
|
dp-accounting==0.4.3
|
||||||
immutabledict~=2.2
|
immutabledict~=2.2
|
||||||
matplotlib~=3.3
|
matplotlib~=3.3
|
||||||
mpmath~=1.2
|
|
||||||
numpy~=1.21
|
numpy~=1.21
|
||||||
packaging~=22.0
|
packaging~=22.0
|
||||||
pandas~=1.4
|
pandas~=1.4
|
||||||
|
|
9
setup.py
9
setup.py
|
@ -13,15 +13,14 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
"""TensorFlow Privacy library setup file for pip."""
|
"""TensorFlow Privacy library setup file for pip."""
|
||||||
|
|
||||||
from setuptools import find_packages
|
import setuptools
|
||||||
from setuptools import setup
|
|
||||||
|
|
||||||
with open('tensorflow_privacy/version.py') as file:
|
with open('tensorflow_privacy/version.py') as file:
|
||||||
globals_dict = {}
|
globals_dict = {}
|
||||||
exec(file.read(), globals_dict) # pylint: disable=exec-used
|
exec(file.read(), globals_dict) # pylint: disable=exec-used
|
||||||
VERSION = globals_dict['__version__']
|
VERSION = globals_dict['__version__']
|
||||||
|
|
||||||
setup(
|
setuptools.setup(
|
||||||
name='tensorflow_privacy',
|
name='tensorflow_privacy',
|
||||||
version=VERSION,
|
version=VERSION,
|
||||||
url='https://github.com/tensorflow/privacy',
|
url='https://github.com/tensorflow/privacy',
|
||||||
|
@ -36,15 +35,13 @@ setup(
|
||||||
'numpy~=1.21',
|
'numpy~=1.21',
|
||||||
'packaging~=22.0',
|
'packaging~=22.0',
|
||||||
'pandas~=1.4',
|
'pandas~=1.4',
|
||||||
'parameterized~=0.8',
|
|
||||||
'scikit-learn>=1.0,==1.*',
|
'scikit-learn>=1.0,==1.*',
|
||||||
'scipy~=1.9',
|
'scipy~=1.9',
|
||||||
'statsmodels~=0.13',
|
'statsmodels~=0.13',
|
||||||
'tensorflow-datasets~=4.5',
|
|
||||||
'tensorflow-estimator~=2.4',
|
'tensorflow-estimator~=2.4',
|
||||||
'tensorflow-probability~=0.22.0',
|
'tensorflow-probability~=0.22.0',
|
||||||
'tensorflow~=2.4',
|
'tensorflow~=2.4',
|
||||||
'tf-models-official~=2.13',
|
'tf-models-official~=2.13',
|
||||||
],
|
],
|
||||||
packages=find_packages(),
|
packages=setuptools.find_packages(),
|
||||||
)
|
)
|
||||||
|
|
|
@ -28,7 +28,7 @@ main() {
|
||||||
pip install --upgrade pip
|
pip install --upgrade pip
|
||||||
pip --version
|
pip --version
|
||||||
|
|
||||||
# Publish the pip package.
|
# Test the pip package.
|
||||||
package="$(ls "dist/"*".whl" | head -n1)"
|
package="$(ls "dist/"*".whl" | head -n1)"
|
||||||
pip install --upgrade "${package}"
|
pip install --upgrade "${package}"
|
||||||
pip freeze
|
pip freeze
|
||||||
|
|
Loading…
Reference in a new issue