Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make PostHog compatibile with Python 3.9 #1987

Merged
merged 6 commits into from
Oct 26, 2020
Merged

Make PostHog compatibile with Python 3.9 #1987

merged 6 commits into from
Oct 26, 2020

Conversation

Twixes
Copy link
Collaborator

@Twixes Twixes commented Oct 22, 2020

Changes

Python 3.9.0 has been released and all of PostHog seems to be compatible with it – except for Pandas 1.0.3, which had installation issues on the updated CPython. This fixes that by updating Pandas to 1.1.3.

@Twixes Twixes mentioned this pull request Oct 22, 2020
@timgl timgl had a problem deploying to posthog-py-3-9-compatbi-wtqkso October 22, 2020 13:40 Failure
@Twixes Twixes temporarily deployed to posthog-py-3-9-compatbi-wtqkso October 22, 2020 13:44 Inactive
@@ -318,7 +318,7 @@ def test_breakdown_filtering(self):

self.assertEqual(sum(response[0]["data"]), 2)
self.assertEqual(response[0]["data"][4 + 7], 2)
self.assertEqual(response[0]["breakdown_value"], "None")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will possibly mess stuff up in the frontend?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't found any comparison to 'None' in the frontend code base, so think this shouldn't affect it (unless I'm missing some value handling somewhere).

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

appUrlsLogic.js:45 relies on it being true/false (rather than 'nan'), same for trendsLogic.js:100.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like it was a truthy string anyway though, as in "None", not None.

@timgl timgl temporarily deployed to posthog-py-3-9-compatbi-500slf October 22, 2020 14:04 Inactive
@timgl timgl temporarily deployed to posthog-py-3-9-compatbi-txfebc October 22, 2020 14:17 Inactive
@timgl timgl temporarily deployed to posthog-py-3-9-compatbi-p3c4b0 October 22, 2020 16:18 Inactive
@Twixes Twixes temporarily deployed to posthog-py-3-9-compatbi-p3c4b0 October 23, 2020 11:16 Inactive
@Twixes
Copy link
Collaborator Author

Twixes commented Oct 23, 2020

@timgl If we want to test multiple Python versions, could you un-require "Django tests" (without " – Py ...") so that this is mergeable? Unless we don't want that.

@timgl timgl merged commit 51c3292 into master Oct 26, 2020
@timgl timgl deleted the py-3.9-compatbility branch October 26, 2020 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants