File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 - name : Install dependencies
2323 run : |
2424 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
2626 python -m pip install --upgrade pip
2727 if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
2828 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+
22name : Docs github pages deploy
33
44on :
55 push :
6- branches :
6+ branches :
77 - main
88
99jobs :
@@ -18,11 +18,11 @@ jobs:
1818 uses : actions/setup-python@v2
1919 with :
2020 python-version : 3.9
21-
21+
2222 - name : Install dependencies
2323 run : |
2424 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
2626 python -m pip install --upgrade pip
2727 if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
2828 if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
3232 pip install -r requirements.txt
3333 make html
3434 working-directory : ./docs
35-
35+
3636 # Create an artifact of the html output.
3737 - uses : actions/upload-artifact@v1
3838 with :
Original file line number Diff line number Diff line change 11# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
22# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
33
4- name : Build and deploy to PyPi
4+ name : Build and deploy to PyPi
55
66on :
77 release :
2020 - name : Install dependencies
2121 run : |
2222 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
2424 python -m pip install --upgrade pip
2525 pip install pytest
2626 if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3131 uses : pypa/gh-action-pypi-publish@master
3232 with :
3333 user : __token__
34- password : ${{ secrets.pypi_password }}
34+ password : ${{ secrets.pypi_password }}
3535
Original file line number Diff line number Diff line change 2121 - name : Install dependencies
2222 run : |
2323 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
2525 python -m pip install --upgrade pip
2626 pip install pytest
2727 if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
Original file line number Diff line number Diff line change 2121 - name : Install dependencies
2222 run : |
2323 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
2525 python -m pip install --upgrade pip
2626 pip install pytest
2727 if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
Original file line number Diff line number Diff line change 77jobs :
88 create-exe :
99
10- runs-on : ubuntu -latest
10+ runs-on : windows -latest
1111
1212 steps :
1313 - uses : actions/checkout@v1
1414
15- - uses : cachix/install-nix-action@v13
15+ - name : Set up Python
16+ uses : actions/setup-python@v2
1617 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
2625
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
2929
3030 - uses : actions/upload-artifact@v1
3131 with :
3232 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
1616StrCpy $InstDir " $LocalAppData\$(^Name)"
1717StrCpy $ExeLocation " $InstDir\python_embed\Scripts\ev3sim.exe"
1818SetShellVarContext Current
19- FunctionEnd
19+ FunctionEnd
2020
2121; ---------------------------------
2222; Styling
@@ -62,7 +62,7 @@ FunctionEnd
6262
6363; --------------------------------
6464; Languages
65-
65+
6666!insertmacro MUI_LANGUAGE " English"
6767
6868; ---------------------------------
@@ -83,7 +83,8 @@ File /nonfatal /a /r "dist\"
8383WriteRegStr HKCU " Software\EV3Sim" " " $InstDir
8484
8585; 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"
8788Pop $0
8889StrCmp " 0" $0 fine
8990
Original file line number Diff line number Diff line change 11recommonmark == 0.6.0
22Sphinx == 3.1.2
33sphinx-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
23wheel >= 0.36.2
34pyinstaller >= 4.1
You can’t perform that action at this time.
0 commit comments