We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 596acb1 commit 11e28deCopy full SHA for 11e28de
setup.py
@@ -52,8 +52,10 @@ def run(self):
52
# First run the normal build
53
super().run()
54
55
- # Then render endpoints into the build_lib (require env vars for production builds)
56
- rendered = render_endpoints(require_env_vars=True)
+ # Then render endpoints into the build_lib
+ # 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)
59
out_file = pathlib.Path(self.build_lib) / PACKAGE_OUT_REL
60
out_file.parent.mkdir(parents=True, exist_ok=True)
61
out_file.write_text(rendered, encoding="utf-8")
0 commit comments