Skip to content

Commit

Permalink
use latest maturin 0.12.10, fixes issue with embedding LICENSE text f…
Browse files Browse the repository at this point in the history
…ile in wheel

PyO3/maturin#836
  • Loading branch information
anthrotype committed Mar 9, 2022
1 parent e1116b3 commit beeb86c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 62 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,38 +144,6 @@ jobs:
name: dist
path: dist

postfix:
name: Fix up wheels
needs: [build_sdist, build_macos, build_windows, build_linux ]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
submodules: recursive

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"

- uses: actions/download-artifact@v2
with:
name: dist
path: dist

# https://github.com/PyO3/maturin/issues/829
- name: Add license text file to wheels
run: |
pip install -r requirements.txt
python add_license_file_to_wheels.py dist/*.whl
- name: Upload wheels
uses: actions/upload-artifact@v2
with:
name: dist
path: dist

release:
name: Release on tags
if: startsWith(github.ref, 'refs/tags/v')
Expand Down
26 changes: 0 additions & 26 deletions add_license_file_to_wheels.py

This file was deleted.

5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["maturin>=0.12,<0.13"]
requires = ["maturin>=0.12.10,<0.13"]
build-backend = "maturin"

[tool.maturin]
Expand All @@ -13,9 +13,10 @@ bindings = "bin"
[project]
name = "pngquant-cli"
# by default, use the same 'version' as Cargo.toml, but can override if needed
version = "2.17.0.post5"
version = "2.17.0.post6"
description = "Precompiled binaries for pngquant, the lossy PNG compressor based on libimagequant."
maintainers = [{name = "Cosimo Lupo", email = "[email protected]"}]
license = {file = "COPYRIGHT"}

[project.urls]
repository = "https://github.com/anthrotype/pngquant-wheels"
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
maturin
maturin>=0.12.10,<0.13
tomli
tomli-w
twine
wheeltools

0 comments on commit beeb86c

Please sign in to comment.