Skip to content

Commit cfa587e

Browse files
authored
fix!: Make pink an optional dependency (#1051)
# Motivation <!-- Why is this change necessary? --> # Content <!-- Please include a summary of the change --> # Testing <!-- How was the change tested? --> # Please check the following before marking your PR as ready for review - [ ] I have added tests for my changes - [ ] I have updated the documentation or added new documentation as needed
1 parent 65baec9 commit cfa587e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ dependencies = [
7171
"urllib3>=2.0.0",
7272
"datasets",
7373
"colorlog>=6.9.0",
74-
"codegen-sdk-pink>=0.1.0",
7574
"codegen-api-client",
7675
]
7776

@@ -115,6 +114,7 @@ keywords = [
115114
codegen = "codegen.cli.cli:main"
116115

117116
[project.optional-dependencies]
117+
pink = ["codegen-sdk-pink>=0.1.0"]
118118
types = [
119119
"types-networkx>=3.2.1.20240918",
120120
"types-tabulate>=0.9.0.20240106",

src/codegen/configs/models/codebase.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
class PinkMode(IntEnum):
99
# Use the python SDK for all files
1010
OFF = auto()
11-
# Use the Rust SDK for all files
11+
# Use the Rust SDK for all files. Make sure to install the pink extra
1212
ALL_FILES = auto()
13-
# Use the Rust SDK for files the python SDK can't parse (non-source files)
13+
# Use the Rust SDK for files the python SDK can't parse (non-source files). Make sure to install the pink extra
1414
NON_SOURCE_FILES = auto()
1515

1616

0 commit comments

Comments
 (0)