File tree Expand file tree Collapse file tree 10 files changed +34
-31
lines changed Expand file tree Collapse file tree 10 files changed +34
-31
lines changed Original file line number Diff line number Diff line change 22
22
- name : Install dependencies
23
23
run : |
24
24
sudo apt-get update
25
- sudo apt-get install python3-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libsmpeg-dev python-numpy subversion libportmidi-dev ffmpeg libswscale-dev libavformat-dev libavcodec-dev
25
+ sudo apt-get install python3-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libsmpeg-dev subversion libportmidi-dev ffmpeg libswscale-dev libavformat-dev libavcodec-dev
26
26
python -m pip install --upgrade pip
27
27
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
28
28
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
Original file line number Diff line number Diff line change 1
-
1
+
2
2
name : Docs github pages deploy
3
3
4
4
on :
5
5
push :
6
- branches :
6
+ branches :
7
7
- main
8
8
9
9
jobs :
@@ -18,11 +18,11 @@ jobs:
18
18
uses : actions/setup-python@v2
19
19
with :
20
20
python-version : 3.9
21
-
21
+
22
22
- name : Install dependencies
23
23
run : |
24
24
sudo apt-get update
25
- sudo apt-get install python3-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libsmpeg-dev python-numpy subversion libportmidi-dev ffmpeg libswscale-dev libavformat-dev libavcodec-dev
25
+ sudo apt-get install python3-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libsmpeg-dev subversion libportmidi-dev ffmpeg libswscale-dev libavformat-dev libavcodec-dev
26
26
python -m pip install --upgrade pip
27
27
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
28
28
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
32
32
pip install -r requirements.txt
33
33
make html
34
34
working-directory : ./docs
35
-
35
+
36
36
# Create an artifact of the html output.
37
37
- uses : actions/upload-artifact@v1
38
38
with :
Original file line number Diff line number Diff line change 1
1
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2
2
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3
3
4
- name : Build and deploy to PyPi
4
+ name : Build and deploy to PyPi
5
5
6
6
on :
7
7
release :
20
20
- name : Install dependencies
21
21
run : |
22
22
sudo apt-get update
23
- sudo apt-get install python3-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libsmpeg-dev python-numpy subversion libportmidi-dev ffmpeg libswscale-dev libavformat-dev libavcodec-dev
23
+ sudo apt-get install python3-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libsmpeg-dev subversion libportmidi-dev ffmpeg libswscale-dev libavformat-dev libavcodec-dev
24
24
python -m pip install --upgrade pip
25
25
pip install pytest
26
26
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
31
31
uses : pypa/gh-action-pypi-publish@master
32
32
with :
33
33
user : __token__
34
- password : ${{ secrets.pypi_password }}
34
+ password : ${{ secrets.pypi_password }}
35
35
Original file line number Diff line number Diff line change 21
21
- name : Install dependencies
22
22
run : |
23
23
sudo apt-get update
24
- sudo apt-get install python3-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libsmpeg-dev python-numpy subversion libportmidi-dev ffmpeg libswscale-dev libavformat-dev libavcodec-dev
24
+ sudo apt-get install python3-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libsmpeg-dev subversion libportmidi-dev ffmpeg libswscale-dev libavformat-dev libavcodec-dev
25
25
python -m pip install --upgrade pip
26
26
pip install pytest
27
27
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
Original file line number Diff line number Diff line change 21
21
- name : Install dependencies
22
22
run : |
23
23
sudo apt-get update
24
- sudo apt-get install python3-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libsmpeg-dev python-numpy subversion libportmidi-dev ffmpeg libswscale-dev libavformat-dev libavcodec-dev
24
+ sudo apt-get install python3-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libsmpeg-dev subversion libportmidi-dev ffmpeg libswscale-dev libavformat-dev libavcodec-dev
25
25
python -m pip install --upgrade pip
26
26
pip install pytest
27
27
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
Original file line number Diff line number Diff line change 7
7
jobs :
8
8
create-exe :
9
9
10
- runs-on : ubuntu -latest
10
+ runs-on : windows -latest
11
11
12
12
steps :
13
13
- uses : actions/checkout@v1
14
14
15
- - uses : cachix/install-nix-action@v13
15
+ - name : Set up Python
16
+ uses : actions/setup-python@v2
16
17
with :
17
- install_url : https://nixos-nix-install-tests.cachix.org/serve/i6laym9jw3wg9mw6ncyrk6gjx4l34vvx/install
18
- install_options : ' --tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve'
19
- extra_nix_config : |
20
- experimental-features = nix-command flakes
21
- access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
22
- - uses : cachix/cachix-action@v10
23
- with :
24
- name : melbournehighschoolrobotics
25
- authToken : ' ${{ secrets.CACHIX_AUTH_TOKEN }}'
18
+ python-version : 3.9
19
+
20
+ - name : Install dependencies
21
+ run : |
22
+ python -m pip install --upgrade pip
23
+ pip install -r requirements.txt
24
+ pip install -r requirements-dev.txt
26
25
27
- - run : nix build --print-build-logs ".#windows"
28
- - run : nix flake check
26
+ - name : Build with pyinstaller
27
+ run : |
28
+ python -m build_exe
29
29
30
30
- uses : actions/upload-artifact@v1
31
31
with :
32
32
name : windows_package
33
- path : result/
33
+ path : dist/ev3sim
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ Function .onInit
16
16
StrCpy $InstDir " $LocalAppData\$(^Name)"
17
17
StrCpy $ExeLocation " $InstDir\python_embed\Scripts\ev3sim.exe"
18
18
SetShellVarContext Current
19
- FunctionEnd
19
+ FunctionEnd
20
20
21
21
; ---------------------------------
22
22
; Styling
@@ -62,7 +62,7 @@ FunctionEnd
62
62
63
63
; --------------------------------
64
64
; Languages
65
-
65
+
66
66
!insertmacro MUI_LANGUAGE " English"
67
67
68
68
; ---------------------------------
@@ -83,7 +83,8 @@ File /nonfatal /a /r "dist\"
83
83
WriteRegStr HKCU " Software\EV3Sim" " " $InstDir
84
84
85
85
; Run pip install process. pythonw seems to not finish correctly, and so ev3sim doesn't get installed.
86
- ExecDos::exec ' "$InstDir\python_embed\python.exe" -m pip install -f "$InstDir\python_embed\wheels" --no-index ev3sim' " " " $InstDir\pip.log"
86
+ ; To use test.pypi: '"$InstDir\python_embed\python.exe" -m pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple ev3sim==2.1.8.post1'
87
+ ExecDos::exec ' "$InstDir\python_embed\python.exe" -m pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org ev3sim' " " " $InstDir\pip.log"
87
88
Pop $0
88
89
StrCmp " 0" $0 fine
89
90
Original file line number Diff line number Diff line change 1
1
recommonmark == 0.6.0
2
2
Sphinx == 3.1.2
3
3
sphinx-rtd-theme == 0.5.0
4
- pygments == 2.7.4
4
+ pygments == 2.7.4
5
+ Jinja2 < 3.1
Original file line number Diff line number Diff line change 1
- __version__ = "2.2.2 "
1
+ __version__ = "2.2.3 "
Original file line number Diff line number Diff line change 1
- black >= 20.8b1
1
+ black == 20.8b1
2
+ click == 8.0.2
2
3
wheel >= 0.36.2
3
4
pyinstaller >= 4.1
You can’t perform that action at this time.
0 commit comments