File tree Expand file tree Collapse file tree 3 files changed +47
-55
lines changed
Expand file tree Collapse file tree 3 files changed +47
-55
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,13 @@ Please see the [Python integration docs](https://posthog.com/docs/integrations/p
1616
1717### Testing Locally
1818
19- 1 . Run ` python3 -m venv env ` (creates virtual environment called "env")
20- * or ` uv venv env `
19+ We recommend using [ uv] ( https://docs.astral.sh/uv/ ) . It's super fast.
20+
21+ 1 . Run ` uv venv env ` (creates virtual environment called "env")
22+ * or ` python3 -m venv env `
21232 . Run ` source env/bin/activate ` (activates the virtual environment)
22- 3 . Run ` python3 -m pip install -e ".[ test]" ` (installs the package in develop mode, along with test dependencies)
23- * or ` uv pip install -e ".[test]"`
24+ 3 . Run ` uv sync --group dev --group test` (installs the package in develop mode, along with test dependencies)
25+ * or ` pip install -e ".[dev, test]" `
24264 . you have to run ` pre-commit install ` to have auto linting pre commit
25275 . Run ` make test `
2628 1 . To run a specific test do ` pytest -k test_no_api_key `
@@ -32,7 +34,7 @@ uv python install 3.9.19
3234uv python pin 3.9.19
3335uv venv env
3436source env/bin/activate
35- uv pip install --editable " .[ dev, test] "
37+ uv sync --group dev --group test
3638pre-commit install
3739make test
3840```
Original file line number Diff line number Diff line change @@ -35,7 +35,9 @@ dependencies = [
3535Homepage = " https://github.com/posthog/posthog-python"
3636Repository = " https://github.com/posthog/posthog-python"
3737
38- [dependency-groups ]
38+ [project .optional-dependencies ]
39+ sentry = [" sentry-sdk" , " django" ]
40+ langchain = [" langchain>=0.2.0" ]
3941dev = [
4042 " django-stubs" ,
4143 " lxml" ,
@@ -69,10 +71,6 @@ test = [
6971 " parameterized>=0.8.1" ,
7072]
7173
72- [project .optional-dependencies ]
73- sentry = [" sentry-sdk" , " django" ]
74- langchain = [" langchain>=0.2.0" ]
75-
7674[tool .setuptools ]
7775packages = [
7876 " posthog" ,
You can’t perform that action at this time.
0 commit comments