Skip to content

Commit

Permalink
[autorelease] update changelog and version file
Browse files Browse the repository at this point in the history
  • Loading branch information
mara004 committed Nov 10, 2023
1 parent c49dcca commit 71d143f
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 13 deletions.
33 changes: 23 additions & 10 deletions autorelease/bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Do not modify this file.
"""

# Begin preamble for Python
# Begin preamble

# TODO
# - add c_ptrdiff_t and _variadic_function only on an as-needed basis
Expand Down Expand Up @@ -64,10 +64,11 @@ def __call__(self, *args):
import sys
import ctypes
import ctypes.util
import warnings
from pathlib import Path


def _find_library(libname, libdirs):
def _find_library(libname, libdirs, allow_system_search):

if sys.platform in ("win32", "cygwin", "msys"):
patterns = ["{}.dll", "lib{}.dll", "{}"]
Expand All @@ -86,17 +87,29 @@ def _find_library(libname, libdirs):
if libpath.is_file():
return str(libpath)

libpath = ctypes.util.find_library(libname)
if not libpath:
raise ImportError(f"Library '{libname} could not be found in {libdirs} or system.'")
return libpath
if allow_system_search:
if libdirs:
warnings.warn(f"Could not find library '{libname}' in libdirs {libdirs}, searching system...")
libpath = ctypes.util.find_library(libname)
if not libpath:
raise ImportError(f"Could not find library '{libname}' in system")
return libpath
else:
raise ImportError(f"Could not find library '{libname}' in libdirs {libdirs} (system search disabled)")

assert False, "unreached"

# End loader

_loader_info = dict(
libname = "pdfium",
libdirs = ['.'],
allow_system_search = True,
)
_loader_info["libpath"] = _find_library(**_loader_info)
_lib = ctypes.CDLL(_loader_info["libpath"])

# End loader

_libdirs = ['.']
_libpath = _find_library("pdfium", _libdirs)
_lib = ctypes.CDLL(_libpath)
# No modules

enum_anon_2 = c_int
Expand Down
4 changes: 2 additions & 2 deletions autorelease/record.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"pdfium": 6097,
"tag": "4.23.1"
"pdfium": 6110,
"tag": "4.24.0"
}
6 changes: 6 additions & 0 deletions docs/devel/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
# Changelog


## 4.24.0 (2023-11-10)

- Updated PDFium from `6097` to `6110`.
- Added GitHub issue templates


## 4.23.1 (2023-10-31)

- No PDFium update.
Expand Down
1 change: 0 additions & 1 deletion docs/devel/changelog_staging.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@
<!-- List character: dash (-) -->

# Changelog for next release
- Added GitHub issue templates

0 comments on commit 71d143f

Please sign in to comment.