Skip to content

Commit 8fa780d

Browse files
authored
CM-59691: update build processes and pyinstaller setup (#386)
1 parent b3ae1da commit 8fa780d

File tree

5 files changed

+36
-35
lines changed

5 files changed

+36
-35
lines changed

.github/workflows/build_executable.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ jobs:
6161
git checkout $LATEST_TAG
6262
echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV
6363
64-
- name: Set up Python 3.12
64+
- name: Set up Python 3.13
6565
uses: actions/setup-python@v4
6666
with:
67-
python-version: '3.12'
67+
python-version: '3.13'
6868

6969
- name: Load cached Poetry setup
7070
id: cached-poetry

.github/workflows/tests_full.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ jobs:
6666

6767
- name: Run executable test
6868
# we care about the one Python version that will be used to build the executable
69-
# TODO(MarshalX): upgrade to Python 3.13
70-
if: matrix.python-version == '3.12'
69+
if: matrix.python-version == '3.13'
7170
run: |
7271
poetry run pyinstaller pyinstaller.spec
7372
./dist/cycode-cli version

poetry.lock

Lines changed: 30 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyinstaller.spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ with open(_INIT_FILE_PATH, 'w', encoding='UTF-8') as file:
2323

2424
a = Analysis(
2525
scripts=['cycode/cli/main.py'],
26-
excludes=['tests'],
26+
excludes=['tests', 'setuptools', 'pkg_resources'],
2727
)
2828

29-
exe_args = [PYZ(a.pure, a.zipped_data), a.scripts, a.binaries, a.zipfiles, a.datas]
29+
exe_args = [PYZ(a.pure), a.scripts, a.binaries, a.datas]
3030
if _ONEDIR_MODE:
3131
exe_args = [PYZ(a.pure), a.scripts]
3232

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ responses = ">=0.23.1,<0.24.0"
6060
pyfakefs = ">=5.7.2,<5.8.0"
6161

6262
[tool.poetry.group.executable.dependencies]
63-
pyinstaller = {version=">=5.13.2,<5.14.0", python=">=3.8,<3.13"}
63+
pyinstaller = {version=">=6.0.0,<7.0.0", python=">=3.9,<3.15"}
6464
dunamai = ">=1.18.0,<1.22.0"
6565

6666
[tool.poetry.group.dev.dependencies]

0 commit comments

Comments
 (0)