Skip to content

Commit 0fa14db

Browse files
committed
fix
1 parent 2a74704 commit 0fa14db

File tree

3 files changed

+47
-55
lines changed

3 files changed

+47
-55
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff 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`
2123
2. 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]"`
2426
4. you have to run `pre-commit install` to have auto linting pre commit
2527
5. 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
3234
uv python pin 3.9.19
3335
uv venv env
3436
source env/bin/activate
35-
uv pip install --editable ".[dev,test]"
37+
uv sync --group dev --group test
3638
pre-commit install
3739
make test
3840
```

pyproject.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ dependencies = [
3535
Homepage = "https://github.com/posthog/posthog-python"
3636
Repository = "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"]
3941
dev = [
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]
7775
packages = [
7876
"posthog",

uv.lock

Lines changed: 37 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)