Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/reusable_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,15 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install PrivacyGuard library
- name: Verify base install (no optional dependencies)
run: |
printf 'tree-sitter==0.20.4\nsetuptools<75\n' > /tmp/build-constraints.txt
UV_BUILD_CONSTRAINT=/tmp/build-constraints.txt uv pip install codebleu==0.6.0
uv pip install -e .
UV_BUILD_CONSTRAINT=/tmp/build-constraints.txt uv pip install -e .
python -c "import privacy_guard; print('Base install OK')"

- name: Install PrivacyGuard library with code_similarity
run: |
UV_BUILD_CONSTRAINT=/tmp/build-constraints.txt uv pip install -e ".[code_similarity]"

- name: Tests and coverage
run: |
Expand Down
12 changes: 7 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ requires = ["setuptools>=34.4", "wheel", "setuptools_scm"]
build-backend = "setuptools.build_meta"

[project]
name = "PrivacyGuard"
name = "privacyguard-platform"
description = "PrivacyGuard platform for Privacy Attacks and Analysis. Perform privacy analyses of ML models using Inference Attacks and Extraction Attacks."
authors = [{name = "Meta Platforms, Inc."}]
license = "Apache-2.0"
license-files = ["LICENSE"]
license = {text = "Apache-2.0"}
readme = "README.md"
requires-python = ">=3.10"
keywords = ["PrivacyGuard", "Privacy", "Privacy Attack", "Privacy Analysis", "privacy_guard"]
Expand Down Expand Up @@ -41,6 +40,10 @@ dependencies = [
'later',
'torchvision',
'matplotlib',
]

[project.optional-dependencies]
code_similarity = [
'tree-sitter==0.20.4',
'tree-sitter-python<=0.23.2',
'tree-sitter-c',
Expand All @@ -56,7 +59,6 @@ dependencies = [
'zss',
]

[project.optional-dependencies]
dev = [
"beautifulsoup4",
"Jinja2",
Expand All @@ -76,7 +78,7 @@ unittest_minimal = [
]

unittest = [
"privacy-guard[dev,notebook,unittest_minimal]",
"privacyguard-platform[dev,notebook,unittest_minimal,code_similarity]",
]

tutorial = [
Expand Down
Loading