Skip to content

Commit 9123b11

Browse files
committed
fix: distro requirement for analytics package
1 parent 28a7d35 commit 9123b11

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 3.19.2 – 2025-03-11
2+
3+
1. Fix install requirements for analytics package
14

25
## 3.19.1 – 2025-03-11
36

@@ -34,7 +37,7 @@
3437

3538
## 3.14.2 - 2025-02-19
3639

37-
1. Evaluate feature flag payloads with case sensitivity correctly. Fixes <https://github.com/PostHog/posthog-python/issues/178>
40+
1. Evaluate feature flag payloads with case sensitivity correctly. Fixes <https://github.com/PostHog/posthog-python/issues/178>
3841

3942
## 3.14.1 - 2025-02-18
4043

setup_analytics.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,19 @@
88

99
# Don't import module here, since deps may not be installed
1010
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "posthoganalytics"))
11-
from version import VERSION
1211

1312
long_description = """
1413
PostHog is developer-friendly, self-hosted product analytics. posthog-python is the python package.
1514
"""
1615

17-
install_requires = ["requests>=2.7,<3.0", "six>=1.5", "monotonic>=1.5", "backoff>=1.10.0", "python-dateutil>2.1"]
16+
install_requires = [
17+
"requests>=2.7,<3.0",
18+
"six>=1.5",
19+
"monotonic>=1.5",
20+
"backoff>=1.10.0",
21+
"python-dateutil>2.1",
22+
"distro>=1.5.0", # Required for Linux OS detection in Python 3.9+
23+
]
1824

1925
tests_require = ["mock>=2.0.0"]
2026

0 commit comments

Comments
 (0)