Skip to content

Commit

Permalink
Update version to 0.2.1rc4 and PyDP dependecy to 1.1.4 (#482)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvadym authored Aug 25, 2023
1 parent 2c76461 commit 72faa2c
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
max-parallel: 3
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion pipeline_dp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@
from pipeline_dp.pipeline_backend import PipelineBackend
from pipeline_dp.pipeline_backend import SparkRDDBackend

__version__ = '0.2.1rc3'
__version__ = '0.2.1rc4'
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
[tool.poetry]
name = "pipeline-dp"
version = "0.2.1rc3"
version = "0.2.1rc4"
description = ""
authors = ["Chinmay Shah <chinmayshah3899@gmail.com>", "Vadym Doroshenko <dvadym@google.com>"]
license = "Apache-2.0"

[tool.poetry.dependencies]
python = "^3.8, < 3.11"
python-dp = "^1.1.3rc4"
python = "^3.8, < 3.12"
python-dp = "^1.1.4"
numpy = "^1.20.1"
dp_accounting = "^0.4.2"

[tool.poetry.dev-dependencies]
yapf = "^0.32.0"
Expand Down
4 changes: 2 additions & 2 deletions requirements.dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ pytest-timeout

pylint
yapf
dp-accounting==0.4.0
python-dp==1.1.4rc1
dp-accounting==0.4.2
python-dp==1.1.4
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.2.1rc3
current_version = 0.2.1rc4
commit = True
tag = True

Expand Down
10 changes: 6 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@

install_requires = \
['numpy>=1.20.1,<2.0.0',
'python-dp>=1.1.3rc4',
'scipy>=1.7.3,<2.0.0']
'python-dp>=1.1.4',
'scipy>=1.7.3,<2.0.0',
'dp_accounting>=0.4.2'
]


def read(fname):
Expand All @@ -20,7 +22,7 @@ def read(fname):

setup_kwargs = {
'name': 'pipeline-dp',
'version': '0.2.1rc3',
'version': '0.2.1rc4',
'description': 'Framework for applying differential privacy to large datasets using batch processing systems',
'author': 'Chinmay Shah',
'author_email': 'chinmayshah3899@gmail.com',
Expand All @@ -30,7 +32,7 @@ def read(fname):
'packages': packages,
'package_data': package_data,
'install_requires': install_requires,
'python_requires': '>=3.8,<3.11',
'python_requires': '>=3.8,<3.12',
'long_description': read("README.md"),
'long_description_content_type': 'text/markdown',
'license': "Apache-2.0",
Expand Down
4 changes: 4 additions & 0 deletions tests/budget_accounting_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.
"""Budget Accounting Test"""

import sys
import unittest
from dataclasses import dataclass
# TODO: import only modules https://google.github.io/styleguide/pyguide.html#22-imports
Expand Down Expand Up @@ -195,6 +196,9 @@ def test_not_enough_aggregations(self, use_num_aggregations):
budget_accountant.compute_budgets()


@unittest.skipIf(
sys.version_info.major == 3 and sys.version_info.minor == 8,
"There are some problems with dp_accounting library in python 3.8")
class PLDBudgetAccountantTest(unittest.TestCase):

def test_noise_not_calculated(self):
Expand Down
3 changes: 3 additions & 0 deletions tests/dp_engine_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1093,6 +1093,9 @@ def run_e2e_private_partition_selection_large_budget(self, col, backend):

return col

@unittest.skipIf(
sys.version_info.major == 3 and sys.version_info.minor == 8,
"There are some problems with dp_accounting library in python 3.8")
@parameterized.parameters(False, True)
def test_run_e2e_count_public_partition_local(self, pld_accounting):
Accountant = pipeline_dp.PLDBudgetAccountant if pld_accounting else pipeline_dp.NaiveBudgetAccountant
Expand Down
7 changes: 2 additions & 5 deletions tests/pipeline_backend_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,11 +352,8 @@ def test_sum_per_key(self):
result = self.backend.sum_per_key(data).collect()
self.assertEqual(set(result), {(1, 6), (2, -2), (3, 8), (10, 5)})

@unittest.skipIf(
sys.platform == "darwin" and sys.version_info.major == 3 and
(sys.version_info.minor == 8 or sys.version_info.minor == 9),
"There are some problems with PySpark setup on macOS in python 3.8 "
"and 3.9.")
@unittest.skipIf(sys.platform == "darwin",
"There are some problems with PySpark setup on macOS")
def test_combine_accumulators_per_key(self):
data = self.sc.parallelize([(1, 2), (2, 1), (1, 4), (3, 8), (2, 3)])
rdd = self.backend.group_by_key(data)
Expand Down

0 comments on commit 72faa2c

Please sign in to comment.