2018-12-27 00:28:20 -07:00
|
|
|
# Copyright 2018, The TensorFlow Authors.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
2019-08-23 10:21:00 -06:00
|
|
|
"""TensorFlow Privacy library setup file for pip."""
|
2022-01-28 13:33:31 -07:00
|
|
|
|
2023-10-10 11:33:37 -06:00
|
|
|
import setuptools
|
2018-12-27 00:28:20 -07:00
|
|
|
|
2022-01-28 13:33:31 -07:00
|
|
|
with open('tensorflow_privacy/version.py') as file:
|
|
|
|
globals_dict = {}
|
|
|
|
exec(file.read(), globals_dict) # pylint: disable=exec-used
|
|
|
|
VERSION = globals_dict['__version__']
|
|
|
|
|
2023-10-10 16:30:21 -06:00
|
|
|
README = (
|
|
|
|
'A Python library that includes implementations of TensorFlow optimizers '
|
|
|
|
'for training machine learning models with differential privacy.'
|
|
|
|
)
|
|
|
|
|
2023-10-10 11:33:37 -06:00
|
|
|
setuptools.setup(
|
2020-01-15 16:46:55 -07:00
|
|
|
name='tensorflow_privacy',
|
2022-01-28 13:33:31 -07:00
|
|
|
version=VERSION,
|
2023-10-10 16:30:21 -06:00
|
|
|
description='A privacy-focused machine learning framework',
|
|
|
|
long_description=README,
|
|
|
|
long_description_content_type='text/plain',
|
2020-01-15 16:46:55 -07:00
|
|
|
url='https://github.com/tensorflow/privacy',
|
|
|
|
license='Apache-2.0',
|
2023-10-10 16:30:21 -06:00
|
|
|
packages=setuptools.find_packages(),
|
2020-01-15 16:46:55 -07:00
|
|
|
install_requires=[
|
2022-08-30 18:16:14 -06:00
|
|
|
'absl-py>=1.0,==1.*',
|
2023-09-19 16:22:07 -06:00
|
|
|
'attrs>=21.4',
|
2023-04-26 15:34:56 -06:00
|
|
|
'dm-tree==0.1.8',
|
2023-09-19 16:22:07 -06:00
|
|
|
'dp-accounting==0.4.3',
|
2022-12-20 12:48:44 -07:00
|
|
|
'immutabledict~=2.2',
|
2022-08-19 10:37:38 -06:00
|
|
|
'matplotlib~=3.3',
|
2022-08-26 15:29:44 -06:00
|
|
|
'numpy~=1.21',
|
2022-12-20 12:48:44 -07:00
|
|
|
'packaging~=22.0',
|
2022-08-19 10:37:38 -06:00
|
|
|
'pandas~=1.4',
|
2022-08-30 18:16:14 -06:00
|
|
|
'scikit-learn>=1.0,==1.*',
|
2023-06-26 09:59:15 -06:00
|
|
|
'scipy~=1.9',
|
2023-12-14 14:45:01 -07:00
|
|
|
'statsmodels==0.14.0',
|
2022-02-15 11:08:22 -07:00
|
|
|
'tensorflow-estimator~=2.4',
|
2023-10-10 10:58:21 -06:00
|
|
|
'tensorflow-probability~=0.22.0',
|
2022-02-15 11:08:22 -07:00
|
|
|
'tensorflow~=2.4',
|
2023-09-11 14:17:34 -06:00
|
|
|
'tf-models-official~=2.13',
|
2020-01-15 16:46:55 -07:00
|
|
|
],
|
2023-10-10 12:05:29 -06:00
|
|
|
python_requires='>=3.9.0,<3.12',
|
2023-04-26 15:34:56 -06:00
|
|
|
)
|