-
Notifications
You must be signed in to change notification settings - Fork 52
fix: distro requirement for analytics package #204
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
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.
PR Summary
This PR fixes installation requirements for the posthoganalytics package by adding the 'distro' package dependency for Linux OS detection in Python 3.9+.
- Added
distro>=1.5.0toinstall_requiresin/setup_analytics.pyfor Linux OS detection - Potential bug:
VERSIONis used insetup_analytics.pybut its import was removed - Documented fix in
/CHANGELOG.mdunder version 3.19.2
2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile
| "monotonic>=1.5", | ||
| "backoff>=1.10.0", | ||
| "python-dateutil>2.1", | ||
| "distro>=1.5.0", # Required for Linux OS detection in Python 3.9+ |
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.
what's the difference between where I added it and this file 🙈
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.
(so i know for 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.
We publish the posthog package as posthoganalytics so that it doesn't clash with the module name in our main Django backend. Most customers will use posthog which is where you changed it, we use posthoganalytics which this setup file relates to
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.
thank you, obvious once explained :)
@pauldambra I think you forgot to add
distrofor the analytics package