Skip to content

Commit 97847f9

Browse files
committed
chore: more fiddling to get release working
1 parent a2105f6 commit 97847f9

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

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

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ build = [
7777
"packaging",
7878
"wheel",
7979
"twine",
80+
"tomli",
81+
"tomli_w",
8082
]
8183

8284
[tool.setuptools]

0 commit comments

Comments
 (0)