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

pypdfium2 4.19.0 #2

merged 30 commits into from
Sep 5, 2023

Conversation

boldorider4
Copy link
Contributor

@boldorider4 boldorider4 commented Aug 17, 2023

Jira: PKG-2559
Upstream project: pypdfium2 requirements

@anaconda-pkg-build
Copy link

Linter check found the following problems: The following problems have been found:

ERROR: clone/recipe/meta.yaml:22: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
INFO: clone/recipe/meta.yaml:50: invalid_url: https://pypdfium2.readthedocs.io/en/stable : URL domain redirect pypdfium2.readthedocs.io ->
ERROR: clone/recipe/meta.yaml:51: missing_license_family: The recipe is missing the about/license_family key.
WARNING: clone/recipe/meta.yaml:51: missing_license_file: The recipe is missing the about/license_file or about/license_url key.
ERROR: clone/recipe/meta.yaml:51: missing_home: The recipe is missing a homepage URL
Errors were found

@anaconda-pkg-build
Copy link

Linter check found the following problems: The following problems have been found:

ERROR: clone/recipe/meta.yaml:22: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
INFO: clone/recipe/meta.yaml:50: invalid_url: https://pypdfium2.readthedocs.io/en/stable : URL domain redirect pypdfium2.readthedocs.io ->
WARNING: clone/recipe/meta.yaml:51: missing_license_file: The recipe is missing the about/license_file or about/license_url key.
ERROR: clone/recipe/meta.yaml:51: missing_home: The recipe is missing a homepage URL
ERROR: clone/recipe/meta.yaml:51: missing_license_family: The recipe is missing the about/license_family key.
Errors were found

@anaconda-pkg-build
Copy link

Linter check found the following problems: The following problems have been found:

ERROR: clone/recipe/meta.yaml:25: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
INFO: clone/recipe/meta.yaml:53: invalid_url: https://pypdfium2.readthedocs.io/en/stable : URL domain redirect pypdfium2.readthedocs.io ->
ERROR: clone/recipe/meta.yaml:54: missing_license_family: The recipe is missing the about/license_family key.
WARNING: clone/recipe/meta.yaml:54: missing_license_file: The recipe is missing the about/license_file or about/license_url key.
ERROR: clone/recipe/meta.yaml:54: missing_home: The recipe is missing a homepage URL
Errors were found

@anaconda-pkg-build
Copy link

Linter check found the following problems: The following problems have been found:

ERROR: clone/recipe/meta.yaml:26: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
INFO: clone/recipe/meta.yaml:55: invalid_url: https://pypdfium2.readthedocs.io/en/stable : URL domain redirect pypdfium2.readthedocs.io ->
WARNING: clone/recipe/meta.yaml:56: missing_license_file: The recipe is missing the about/license_file or about/license_url key.
ERROR: clone/recipe/meta.yaml:56: missing_home: The recipe is missing a homepage URL
ERROR: clone/recipe/meta.yaml:56: missing_license_family: The recipe is missing the about/license_family key.
Errors were found

@boldorider4 boldorider4 force-pushed the pkg-2559_build_4.18.0 branch from 7aa5e9b to 7dbe156 Compare August 29, 2023 17:44
@anaconda-pkg-build
Copy link

Linter check found the following problems: The following problems have been found:

ERROR: clone/recipe/meta.yaml:31: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: clone/recipe/meta.yaml:62: missing_license_family: The recipe is missing the about/license_family key.
WARNING: clone/recipe/meta.yaml:62: missing_license_file: The recipe is missing the about/license_file or about/license_url key.
ERROR: clone/recipe/meta.yaml:62: missing_home: The recipe is missing a homepage URL
Errors were found

@mara004
Copy link

mara004 commented Aug 29, 2023

I just viewed the patch. Please see bblanchon/pdfium-binaries#119 (comment) for an idea how your goal could be achieved already without any changes to pypdfium2's code.

Probably you have realized this already, but FWIW the current patch (f869bfa) is thoroughly inappropriate. You really should not go commenting out large parts of intentional code. This completely breaks the intended use case, so it is not mergeable. And it is also not maintainable in this feedstock. Instead, if you want to run a different code passage, this can simply be controlled through the top level setup.py, as is implemented already with $PDFIUM_PLATFORM=none. Sorry for writing so bluntly. As the person who wrote the code, it's just a bit of a shock to see such a patch. 😅

PS: The ctypesgen call style improvement of the patch is good, but was already implemented independently in devel_v5.

@mara004
Copy link

mara004 commented Aug 29, 2023

BTW, regarding commit 7dbe156, pillow is meant to be optional at runtime, only a subset of features depends on it (e.g. the rendering CLI). So no need to specify it as hard dependency.
A related oversight introduced in the devel_v5 branch was recently fixed, see pypdfium2-team/pypdfium2#249. main should be OK though.

@anaconda-pkg-build
Copy link

Linter check found the following problems: The following problems have been found:

ERROR: clone/recipe/meta.yaml:31: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
WARNING: clone/recipe/meta.yaml:62: missing_license_file: The recipe is missing the about/license_file or about/license_url key.
ERROR: clone/recipe/meta.yaml:62: missing_home: The recipe is missing a homepage URL
ERROR: clone/recipe/meta.yaml:62: missing_license_family: The recipe is missing the about/license_family key.
Errors were found

@boldorider4 boldorider4 force-pushed the pkg-2559_build_4.18.0 branch from 85a47f9 to b9cc0da Compare August 30, 2023 20:09
@anaconda-pkg-build
Copy link

Linter check found the following problems: The following problems have been found:

ERROR: clone/recipe/meta.yaml:32: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: clone/recipe/meta.yaml:63: missing_license_family: The recipe is missing the about/license_family key.
WARNING: clone/recipe/meta.yaml:63: missing_license_file: The recipe is missing the about/license_file or about/license_url key.
ERROR: clone/recipe/meta.yaml:63: missing_home: The recipe is missing a homepage URL
Errors were found

@anaconda-pkg-build
Copy link

Linter check found the following problems: The following problems have been found:

ERROR: clone/recipe/meta.yaml:26: no_git_on_windows: git should not be used as a dependency on Windows.
Errors were found

- Add PDFIUM_PLATFORM=none

- Add  to script

- Disable patches

- Disable git in build

- Disable pillow in run
Copy link
Contributor

@M-Waszkiewicz-Anaconda M-Waszkiewicz-Anaconda left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@skupr-anaconda skupr-anaconda left a comment

Choose a reason for hiding this comment

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

LGTM

@skupr-anaconda skupr-anaconda changed the title build 4.18.0 pypdfium2 4.19.0 Sep 4, 2023
recipe/meta.yaml Outdated Show resolved Hide resolved
- python
- pdfium-binaries 118.0.5868
# 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).

recipe/meta.yaml Outdated Show resolved Hide resolved
recipe/meta.yaml Outdated Show resolved Hide resolved
recipe/meta.yaml Outdated Show resolved Hide resolved
@JeanChristopheMorinPerso

There is a GH outage (https://www.githubstatus.com/incidents/smdz34v7j8q0) so I can't hit the approve button. But I approve.

@M-Waszkiewicz-Anaconda M-Waszkiewicz-Anaconda merged commit 1077be2 into main Sep 5, 2023
@M-Waszkiewicz-Anaconda M-Waszkiewicz-Anaconda deleted the pkg-2559_build_4.18.0 branch September 5, 2023 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants