Rename PyPI package to privacyguard-platform and extract code_similarity optional extra (#123)#123
Closed
mgrange1998 wants to merge 1 commit into
Closed
Conversation
|
@mgrange1998 has exported this pull request. If you are a Meta employee, you can view the originating Diff in 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
f99182c to
2038465
Compare
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
2038465 to
b724511
Compare
…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
b724511 to
05f927a
Compare
|
This pull request has been merged in 349c97c. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
Problem
The PyPI package name
PrivacyGuardneeds to be updated toprivacyguard-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 boxChanges
PrivacyGuardtoprivacyguard-platformcode_similarityoptional extraunittestextra to includecode_similarity.[code_similarity]instead of manually installing codebleuUsage
pip install privacyguard-platform— base library without code similarity depspip install privacyguard-platform[code_similarity]— includes tree-sitter/codebleu/zssDifferential Revision: D98758423