Skip to content

Rename PyPI package to privacyguard-platform and extract code_similarity optional extra (#123)#123

Closed
mgrange1998 wants to merge 1 commit into
facebookresearch:mainfrom
mgrange1998:export-D98758423
Closed

Rename PyPI package to privacyguard-platform and extract code_similarity optional extra (#123)#123
mgrange1998 wants to merge 1 commit into
facebookresearch:mainfrom
mgrange1998:export-D98758423

Conversation

@mgrange1998
Copy link
Copy Markdown
Contributor

@mgrange1998 mgrange1998 commented Mar 30, 2026

Summary:

Problem

The PyPI package name PrivacyGuard needs to be updated to privacyguard-platform. Additionally, the tree-sitter and codebleu dependencies require specialized import, so moving them as an optional dependency so "pip install PrivacyGuard" works out of the box

Changes

  • Renamed the PyPI package from PrivacyGuard to privacyguard-platform
  • Moved tree-sitter grammars, codebleu, and zss into a new code_similarity optional extra
  • Updated the unittest extra to include code_similarity
  • Added a CI step to verify the base install works without optional dependencies
  • Updated the CI install step to use .[code_similarity] instead of manually installing codebleu

Usage

  • pip install privacyguard-platform — base library without code similarity deps
  • pip install privacyguard-platform[code_similarity] — includes tree-sitter/codebleu/zss

Differential Revision: D98758423

@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Mar 30, 2026

@mgrange1998 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D98758423.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Mar 30, 2026
@meta-codesync meta-codesync Bot changed the title Rename PyPI package to privacyguard-platform and extract code_similarity optional extra Rename PyPI package to privacyguard-platform and extract code_similarity optional extra (#123) Mar 30, 2026
mgrange1998 added a commit to mgrange1998/PrivacyGuard-1 that referenced this pull request Mar 30, 2026
…ity optional extra (facebookresearch#123)

Summary:

## Problem
The PyPI package name `PrivacyGuard` needs to be updated to `privacyguard-platform`. Additionally, the tree-sitter and codebleu dependencies require specialized import, so moving them as an optional dependency so "pip install PrivacyGuard" works out of the box

## Changes
- Renamed the PyPI package from `PrivacyGuard` to `privacyguard-platform`
- Moved tree-sitter grammars, codebleu, and zss into a new `code_similarity` optional extra
- Updated the `unittest` extra to include `code_similarity`
- Added a CI step to verify the base install works without optional dependencies
- Updated the CI install step to use `.[code_similarity]` instead of manually installing codebleu

## Usage
- `pip install privacyguard-platform` — base library without code similarity deps
- `pip install privacyguard-platform[code_similarity]` — includes tree-sitter/codebleu/zss

Differential Revision: D98758423
mgrange1998 added a commit to mgrange1998/PrivacyGuard-1 that referenced this pull request Mar 30, 2026
…ity optional extra (facebookresearch#123)

Summary:

## Problem
The PyPI package name `PrivacyGuard` needs to be updated to `privacyguard-platform`. Additionally, the tree-sitter and codebleu dependencies require specialized import, so moving them as an optional dependency so "pip install PrivacyGuard" works out of the box

## Changes
- Renamed the PyPI package from `PrivacyGuard` to `privacyguard-platform`
- Moved tree-sitter grammars, codebleu, and zss into a new `code_similarity` optional extra
- Updated the `unittest` extra to include `code_similarity`
- Added a CI step to verify the base install works without optional dependencies
- Updated the CI install step to use `.[code_similarity]` instead of manually installing codebleu

## Usage
- `pip install privacyguard-platform` — base library without code similarity deps
- `pip install privacyguard-platform[code_similarity]` — includes tree-sitter/codebleu/zss

Differential Revision: D98758423
…ity optional extra (facebookresearch#123)

Summary:

## Problem
The PyPI package name `PrivacyGuard` needs to be updated to `privacyguard-platform`. Additionally, the tree-sitter and codebleu dependencies require specialized import, so moving them as an optional dependency so "pip install PrivacyGuard" works out of the box

## Changes
- Renamed the PyPI package from `PrivacyGuard` to `privacyguard-platform`
- Moved tree-sitter grammars, codebleu, and zss into a new `code_similarity` optional extra
- Updated the `unittest` extra to include `code_similarity`
- Added a CI step to verify the base install works without optional dependencies
- Updated the CI install step to use `.[code_similarity]` instead of manually installing codebleu

## Usage
- `pip install privacyguard-platform` — base library without code similarity deps
- `pip install privacyguard-platform[code_similarity]` — includes tree-sitter/codebleu/zss

Differential Revision: D98758423
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Mar 30, 2026

This pull request has been merged in 349c97c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. fb-exported Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant