Skip to content

Commit 859f94e

Browse files
committed
Do not check venv
1 parent cf06765 commit 859f94e

14 files changed

+20
-20
lines changed

.envrc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,12 @@ make setup-git-config
170170
export PYENV_VERSION=$(query-pyenv-version)
171171
make setup-pyenv
172172

173-
venv_name="${SENTRY_TOPLEVEL}/.venv"
173+
venv_name=".venv"
174174

175175
if [ ! -f "${venv_name}/bin/activate" ]; then
176176
prompt_python_venv_creation
177177
# This is time consuming but it has to be done
178-
source "${SENTRY_TOPLEVEL}/scripts/bootstrap-py3-venv"
178+
source "./scripts/bootstrap-py3-venv"
179179
fi
180180

181181
# The user might be cd'ing into sentry with another non-direnv managed
@@ -189,12 +189,12 @@ source "${venv_name}/bin/activate"
189189
# but we'd have to patch direnv, and ".venv" isn't descriptive anyways
190190
unset PS1
191191

192+
debug "Ensuring proper virtualenv..."
193+
"${SENTRY_TOPLEVEL}/scripts/ensure-venv.sh"
194+
192195
if ! require sentry; then
193196
warn "Your virtualenv is activated, but sentry doesn't seem to be installed."
194197
commands_to_run+=("make install-py-dev")
195-
else
196-
debug "Ensuring proper virtualenv..."
197-
"${SENTRY_TOPLEVEL}/scripts/ensure-venv.sh"
198198
fi
199199

200200
### pre-commit ###

.github/workflows/acceptance.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ jobs:
154154
- name: Set python version output
155155
id: python-version
156156
run: |
157-
echo "::set-output name=python-version::$(./scripts/do.sh query-pyenv-version)"
157+
echo "::set-output name=python-version::$(SENTRY_NO_VENV_CHECK=1 ./scripts/do.sh query-pyenv-version)"
158158
159159
# Until GH composite actions can use `uses`, we need to setup python here
160160
- uses: actions/setup-python@v2
@@ -236,7 +236,7 @@ jobs:
236236
- name: Set python version output
237237
id: python-version
238238
run: |
239-
echo "::set-output name=python-version::$(./scripts/do.sh query-pyenv-version)"
239+
echo "::set-output name=python-version::$(SENTRY_NO_VENV_CHECK=1 ./scripts/do.sh query-pyenv-version)"
240240
241241
# Until GH composite actions can use `uses`, we need to setup python here
242242
- uses: actions/setup-python@v2

.github/workflows/api-docs-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ jobs:
3131
if: steps.changes.outputs.api_docs == 'true'
3232
run: |
3333
env | sort
34-
./scripts/do.sh query-pyenv-version
35-
echo "::set-output name=python-version::$(./scripts/do.sh query-pyenv-version)"
34+
SENTRY_NO_VENV_CHECK=1 ./scripts/do.sh query-pyenv-version
35+
echo "::set-output name=python-version::$(SENTRY_NO_VENV_CHECK=1 ./scripts/do.sh query-pyenv-version)"
3636
3737
# Until GH composite actions can use `uses`, we need to setup python here
3838
- uses: actions/setup-python@v2

.github/workflows/backend-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
id: python-version
4242
if: steps.changes.outputs.backend == 'true'
4343
run: |
44-
echo "::set-output name=python-version::$(./scripts/do.sh query-pyenv-version)"
44+
echo "::set-output name=python-version::$(SENTRY_NO_VENV_CHECK=1 ./scripts/do.sh query-pyenv-version)"
4545
4646
# Until GH composite actions can use `uses`, we need to setup python here
4747
- uses: actions/setup-python@v2

.github/workflows/backend-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
id: python-version
4646
if: steps.changes.outputs.backend == 'true'
4747
run: |
48-
echo "::set-output name=python-version::$(./scripts/do.sh query-pyenv-version)"
48+
echo "::set-output name=python-version::$(SENTRY_NO_VENV_CHECK=1 ./scripts/do.sh query-pyenv-version)"
4949
5050
# Until GH composite actions can use `uses`, we need to setup python here
5151
- uses: actions/setup-python@v2

.github/workflows/backend-typing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
id: python-version
3434
if: steps.changes.outputs.backend == 'true'
3535
run: |
36-
echo "::set-output name=python-version::$(./scripts/do.sh query-pyenv-version)"
36+
echo "::set-output name=python-version::$(SENTRY_NO_VENV_CHECK=1 ./scripts/do.sh query-pyenv-version)"
3737
3838
# Until GH composite actions can use `uses`, we need to setup python here
3939
- uses: actions/setup-python@v2

.github/workflows/check-if-migration-is-required.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Set python version output
3434
id: python-version
3535
run: |
36-
echo "::set-output name=python-version::$(./scripts/do.sh query-pyenv-version)"
36+
echo "::set-output name=python-version::$(SENTRY_NO_VENV_CHECK=1 ./scripts/do.sh query-pyenv-version)"
3737
3838
# Until GH composite actions can use `uses`, we need to setup python here
3939
- uses: actions/setup-python@v2

.github/workflows/command-line-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Set python version output
2424
id: python-version
2525
run: |
26-
echo "::set-output name=python-version::$(./scripts/do.sh query-pyenv-version)"
26+
echo "::set-output name=python-version::$(SENTRY_NO_VENV_CHECK=1 ./scripts/do.sh query-pyenv-version)"
2727
2828
# Until GH composite actions can use `uses`, we need to setup python here
2929
- uses: actions/setup-python@v2

.github/workflows/development-environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Set environment variables & others
4545
id: info
4646
run: |
47-
echo "::set-output name=python-version::$(./scripts/do.sh query-pyenv-version)"
47+
echo "::set-output name=python-version::$(SENTRY_NO_VENV_CHECK=1 ./scripts/do.sh query-pyenv-version)"
4848
echo "::set-output name=pip-cache-dir::$(pip3 cache dir)"
4949
echo "::set-output name=pip-version::$(pip -V | awk -F ' ' '{print $2}')"
5050
echo "::set-output name=yarn-cache-dir::$(yarn cache dir)"

.github/workflows/migrations.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
- name: Set python version output
5252
id: python-version
5353
run: |
54-
echo "::set-output name=python-version::$(./scripts/do.sh query-pyenv-version)"
54+
echo "::set-output name=python-version::$(SENTRY_NO_VENV_CHECK=1 ./scripts/do.sh query-pyenv-version)"
5555
5656
# Until GH composite actions can use `uses`, we need to setup python here
5757
- uses: actions/setup-python@v2

0 commit comments

Comments
 (0)