Skip to content

Commit 11e28de

Browse files
aschleanclaude
andcommitted
fix[build]: skip environment variable requirement in CI environments
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 596acb1 commit 11e28de

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,10 @@ def run(self):
5252
# First run the normal build
5353
super().run()
5454

55-
# Then render endpoints into the build_lib (require env vars for production builds)
56-
rendered = render_endpoints(require_env_vars=True)
55+
# Then render endpoints into the build_lib
56+
# Skip env var requirement if in CI environment or if this looks like a test install
57+
is_ci = os.environ.get("CI") or os.environ.get("GITHUB_ACTIONS")
58+
rendered = render_endpoints(require_env_vars=not is_ci)
5759
out_file = pathlib.Path(self.build_lib) / PACKAGE_OUT_REL
5860
out_file.parent.mkdir(parents=True, exist_ok=True)
5961
out_file.write_text(rendered, encoding="utf-8")

0 commit comments

Comments
 (0)