Skip to content

Commit

Permalink
try to build with python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhrisca committed Apr 17, 2024
1 parent 2884fe4 commit 1f8a51c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 20 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
os: [windows-latest, macos-latest]
python-version: ["3.10"]
python-version: ["3.12"]

steps:
- uses: actions/checkout@v3
Expand All @@ -20,28 +20,21 @@ jobs:

- name: Install packages
run: |
pip install build numpy wheel
pip install build numpy wheel setuptools
pip install -r requirements_exe_build.txt
python setup.py bdist_wheel
pip install -e . --no-deps
pip install cmerg
- name: Build an executable
shell: bash
if: ${{ matrix.python-version == '3.10' }}
if: ${{ matrix.python-version == '3.12' }}
run: |
pip install build numpy wheel
pip install build numpy wheel setuptools
pip install -r requirements_exe_build.txt
python setup.py bdist_wheel
pip install -e . --no-deps
pip install cmerg
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt update
sudo apt install libegl1 libopengl0
sudo apt-get install '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
sudo apt-get install libxcb-xinerama0
sudo apt-get install libxkbcommon-x11-0
fi
pyinstaller asammdf.spec --distpath dist/${RUNNER_OS} --noconfirm --clean
# see: https://docs.github.com/en/actions/advanced-guides/storing-workflow-data-as-artifacts
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@ jobs:
shell: bash
if: ${{ matrix.python-version == '3.10' }}
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt update
sudo apt install libegl1 libopengl0
fi
sudo apt update
sudo apt install libegl1 libopengl0
pyinstaller asammdf.spec --distpath dist/${RUNNER_OS} --noconfirm --clean
# see: https://docs.github.com/en/actions/advanced-guides/storing-workflow-data-as-artifacts
Expand Down
8 changes: 4 additions & 4 deletions requirements_exe_build.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ numpy>=1.23.0
pandas
typing_extensions
isal; platform_machine == "x86_64" or platform_machine == "AMD64"
lxml==4.9.3
lxml
natsort
psutil
PySide6==6.3.1
PySide6
pyqtgraph
QtPy==2.3.1
QtPy
pyqtlet2
pyopengl
h5py
fastparquet
hdf5storage
snappy
faust-cchardet==2.1.19
faust-cchardet
chardet
cryptography
keyring
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ def _get_ext_modules():
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand Down

0 comments on commit 1f8a51c

Please sign in to comment.