Skip to content

Commit 11c4ac5

Browse files
authored
Fix pipeline and freeze (#366)
1 parent a849464 commit 11c4ac5

File tree

4 files changed

+53
-32
lines changed

4 files changed

+53
-32
lines changed

.github/workflows/python-app.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,16 @@ jobs:
1616
runs-on: ubuntu-latest
1717

1818
steps:
19-
- uses: actions/checkout@v2
20-
- name: Set up Python 3.10
21-
uses: actions/setup-python@v2
22-
with:
23-
python-version: "3.10"
19+
- uses: actions/checkout@v4
20+
- uses: actions/setup-python@v5
21+
2422
- name: Install dependencies
2523
run: |
26-
python -m pip install --upgrade pip
2724
pip install flake8 pytest
2825
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
2926
pip install git+https://github.com/OpenNingia/l5rcm-data-access.git@master
3027
pip install --no-deps ./l5r
31-
sudo apt-get install -y libxml2-dev libxslt1-dev python-dev librsvg2-bin python-docutils fakeroot
28+
sudo apt-get install -y libxml2-dev libxslt1-dev librsvg2-bin fakeroot python3-docutils
3229
- name: Lint with flake8
3330
run: |
3431
# stop the build if there are Python syntax errors or undefined names

appveyor.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ init:
1010

1111
environment:
1212
matrix:
13-
- PYTHONDIR: C:\Python38-x64
14-
- PYTHONDIR: C:\Python39-x64
13+
- PYTHONDIR: C:\Python312-x64
1514

1615
install:
1716
- if %PYTHONDIR:-x64=%==%PYTHONDIR% (set ARCH=x86) else set ARCH=x64
@@ -26,7 +25,7 @@ build_script:
2625

2726
after_build:
2827
- mkdir tools\deploy\windows\dist
29-
- python cxfreeze.py build
28+
- cxfreeze build --target-dir .\tools\deploy\windows\dist
3029
- cd tools\deploy\windows\
3130
- deploy_common.bat
3231
- dir common
@@ -38,3 +37,5 @@ artifacts:
3837

3938
# fetch repository as zip archive
4039
shallow_clone: true
40+
41+
skip_branch_with_pr: true

cxfreeze.py

Lines changed: 0 additions & 22 deletions
This file was deleted.

pyproject.toml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
[project]
2+
name = "l5rcm"
3+
4+
authors = [
5+
{name = "Daniele Simonetti", email = "oppifjellet@gmail.com"},
6+
]
7+
description = "L5R RPG character manager"
8+
readme = "README.md"
9+
requires-python = ">=3.8"
10+
keywords = ["l5r", "rpg", "legend-of-the-five-rings", "character-manager"]
11+
license = {text = "GPLv3"}
12+
classifiers=[
13+
# How mature is this project? Common values are
14+
# 3 - Alpha
15+
# 4 - Beta
16+
# 5 - Production/Stable
17+
'Development Status :: 5 - Production/Stable',
18+
19+
'Intended Audience :: End Users/Desktop',
20+
21+
'Environment :: Win32 (MS Windows)',
22+
'Environment :: X11 Applications :: Qt',
23+
24+
'Topic :: Games/Entertainment :: Role-Playing',
25+
'Topic :: Utilities',
26+
27+
# Pick your license as you wish (should match "license" above)
28+
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
29+
30+
# Specify the Python versions you support here. In particular, ensure
31+
# that you indicate whether you support Python 2, Python 3 or both.
32+
'Programming Language :: Python :: 3',
33+
'Programming Language :: Python :: 3 :: Only'
34+
]
35+
dynamic = ["version"]
36+
37+
[tool.cxfreeze]
38+
executables = [
39+
{script = "main.py", base = "gui", "icon" = "tools/deploy/windows/l5rcm.ico", target_name = "l5rcm"}
40+
]
41+
42+
[tool.cxfreeze.build_exe]
43+
excludes = ["tests", "unittest"]
44+
includes = ["l5r.widgets.iconloader"]
45+
zip_include_packages = ["encodings", "PySide5", "shiboken5", "lxml._elementpath"]

0 commit comments

Comments
 (0)