Skip to content

Commit

Permalink
chore(deps): ensure all sentry sources locally
Browse files Browse the repository at this point in the history
  • Loading branch information
nejch committed Sep 12, 2024
1 parent 61aab99 commit d2e5b01
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 23 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.8.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.8.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
17 changes: 1 addition & 16 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ flake8 = "^3.8.4"
[tool.poetry.group.test.dependencies]
codecov = "^2.1.12"
pytest = "^7.1.3"
sentry = {git = "https://github.com/getsentry/sentry.git", rev = "24.8.0"}
fixtures = "^4.1.0"

[tool.isort]
Expand All @@ -39,6 +38,9 @@ profile = "black"
[tool.poetry.plugins."sentry.apps"]
"oidc" = "oidc.apps.Config"

[tool.pytest.ini_options]
testpaths = ["tests"]

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

0 comments on commit d2e5b01

Please sign in to comment.