Skip to content

Commit 6e15cde

Browse files
committed
freeze requirements and update python version to build pex
1 parent 9be90ff commit 6e15cde

File tree

6 files changed

+20
-15
lines changed

6 files changed

+20
-15
lines changed

.github/workflows/build_executable.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build native gdbgui executables
1+
name: Build native gdbgui executables with pyinstaller and pex
22

33
on:
44
pull_request:
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
os: [ubuntu-latest, macos-latest]
16-
python-version: [3.9]
16+
python-version: ["3.10"]
1717
include:
1818
- os: ubuntu-latest
1919
buildname: linux

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
matrix:
1717
os: [ubuntu-latest]
18-
python-version: [3.9]
18+
python-version: ["3.10"]
1919

2020
steps:
2121
- uses: actions/checkout@v2
@@ -39,7 +39,7 @@ jobs:
3939
strategy:
4040
matrix:
4141
os: [ubuntu-latest]
42-
python-version: [3.9]
42+
python-version: ["3.10"]
4343

4444
steps:
4545
- uses: actions/checkout@v2
@@ -78,7 +78,7 @@ jobs:
7878
- name: Set up Python
7979
uses: actions/setup-python@v2
8080
with:
81-
python-version: 3.9
81+
python-version: "3.10"
8282
- name: Install dependencies
8383
run: |
8484
python -m pip install --upgrade pip

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- Compatibility with Werkzeug 2.1. Use the eventlet server instead of
66
the Werkzeug development server.
7+
- Use pinned requirements instead of abstract requirements to ensure reproducability of pip installs
78

89
## 0.15.0.1
910

gdbgui/VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.15.0.1
1+
0.15.1.0

noxfile.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
nox.options.reuse_existing_virtualenvs = True
1010
nox.options.sessions = ["tests", "lint", "docs"]
11-
python = ["3.9"]
11+
python = ["3.10"]
1212

1313
prettier_command = [
1414
"npx",
@@ -22,7 +22,7 @@
2222

2323
doc_dependencies = [".", "mkdocs", "mkdocs-material"]
2424
lint_dependencies = [
25-
"black==21.12b0",
25+
"black==22.3.0",
2626
"vulture",
2727
"flake8",
2828
"mypy==0.782",
@@ -160,11 +160,13 @@ def publish_docs(session):
160160
session.run("mkdocs", "gh-deploy")
161161

162162

163-
@nox.session(reuse_venv=True)
163+
@nox.session(
164+
reuse_venv=True,
165+
)
164166
def build_executable_current_platform(session):
165167
session.run("yarn", "install", external=True)
166168
session.run("yarn", "build", external=True)
167-
session.install(".", "PyInstaller>=4.5, <4.6")
169+
session.install(".", "PyInstaller==5.1")
168170
session.run("python", "make_executable.py")
169171
session.notify("build_pex")
170172

@@ -190,19 +192,21 @@ def build_executable_windows(session):
190192
session.notify("build_executable_current_platform")
191193

192194

193-
@nox.session(python=python)
195+
@nox.session
194196
def build_pex(session):
195197
"""Builds a pex of gdbgui"""
196198
# NOTE: frontend must be built before running this
197-
session.install("pex==2.1.45")
199+
session.install("pex==2.1.93")
198200
pex_path = Path("build/executable/gdbgui.pex")
199201
session.run(
200202
"pex",
201203
".",
202-
"-c",
204+
"--console-script",
203205
"gdbgui",
204-
"-o",
206+
"--output-file",
205207
str(pex_path),
208+
"--sh-boot",
209+
"--validate-entry-point",
206210
external=True,
207211
)
208212
checksum = hashlib.md5(pex_path.read_bytes()).hexdigest()

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
},
6161
zip_safe=False,
6262
install_requires=distutils.text_file.TextFile(
63-
filename="./requirements.in"
63+
filename="./requirements.txt"
6464
).readlines(),
6565
classifiers=[
6666
"Intended Audience :: Developers",

0 commit comments

Comments
 (0)