Skip to content

Commit

Permalink
refactor: adapt tests to 24.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dlouzan authored and nejch committed Sep 12, 2024
1 parent df07034 commit db427cb
Show file tree
Hide file tree
Showing 6 changed files with 117 additions and 108 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ venv
.coverage
.vscode/
# Fetched from upstream
requirements-sentry.txt
tests/conftest.py
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "deps/sentry"]
path = deps/sentry
url = https://github.com/getsentry/sentry.git # 24.8.0
8 changes: 3 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
SENTRY_VERSION := 24.2.0

.PHONY: clean deps

# Upstream no longer tracks its own dependencies in the package as dev extras,
Expand All @@ -9,9 +7,9 @@ SENTRY_VERSION := 24.2.0
# use outside their own tests, but we need their fixtures. We fetch them into
# our own namespace here.
deps:
curl -L -o requirements-sentry.txt https://github.com/getsentry/sentry/raw/$(SENTRY_VERSION)/requirements-dev-frozen.txt
curl -L -o tests/conftest.py https://github.com/getsentry/sentry/raw/$(SENTRY_VERSION)/tests/conftest.py
poetry run pip install -r requirements-sentry.txt
git submodule update --init
poetry run pip install -r deps/sentry/requirements-dev-frozen.txt -e deps/sentry
cp -f deps/sentry/tests/conftest.py tests/conftest.py

clean:
rm -rf *.egg-info src/*.egg-info
Expand Down
1 change: 1 addition & 0 deletions deps/sentry
Submodule sentry added at 1d52e8
Loading

0 comments on commit db427cb

Please sign in to comment.