Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pypdfium2 4.19.0 #2

Merged
merged 30 commits into from
Sep 5, 2023
Merged
Show file tree
Hide file tree
Changes from 28 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
cd045f1
add skeleton recipe
boldorider4 Aug 8, 2023
0a86f2b
complete recipe
boldorider4 Aug 8, 2023
fe7c0f3
do not specify lower bound for python
boldorider4 Aug 10, 2023
f9fb0bf
include every license file
boldorider4 Aug 10, 2023
fe0a9b2
set url to proper tar gz address
boldorider4 Aug 10, 2023
4b71998
remove noarch
boldorider4 Aug 10, 2023
0f348c8
pin ctypesgen to pypdfium2-team specific version
boldorider4 Aug 15, 2023
4d85183
fix pinning
boldorider4 Aug 15, 2023
51dffb4
fix version pinning
boldorider4 Aug 18, 2023
d2a4216
add git and c compiler to build
boldorider4 Aug 22, 2023
30793a3
pin pdfium-binaries to host and run
boldorider4 Aug 23, 2023
efedddd
fix build script
boldorider4 Aug 29, 2023
f869bfa
patch upstream project so it can be built as a conda package
boldorider4 Aug 29, 2023
7dbe156
add pillow as run dependency
boldorider4 Aug 29, 2023
2ad7775
add abs.yaml
boldorider4 Aug 30, 2023
b9cc0da
package reference binding on linux
boldorider4 Aug 30, 2023
286e809
remove abs.yaml
boldorider4 Aug 30, 2023
021bace
skip archs for which no pdfium binaries exist
boldorider4 Aug 30, 2023
fa4c90e
address linter
boldorider4 Aug 30, 2023
12fafec
fix windows build
M-Waszkiewicz-Anaconda Aug 31, 2023
4fd402c
regenerate patches
M-Waszkiewicz-Anaconda Aug 31, 2023
6199efb
use latest ctypesgen-pypdfium2-team
M-Waszkiewicz-Anaconda Aug 31, 2023
7ffda59
Revert "use latest ctypesgen-pypdfium2-team"
M-Waszkiewicz-Anaconda Aug 31, 2023
99354aa
use latest ctypesgen-pypdfium2-team
M-Waszkiewicz-Anaconda Aug 31, 2023
b66a9bf
add abs.yaml
M-Waszkiewicz-Anaconda Aug 31, 2023
4c9b099
remove the build package requirement
M-Waszkiewicz-Anaconda Sep 1, 2023
d6a6836
Update to 4.19.0:
skupr-anaconda Sep 4, 2023
4e19a47
add pillow, clean up
M-Waszkiewicz-Anaconda Sep 4, 2023
66aee25
update pdfium-binaries dependency
M-Waszkiewicz-Anaconda Sep 5, 2023
76c7a15
remove compiler, pdfium license
M-Waszkiewicz-Anaconda Sep 5, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions abs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
upload_channels:
- sfe1ed40
69 changes: 69 additions & 0 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{% set name = "pypdfium2" %}
{% set version = "4.19.0" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: 1ca3a2ed080c263229af3fbff35ad7f751361861f10893d9908d4d852fe6eb28

build:
skip: True # [linux and (ppc64le or s390x)]
entry_points:
- pypdfium2 = pypdfium2.__main__:cli_main
script_env:
- PDFIUM_PLATFORM=none
script:
- cp bindings/raw.py src/pypdfium2/raw.py
skupr-anaconda marked this conversation as resolved.
Show resolved Hide resolved
- {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
number: 0

requirements:
build:
- {{ compiler('c') }}
skupr-anaconda marked this conversation as resolved.
Show resolved Hide resolved
skupr-anaconda marked this conversation as resolved.
Show resolved Hide resolved
host:
- python
- setuptools
- pip
- wheel !=0.38.0,!=0.38.1
- ctypesgen-pypdfium2-team 1.1.1+17_g10b2b4
skupr-anaconda marked this conversation as resolved.
Show resolved Hide resolved
- pdfium-binaries 118.0.5868
run:
- python
- pdfium-binaries 118.0.5868
skupr-anaconda marked this conversation as resolved.
Show resolved Hide resolved
# to run pypdfium2 imgtopdf you need to have pillow
- pillow
Copy link

@mara004 mara004 Sep 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentioned in #2 (comment), pillow is supposed to be optional, only a subset of features depends on it.
i.e. it's not strictly necessary for all use cases. But it may still be OK to keep since it's very commonly needed (upstream, we got repeated questions why pillow is not in the pyproject dependencies).


test:
imports:
- pypdfium2
commands:
- pip check
- pypdfium2 --help
requires:
- pip

about:
home: https://github.com/pypdfium2-team/pypdfium2
summary: Python bindings to PDFium
description: |
pypdfium2 is an ABI-level Python 3 binding to PDFium, a powerful and liberal-licensed library for PDF rendering,
inspection, manipulation and creation.
license: Apache-2.0
license_family: Apache
license_file:
- LICENSES/Apache-2.0.txt
- LICENSES/BSD-3-Clause.txt
- LICENSES/LicenseRef-PdfiumThirdParty.txt
skupr-anaconda marked this conversation as resolved.
Show resolved Hide resolved
- LICENSES/CC-BY-4.0.txt
- .reuse/dep5
doc_url: https://pypdfium2.readthedocs.io/en/stable
dev_url: https://github.com/pypdfium2-team/pypdfium2

extra:
recipe-maintainers:
- boldorider4
skip-lints:
- host_section_needs_exact_pinnings