Skip to content

Commit

Permalink
Update changelog, version numbers and release dates for release 1.24.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-smith-artifex-com committed May 8, 2024
1 parent 89f9b44 commit b18d200
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 11 deletions.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ body:
label: PyMuPDF version
options:
-
- 1.24.3
- 1.24.2
- 1.24.1
- 1.24.0
Expand Down
2 changes: 1 addition & 1 deletion READMErb.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# PyMuPDF 1.24.1
# PyMuPDF 1.24.3

This wheel contains [MuPDF](https://mupdf.readthedocs.io/) shared libraries for
use by [PyMuPDF](https://pymupdf.readthedocs.io/).
Expand Down
14 changes: 11 additions & 3 deletions changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,23 @@ Change Log
==========


**Changes in version 1.24.3 ()**
**Changes in version 1.24.3 (2024-05-08)**

*
The Python module is now called `pymupdf`. `fitz` is still supported for
backwards compatibility.

* Use MuPDF-1.24.2.

* Fixed issues:

* **Fixed** `3402 <https://github.com/pymupdf/PyMuPDF/issues/3402>`_: Cannot add Widgets containing inter-field-calculation JavaScript
* **Fixed** `3357 <https://github.com/pymupdf/PyMuPDF/issues/3357>`_: PyMuPDF==1.24.0 will hanging when using page.get_text("text")
* **Fixed** `3376 <https://github.com/pymupdf/PyMuPDF/issues/3376>`_: Redacting results are not as expected in 1.24.x.
* **Fixed** `3379 <https://github.com/pymupdf/PyMuPDF/issues/3379>`_: Documentation mismatch for get_text_blocks return value order.
* **Fixed** `3414 <https://github.com/pymupdf/PyMuPDF/issues/3414>`_: missing attribute set_dpi()
* **Fixed** `3381 <https://github.com/pymupdf/PyMuPDF/issues/3381>`_: Contents stream contains floats in scientific notation
* **Fixed** `3402 <https://github.com/pymupdf/PyMuPDF/issues/3402>`_: Cannot add Widgets containing inter-field-calculation JavaScript
* **Fixed** `3414 <https://github.com/pymupdf/PyMuPDF/issues/3414>`_: missing attribute set_dpi()
* **Fixed** `3430 <https://github.com/pymupdf/PyMuPDF/issues/3430>`_: page.get_text() cause process freeze with certain pdf on v1.24.2

* Other:

Expand All @@ -22,6 +27,9 @@ Change Log
* `Page.remove_rotation()`: new, set page rotation to zero while keeping appearance.

* Fixed some problems when checking for PDF properties.
* Fixed pip builds from sdist
(see discussion `3360 <https://github.com/pymupdf/PyMuPDF/discussions/3360>`_:
Alpine linux docker build failing "No matching distribution found for pymupdfb==1.24.1").


**Changes in version 1.24.2 (2024-04-17)**
Expand Down
2 changes: 1 addition & 1 deletion docs/version.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
----

This documentation covers **PyMuPDF v1.24.2** features as of **2024-04-17 00:00:01**.
This documentation covers **PyMuPDF v1.24.3** features as of **2024-05-08 00:00:01**.

The major and minor versions of **PyMuPDF** and **MuPDF** will always be the same. Only the third qualifier (patch level) may deviate from that of **MuPDF**.

8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Default behaviour:
Building an sdist:
As of 1.23.26 we no longer download the MuPDF .tar.gz file and
As of 2024-002-28 we no longer download the MuPDF .tar.gz file and
embed it within the sdist. Instead it will be downloaded at build
time.
Expand Down Expand Up @@ -386,7 +386,7 @@ def get_mupdf_internal(out, location=None, sha=None, local_tgz=None):
log(f'get_mupdf_internal(): {out=} {location=} {sha=}')
assert out in ('dir', 'tgz')
if location is None:
location = 'https://mupdf.com/downloads/archive/mupdf-1.24.1-source.tar.gz'
location = 'https://mupdf.com/downloads/archive/mupdf-1.24.2-source.tar.gz'
#location = 'git:--branch master https://github.com/ArtifexSoftware/mupdf.git'

if location == '':
Expand Down Expand Up @@ -1117,8 +1117,8 @@ def sdist():
# We generate different wheels depending on g_flavour.
#

version = '1.24.2'
version_b = '1.24.1'
version = '1.24.3'
version_b = '1.24.3'

if os.path.exists(f'{g_root}/{g_pymupdfb_sdist_marker}'):

Expand Down
4 changes: 2 additions & 2 deletions src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ def _int_rc(text):
return int(text)

VersionFitz = mupdf.FZ_VERSION # MuPDF version.
VersionBind = "1.24.2" # PyMuPDF version.
VersionDate = "2024-04-17 00:00:01"
VersionBind = "1.24.3" # PyMuPDF version.
VersionDate = "2024-05-08 00:00:01"
VersionDate2 = VersionDate.replace('-', '').replace(' ', '').replace(':', '')
version = (VersionBind, VersionFitz, VersionDate2)
pymupdf_version_tuple = tuple( [_int_rc(i) for i in VersionBind.split('.')])
Expand Down
3 changes: 3 additions & 0 deletions tests/test_general.py
Original file line number Diff line number Diff line change
Expand Up @@ -1222,6 +1222,9 @@ def test_3354():
assert document.metadata == v

def test_scientific_numbers():
'''
This is #3381.
'''
doc = pymupdf.open()
page = doc.new_page(width=595, height=842)
point = pymupdf.Point(1e-11, -1e-10)
Expand Down

0 comments on commit b18d200

Please sign in to comment.