mirror of
https://github.com/drewcassidy/quicktex.git
synced 2024-09-13 06:37:34 +00:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
a05c1e352e | |||
1f7aad7218 | |||
23133eb802 | |||
0448dbe6e1 |
24
.github/workflows/python-package.yml
vendored
24
.github/workflows/python-package.yml
vendored
@ -45,15 +45,13 @@ jobs:
|
||||
path: dist/*.tar.gz
|
||||
|
||||
build-wheels:
|
||||
name: Build Wheels on ${{ matrix.os }} ${{ matrix.arch[0] }}
|
||||
name: Build Wheels on ${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ macos-11, windows-latest, ubuntu-latest ]
|
||||
arch: [ ['x86', 'x86_64', 'AMD64', 'x86_64' ] ] #[suffix, mac, windows, linux] arch names
|
||||
include:
|
||||
- os: ubuntu-latest
|
||||
arch: [ 'ARM', 'arm64', 'ARM64', 'aarch64' ]
|
||||
# macos-13 is an intel runner, macos-14 is apple silicon
|
||||
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
|
||||
linux_arch: [ 'x86_64' ] #[suffix, mac, windows, linux] arch names
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@ -71,17 +69,19 @@ jobs:
|
||||
sudo tar fvxz openmp-*.tar.gz -C /
|
||||
|
||||
- name: Install QEMU
|
||||
# install QEMU if building for arm linux
|
||||
# install QEMU if building for linux
|
||||
uses: docker/setup-qemu-action@v2
|
||||
if: runner.os == 'linux' && matrix.arch[3] == 'aarch64'
|
||||
if: runner.os == 'linux'
|
||||
with:
|
||||
platforms: arm64
|
||||
|
||||
- name: Build wheels
|
||||
uses: pypa/cibuildwheel@v2.11.2
|
||||
uses: pypa/cibuildwheel@v2.18.1
|
||||
env:
|
||||
MACOSX_DEPLOYMENT_TARGET: "10.15"
|
||||
CIBW_ARCHS_LINUX: ${{ matrix.arch[3] }}
|
||||
MACOSX_DEPLOYMENT_TARGET: "12"
|
||||
CIBW_ARCHS_LINUX: 'x86_64 aarch64'
|
||||
CIBW_ARCHS_MACOS: 'native'
|
||||
CIBW_SKIP: 'cp37*'
|
||||
|
||||
- name: Upload Wheels
|
||||
uses: actions/upload-artifact@v3
|
||||
@ -139,4 +139,4 @@ jobs:
|
||||
name: ${{ env.VERSION_TITLE }}
|
||||
body_path: RELEASE.md
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
16
CHANGELOG.md
16
CHANGELOG.md
@ -2,6 +2,22 @@
|
||||
|
||||
All notable changes to this project will be documented in this file
|
||||
|
||||
## 0.2.1 - 2024-06-03
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fixed broken transparency on palettized PNG files
|
||||
|
||||
### Changed
|
||||
|
||||
- Changed which wheels are built by the CI. There are no changes to OS or Python version compatibility if you compile from source.
|
||||
- Stopped building Python 3.7 wheels
|
||||
- Stopped building macOS universal wheels
|
||||
- Wheels for macOS now require macOS 12 or later
|
||||
- Included macOS ARM wheels
|
||||
- Included Python 3.12 wheels
|
||||
|
||||
|
||||
## 0.2.0 - 2023-06-21
|
||||
|
||||
### Changed
|
||||
|
@ -275,6 +275,7 @@ def read(path: os.PathLike) -> DDSFile:
|
||||
def encode(image: Image.Image, encoder, four_cc: str, mip_count: typing.Optional[int] = None) -> DDSFile:
|
||||
if image.mode != 'RGBA' or image.mode != 'RGBX':
|
||||
mode = 'RGBA' if 'A' in image.mode else 'RGBX'
|
||||
image.apply_transparency() # why is this necessary what
|
||||
image = image.convert(mode)
|
||||
|
||||
sizes = quicktex.image_utils.mip_sizes(image.size, mip_count)
|
||||
|
Reference in New Issue
Block a user