Skip to content

Commit 87302ec

Browse files
authored
Merge branch 'master' into err/scopes-and-tags
2 parents aeb9ccd + 7ab2080 commit 87302ec

File tree

6 files changed

+29
-12
lines changed

6 files changed

+29
-12
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
3737
- name: Lint with flake8
3838
run: |
39-
flake8 posthog --ignore E501,W503
39+
flake8 posthog
4040
4141
- name: Check import order with isort
4242
run: |

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Add exception context management:
1212
1. fix: feature flag request use geoip_disable (#235)
1313
2. chore: pin actions versions (#210)
1414
3. fix: opinionated setup and clean fn fix (#240)
15+
4. fix: release action failed (#241)
1516

1617
## 4.2.0 - 2025-05-22
1718

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
# PostHog Python
22

3-
[![PyPI](https://img.shields.io/pypi/v/posthog)](https://pypi.org/project/posthog/)
4-
3+
<p align="center">
4+
<img alt="posthoglogo" src="https://user-images.githubusercontent.com/65415371/205059737-c8a4f836-4889-4654-902e-f302b187b6a0.png">
5+
</p>
6+
<p align="center">
7+
<a href="https://pypi.org/project/posthog/"><img alt="pypi installs" src="https://img.shields.io/pypi/v/posthog"/></a>
8+
<img alt="GitHub contributors" src="https://img.shields.io/github/contributors/posthog/posthog-python">
9+
<img alt="GitHub commit activity" src="https://img.shields.io/github/commit-activity/m/posthog/posthog-python"/>
10+
<img alt="GitHub closed issues" src="https://img.shields.io/github/issues-closed/posthog/posthog-python"/>
11+
</p>
512

613
Please see the [Python integration docs](https://posthog.com/docs/integrations/python-integration) for details.
714

@@ -54,8 +61,4 @@ Then navigate to `http://127.0.0.1:8080/sentry-debug/` and you should get an eve
5461

5562
### Releasing Versions
5663

57-
Updated are released using GitHub Actions: after bumping `version.py` in `master` and adding to `CHANGELOG.md`, go to [our release workflow's page](https://github.com/PostHog/posthog-python/actions/workflows/release.yaml) and dispatch it manually, using workflow from `master`.
58-
59-
## Questions?
60-
61-
### [Join our Slack community.](https://join.slack.com/t/posthogusers/shared_invite/enQtOTY0MzU5NjAwMDY3LTc2MWQ0OTZlNjhkODk3ZDI3NDVjMDE1YjgxY2I4ZjI4MzJhZmVmNjJkN2NmMGJmMzc2N2U3Yjc3ZjI5NGFlZDQ)
64+
Updated are released using GitHub Actions: after bumping `version.py` in `master` and adding to `CHANGELOG.md`, go to [our release workflow's page](https://github.com/PostHog/posthog-python/actions/workflows/release.yaml) and dispatch it manually, using workflow from `master`.

setup.cfg

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,10 @@ universal = 1
33

44
[tool:pytest]
55
asyncio_mode = auto
6+
asyncio_default_fixture_loop_scope = function
7+
8+
[flake8]
9+
# ignore E501 for line length
10+
# ignore W503 for line break before binary operator
11+
ignore = E501,W503
12+
max-line-length = 120

setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88

99
# Don't import analytics-python module here, since deps may not be installed
1010
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "posthog"))
11-
from version import VERSION
11+
from version import VERSION # noqa: E402
1212

1313
long_description = """
14-
PostHog is developer-friendly, self-hosted product analytics. posthog-python is the python package.
14+
PostHog is developer-friendly, self-hosted product analytics.
15+
posthog-python is the python package.
1516
1617
This package requires Python 3.9 or higher.
1718
"""
@@ -87,6 +88,8 @@
8788
"posthog.exception_integrations",
8889
],
8990
license="MIT License",
91+
license_files=["LICENSE"],
92+
python_requires=">=3.9",
9093
install_requires=install_requires,
9194
extras_require=extras_require,
9295
description="Integrate PostHog into any python application.",

setup_analytics.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
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
11+
from version import VERSION # noqa: E402
1212

1313
long_description = """
14-
PostHog is developer-friendly, self-hosted product analytics. posthog-python is the python package.
14+
PostHog is developer-friendly, self-hosted product analytics.
15+
posthog-python is the python package.
1516
1617
This package requires Python 3.9 or higher.
1718
"""
@@ -47,6 +48,8 @@
4748
"posthoganalytics.exception_integrations",
4849
],
4950
license="MIT License",
51+
license_files=["LICENSE"],
52+
python_requires=">=3.9",
5053
install_requires=install_requires,
5154
tests_require=tests_require,
5255
extras_require={

0 commit comments

Comments
 (0)