Skip to content

Commit 3d28a05

Browse files
authored
Merge pull request #24 from yuxiangw/experiment_numpy_versionss
test out changes in the required numpy versions.
2 parents 137970a + 611d43d commit 3d28a05

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
absl-py
22
matplotlib
3-
numpy==1.19.5
4-
scipy==1.2.1
3+
numpy>=1.19.5
4+
scipy>=1.2.1

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ def _parse_requirements(path):
1818

1919
setup(
2020
name='autodp',
21-
version='0.2',
21+
version='0.2.1b',
2222
description='Automating Differential Privacy Computation',
2323
license="Apache",
2424
long_description="The package helps researchers and developers to correctly use advanced methods in differential privacy and obtain provable DP guarantees. The core of the package is an analytical moments accountant that keeps track of Renyi Differential Privacy in analytical forms.",
2525
author='Yu-Xiang Wang',
2626
author_email='[email protected]',
2727
url='https://github.com/yuxiangw/autodp',
28-
download_url = 'https://github.com/yuxiangw/autodp/archive/v0.2.tar.gz',
28+
download_url = 'https://github.com/yuxiangw/autodp/archive/refs/tags/v0.2.1.tar.gz',
2929
keywords = ['Differential Privacy','Moments Accountant','Renyi Differential Privacy'],
3030
packages=['autodp'], #same as name
3131
install_requires=[_parse_requirements('requirements.txt')], #external packages as dependencies

test/unit_test_calibrator.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,7 @@ def test_single_para(self, eps, delta,coeff, sigma):
8181
autodp_value = _multi_para(eps=eps, delta=delta,coeff=coeff, params_name='sigma')
8282
self.assertGreaterEqual(autodp_value, (1. - tol) * sigma)
8383

84+
if __name__ == '__main__':
85+
absltest.main()
86+
8487

0 commit comments

Comments
 (0)