File tree Expand file tree Collapse file tree 11 files changed +291
-268
lines changed Expand file tree Collapse file tree 11 files changed +291
-268
lines changed Original file line number Diff line number Diff line change 15
15
- uses : actions/checkout@v4
16
16
- uses : actions/setup-python@v4
17
17
with :
18
- python-version : " 3.8 "
18
+ python-version : " 3.11 "
19
19
- uses : abatilo/actions-poetry@v2
20
20
- name : Publish package
21
21
run : |
Original file line number Diff line number Diff line change 18
18
- uses : actions/checkout@v4
19
19
- uses : actions/setup-python@v4
20
20
with :
21
- python-version : " 3.8 "
21
+ python-version : " 3.11 "
22
22
- uses : psf/black@stable
23
23
with :
24
24
options : " --check ."
33
33
runs-on : ubuntu-latest
34
34
services :
35
35
postgres :
36
- image : postgres:14.5
36
+ image : postgres:14.11
37
37
env :
38
38
POSTGRES_HOST_AUTH_METHOD : trust
39
39
# Set health checks to wait until postgres has started
@@ -45,28 +45,26 @@ jobs:
45
45
ports :
46
46
- 5432:5432
47
47
memcached :
48
- image : memcached:1.6.21 -alpine
48
+ image : memcached:1.6.23 -alpine
49
49
ports :
50
50
- 11211:11211
51
51
redis :
52
- image : redis:6.2.12 -alpine
52
+ image : redis:6.2.14 -alpine
53
53
ports :
54
54
- 6379:6379
55
55
steps :
56
56
- uses : actions/checkout@v4
57
57
- uses : actions/setup-python@v4
58
58
with :
59
- python-version : " 3.8 "
59
+ python-version : " 3.11 "
60
60
- uses : abatilo/actions-poetry@v2
61
61
- uses : actions/setup-node@v3
62
62
with :
63
- node-version : ' 16 '
63
+ node-version : ' 18 '
64
64
- name : Setup required upstream yarn version
65
- run : yarn set version 1.22.5
65
+ run : yarn set version 1.22.21
66
66
- run : |
67
67
sudo apt-get update && sudo apt-get install -y libxmlsec1-dev libmaxminddb-dev
68
- python3 -m venv venv
69
- . venv/bin/activate
70
- venv/bin/pip3 install -U wheel
71
- make develop
72
- make test
68
+ poetry install --with test
69
+ make deps
70
+ poetry run pytest
Original file line number Diff line number Diff line change 7
7
.venv
8
8
.coverage
9
9
.vscode /
10
+ # Fetched from upstream
11
+ requirements-sentry.txt
12
+ tests /conftest.py
Original file line number Diff line number Diff line change 1
- 3.8.13
1
+ 3.11.8
Original file line number Diff line number Diff line change 1
- SENTRY_VERSION := 22.8 .0
1
+ SENTRY_VERSION := 24.2 .0
2
2
3
- .PHONY : clean develop test
3
+ .PHONY : clean deps
4
4
5
- develop :
6
- pip3 install -e git+https://github.com/getsentry/sentry.git@ $( SENTRY_VERSION ) # egg=sentry[dev]
7
- poetry install -n --no-dev
8
- poetry build && pip3 install -U dist/ * .whl
9
- pip3 install -U codecov pytest freezegun fixtures
10
-
11
- test :
12
- @echo " --> Running Python tests "
13
- python -m pytest tests || exit 1
14
- @echo " "
5
+ # Upstream no longer tracks its own dependencies in the package as dev extras,
6
+ # so we cannot resolve them here as transitive dependencies. Instead we fetch
7
+ # their locked development dependencies.
8
+ # Likewise, their root-level conftest is not provided as a pytest plugin for
9
+ # use outside their own tests, but we need their fixtures. We fetch them into
10
+ # our own namespace here.
11
+ deps :
12
+ curl -L -o requirements-sentry.txt https://github.com/getsentry/sentry/raw/ $( SENTRY_VERSION ) /requirements-dev-frozen.txt
13
+ curl -L -o tests/conftest.py https://github.com/getsentry/sentry/raw/ $( SENTRY_VERSION ) /tests/conftest.py
14
+ poetry run pip install -r requirements-sentry.txt
15
15
16
16
clean :
17
17
rm -rf * .egg-info src/* .egg-info
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ services :
2
+ postgres :
3
+ image : postgres:14.11
4
+ environment :
5
+ POSTGRES_HOST_AUTH_METHOD : trust
6
+ # Set health checks to wait until postgres has started
7
+ healthcheck :
8
+ test : ["CMD-SHELL", “pg_isready”]
9
+ interval : 10s
10
+ timeout : 5s
11
+ retries : 5
12
+ ports :
13
+ - 5432:5432
14
+ memcached :
15
+ image : memcached:1.6.23-alpine
16
+ ports :
17
+ - 11211:11211
18
+ redis :
19
+ image : redis:6.2.14-alpine
20
+ ports :
21
+ - 6379:6379
Original file line number Diff line number Diff line change @@ -68,26 +68,20 @@ def get_configure_view(self):
68
68
69
69
def get_auth_pipeline (self ):
70
70
return [
71
- OIDCLogin (self .get_client_id (), domains = self .domains ),
71
+ OIDCLogin (domains = self .domains , client_id = self .get_client_id () ),
72
72
OAuth2Callback (
73
73
access_token_url = TOKEN_ENDPOINT ,
74
74
client_id = self .get_client_id (),
75
75
client_secret = self .get_client_secret (),
76
76
),
77
- FetchUser (
78
- domains = self .domains ,
79
- version = self .version ,
80
- ),
77
+ FetchUser (domains = self .domains , version = self .version ),
81
78
]
82
79
83
80
def get_refresh_token_url (self ):
84
81
return TOKEN_ENDPOINT
85
82
86
83
def build_config (self , state ):
87
- return {
88
- "domains" : [state ["domain" ]],
89
- "version" : DATA_VERSION ,
90
- }
84
+ return {"domains" : [state ["domain" ]], "version" : DATA_VERSION }
91
85
92
86
def get_user_info (self , bearer_token ):
93
87
endpoint = USERINFO_ENDPOINT
You can’t perform that action at this time.
0 commit comments