From da79d522c6545932c9434cec9bff8ca18b59affc Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Wed, 26 Dec 2018 23:28:20 -0800 Subject: [PATCH] Project import generated by Copybara. PiperOrigin-RevId: 226991741 --- privacy/analysis/rdp_accountant_test.py | 2 +- setup.py | 27 +++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 setup.py diff --git a/privacy/analysis/rdp_accountant_test.py b/privacy/analysis/rdp_accountant_test.py index 603f7ad..c048622 100644 --- a/privacy/analysis/rdp_accountant_test.py +++ b/privacy/analysis/rdp_accountant_test.py @@ -25,7 +25,7 @@ from absl.testing import parameterized import mpmath as mp import numpy as np -import rdp_accountant +from privacy.analysis import rdp_accountant class TestGaussianMoments(parameterized.TestCase): diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..b81e407 --- /dev/null +++ b/setup.py @@ -0,0 +1,27 @@ +# 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. +from setuptools import find_packages +from setuptools import setup + +setup(name='privacy', + version='0.0.1', + url='https://github.com/tensorflow/privacy', + license='Apache-2.0', + # Explicit dependence on TensorFlow is not supported. + # See https://github.com/tensorflow/tensorflow/issues/7166 + extras_require={ + "tf": ["tensorflow>=1.0.0"], + "tf_gpu": ["tensorflow-gpu>=1.0.0"], + }, + packages=find_packages())