8
8
9
9
nox .options .reuse_existing_virtualenvs = True
10
10
nox .options .sessions = ["tests" , "lint" , "docs" ]
11
- python = ["3.9 " ]
11
+ python = ["3.10 " ]
12
12
13
13
prettier_command = [
14
14
"npx" ,
22
22
23
23
doc_dependencies = ["." , "mkdocs" , "mkdocs-material" ]
24
24
lint_dependencies = [
25
- "black==21.12b0 " ,
25
+ "black==22.3.0 " ,
26
26
"vulture" ,
27
27
"flake8" ,
28
28
"mypy==0.782" ,
@@ -160,11 +160,13 @@ def publish_docs(session):
160
160
session .run ("mkdocs" , "gh-deploy" )
161
161
162
162
163
- @nox .session (reuse_venv = True )
163
+ @nox .session (
164
+ reuse_venv = True ,
165
+ )
164
166
def build_executable_current_platform (session ):
165
167
session .run ("yarn" , "install" , external = True )
166
168
session .run ("yarn" , "build" , external = True )
167
- session .install ("." , "PyInstaller>=4.5, <4.6 " )
169
+ session .install ("." , "PyInstaller==5.1 " )
168
170
session .run ("python" , "make_executable.py" )
169
171
session .notify ("build_pex" )
170
172
@@ -190,19 +192,21 @@ def build_executable_windows(session):
190
192
session .notify ("build_executable_current_platform" )
191
193
192
194
193
- @nox .session ( python = python )
195
+ @nox .session
194
196
def build_pex (session ):
195
197
"""Builds a pex of gdbgui"""
196
198
# NOTE: frontend must be built before running this
197
- session .install ("pex==2.1.45 " )
199
+ session .install ("pex==2.1.93 " )
198
200
pex_path = Path ("build/executable/gdbgui.pex" )
199
201
session .run (
200
202
"pex" ,
201
203
"." ,
202
- "-c " ,
204
+ "--console-script " ,
203
205
"gdbgui" ,
204
- "-o " ,
206
+ "--output-file " ,
205
207
str (pex_path ),
208
+ "--sh-boot" ,
209
+ "--validate-entry-point" ,
206
210
external = True ,
207
211
)
208
212
checksum = hashlib .md5 (pex_path .read_bytes ()).hexdigest ()
0 commit comments