Skip to content

Commit 24d8980

Browse files
authored
chore: more fiddling to get release working (#251)
* chore: more fiddling to get release working * fix * fix
1 parent a2105f6 commit 24d8980

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
run: echo "REPO_VERSION=$(python3 posthog/version.py)" >> $GITHUB_ENV
3838

3939
- name: Prepare for building release
40-
run: uv sync --extra build
40+
run: uv sync --extra dev
4141

4242
- name: Push releases to PyPI
4343
run: uv run make release && uv run make release_analytics

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 4.4.1 - 2025-06-07
1+
## 4.4.1 and 4.4.2- 2025-06-07
22

33
- empty point release to fix the posthog_analytics release
44

Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,16 @@ release_analytics:
1616
rm -rf posthoganalytics
1717
mkdir posthoganalytics
1818
cp -r posthog/* posthoganalytics/
19-
find ./posthoganalytics -type f -not -path "*/__pycache__/*" -exec sed -i '' -e 's/from posthog /from posthoganalytics /g' {} \;
20-
find ./posthoganalytics -type f -not -path "*/__pycache__/*" -exec sed -i '' -e 's/from posthog\./from posthoganalytics\./g' {} \;
19+
find ./posthoganalytics -type f -name "*.py" -exec sed -i.bak -e 's/from posthog /from posthoganalytics /g' {} \;
20+
find ./posthoganalytics -type f -name "*.py" -exec sed -i.bak -e 's/from posthog\./from posthoganalytics\./g' {} \;
21+
find ./posthoganalytics -name "*.bak" -delete
2122
rm -rf posthog
2223
python setup_analytics.py sdist bdist_wheel
2324
twine upload dist/*
2425
mkdir posthog
25-
find ./posthoganalytics -type f -not -path "*/__pycache__/*" -exec sed -i '' -e 's/from posthoganalytics /from posthog /g' {} \;
26-
find ./posthoganalytics -type f -not -path "*/__pycache__/*" -exec sed -i '' -e 's/from posthoganalytics\./from posthog\./g' {} \;
26+
find ./posthoganalytics -type f -name "*.py" -exec sed -i.bak -e 's/from posthoganalytics /from posthog /g' {} \;
27+
find ./posthoganalytics -type f -name "*.py" -exec sed -i.bak -e 's/from posthoganalytics\./from posthog\./g' {} \;
28+
find ./posthoganalytics -name "*.bak" -delete
2729
cp -r posthoganalytics/* posthog/
2830
rm -rf posthoganalytics
2931
rm -f pyproject.toml

posthog/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = "4.4.1"
1+
VERSION = "4.4.2"
22

33
if __name__ == "__main__":
44
print(VERSION, end="") # noqa: T201

pyproject.toml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ dev = [
5151
"pre-commit",
5252
"pydantic",
5353
"ruff",
54+
"setuptools",
55+
"packaging",
56+
"wheel",
57+
"twine",
5458
"tomli",
5559
"tomli_w",
5660
]
@@ -72,12 +76,6 @@ test = [
7276
"pydantic",
7377
"parameterized>=0.8.1",
7478
]
75-
build = [
76-
"setuptools",
77-
"packaging",
78-
"wheel",
79-
"twine",
80-
]
8179

8280
[tool.setuptools]
8381
packages = [

0 commit comments

Comments
 (0)