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

feat(direnv): experimental SENTRY_PYTHON3 #19926

Conversation

@EvanPurkhiser
Copy link
Member

@EvanPurkhiser EvanPurkhiser commented Jul 16, 2020

direnv now supports a python3 environment by setting the SENTRY_PYTHON3 flag.

This uses the .venv3 directory for the virtual env. This makes the assumption that we'll have our tooling support both .venv and .venv3.

If we don't want to do this, I can definitely have it do some fancy symlink things. But I suspect symlinks are going to cause us more trouble than we might expect.

@EvanPurkhiser EvanPurkhiser requested review from getsentry/owners-python-build as code owners Jul 16, 2020
@EvanPurkhiser EvanPurkhiser requested review from joshuarli and wedamija Jul 16, 2020
setup.py Outdated Show resolved Hide resolved
@EvanPurkhiser EvanPurkhiser force-pushed the evanpurkhiser/featdirenv-support-python3-using-sentrypython3 branch from 100b922 to 6043097 Jul 16, 2020
.envrc Outdated Show resolved Hide resolved
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools>=40.2.0", "wheel"]
requires = ["setuptools>=40.2.0,<46.0.0", "wheel"]

This comment has been minimized.

This comment has been minimized.

@joshuarli

joshuarli Jul 16, 2020
Member

Or rather, what's using this? pypa/setuptools#2017 (comment)

This comment has been minimized.

@EvanPurkhiser

EvanPurkhiser Jul 16, 2020
Author Member

Maxmindb

This comment has been minimized.

@joshuarli

joshuarli Jul 16, 2020
Member

Could you provide more detail? And preferably in comment form.

This comment has been minimized.

@EvanPurkhiser

EvanPurkhiser Jul 16, 2020
Author Member

Yeah I can

This comment has been minimized.

@EvanPurkhiser

EvanPurkhiser Jul 21, 2020
Author Member

Ok, I can't seem to reproduce this now, so just going to remove the constraint and see if it flares up later.

src/sentry/lint/engine.py Show resolved Hide resolved
scripts/ensure-venv.sh Show resolved Hide resolved
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools>=40.2.0", "wheel"]
requires = ["setuptools>=40.2.0,<46.0.0", "wheel"]

This comment has been minimized.

@EvanPurkhiser

EvanPurkhiser Jul 16, 2020
Author Member

Maxmindb

@joshuarli joshuarli changed the title feat(direnv): Support python3 using SENTRY_PYTHON3 feat(direnv): experimental SENTRY_PYTHON3 Jul 16, 2020
@EvanPurkhiser EvanPurkhiser force-pushed the evanpurkhiser/featdirenv-support-python3-using-sentrypython3 branch from 6043097 to 4716126 Jul 21, 2020
@EvanPurkhiser EvanPurkhiser force-pushed the evanpurkhiser/featdirenv-support-python3-using-sentrypython3 branch from 4716126 to 45e5dda Jul 21, 2020
@EvanPurkhiser EvanPurkhiser requested a review from joshuarli Jul 21, 2020
venv_name=".venv"
python_version="python2.7"

if [ "$SENTRY_PYTHON3" = "1" ]; then

This comment has been minimized.

@joshuarli

joshuarli Jul 21, 2020
Member

I'd just test that this env var is set to something. = 1 is unnecessarily strict. You missed changing the other places from x1, so might as well just hit 2 birds with 1 stone there.

This comment has been minimized.

@EvanPurkhiser

EvanPurkhiser Jul 21, 2020
Author Member

hmm, I would prefer some kind of truthy check, otherwise if you set it to 0 it will still work.

Copy link
Member

@joshuarli joshuarli left a comment

@EvanPurkhiser EvanPurkhiser force-pushed the evanpurkhiser/featdirenv-support-python3-using-sentrypython3 branch from 45e5dda to 1748ea8 Jul 21, 2020
@EvanPurkhiser EvanPurkhiser merged commit 27a27bf into master Jul 22, 2020
11 of 12 checks passed
11 of 12 checks passed
acceptance (0)
Details
Check Migration Required
Details
acceptance (1)
Details
acceptance (2)
Details
visual-diff visual-diff
Details
codecov/patch/python 0.00% of diff hit (target 90.00%)
Details
Trigger: 2a12826a-6d82-4b89-85a1-1ca96f89c954 Summary
Details
Vercel Deployment has completed
Details
codecov/patch/javascript Coverage not affected when comparing 21ce025...1748ea8
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
percy/sentry Visual review automatically approved, no visual changes found.
Details
Visual Snapshot No snapshot changes detected
Details
@EvanPurkhiser EvanPurkhiser deleted the evanpurkhiser/featdirenv-support-python3-using-sentrypython3 branch Jul 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.