-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
ref: rework build to be reusable outside of setup.py #71098
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #71098 +/- ##
=======================================
Coverage 77.89% 77.90%
=======================================
Files 6522 6522
Lines 290576 290539 -37
Branches 50275 50265 -10
=======================================
- Hits 226339 226338 -1
+ Misses 57996 57956 -40
- Partials 6241 6245 +4 |
| // this is the path to the django "sentry" app, we output the webpack build here to `dist` | ||
| // so that `django collectstatic` and so that we can serve the post-webpack bundles | ||
| const sentryDjangoAppPath = path.join(__dirname, 'src/sentry/static/sentry'); | ||
| const distPath = env.SENTRY_STATIC_DIST_PATH || path.join(sentryDjangoAppPath, 'dist'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this environment variable never used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was only ever set to exactly the same value as this
| parser = argparse.ArgumentParser() | ||
| parser.parse_args() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we planning to make use of this in the future?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's mostly so thing --help doesn't make it just do it -- even though there's no options
need to get off setuptools so we can get to python 3.12 -- and so we can conditionally do the js build only for self-hosted (since we do it twice for getsentry for no reason!) <!-- Describe your PR here. -->
need to get off setuptools so we can get to python 3.12 -- and so we can conditionally do the js build only for self-hosted (since we do it twice for getsentry for no reason!)