Skip to content

Conversation

@daibhin
Copy link
Contributor

@daibhin daibhin commented Mar 11, 2025

@pauldambra I think you forgot to add distro for the analytics package

Copy link
Contributor

@greptile-apps greptile-apps bot left a 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.0 to install_requires in /setup_analytics.py for Linux OS detection
  • Potential bug: VERSION is used in setup_analytics.py but its import was removed
  • Documented fix in /CHANGELOG.md under version 3.19.2

2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

@daibhin daibhin requested a review from pauldambra March 11, 2025 17:50
"monotonic>=1.5",
"backoff>=1.10.0",
"python-dateutil>2.1",
"distro>=1.5.0", # Required for Linux OS detection in Python 3.9+
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

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)

Copy link
Contributor Author

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

Copy link
Member

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 :)

@daibhin daibhin requested review from a team, hpouillot and oliverb123 March 12, 2025 11:25
@daibhin daibhin merged commit 332a6ff into master Mar 12, 2025
6 checks passed
@daibhin daibhin deleted the dn-fix/distro-analytics-requirement branch March 12, 2025 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants