Bug 272570 - devel/py-maturin needs update, upstream released version 1.1.0
Summary: devel/py-maturin needs update, upstream released version 1.1.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Kai Knoblich
URL: https://github.com/PyO3/maturin/blob/...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-18 15:18 UTC by Miroslav Lachman
Modified: 2023-08-11 05:19 UTC (History)
1 user (show)

See Also:
kai: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav Lachman 2023-07-18 15:18:25 UTC
py-maturin is 1 year old. Upstream released a lot of versions, the latest is 1.1.0 from 2023-06-10
https://www.maturin.rs/changelog.html

Port should be updated
Comment 1 Kai Knoblich freebsd_committer freebsd_triage 2023-07-24 05:03:10 UTC
(In reply to Miroslav Lachman from comment #0)

Thanks for the hint, I had been working on an update to 0.14.x in 2023Q2, but in the course of May the releases 0.15.x and 1.x appeared in rather short intervals, so that I put the project aside for the time being.

It seems that the 1.x releases series seems to be quite stable now, so I can resume my work in the near future, unless someone is faster and has a usable patch.

At this time of writing there also at least two ports that needs to be patched to relax the version requirements before devel/py-maturin 1.1.x can land:

- devel/py-jellyfish (= devel/py-maturin >=0.13<15 in BUILD_DEPENDS)
- devel/py-watchfiles (= devel/py-maturin >=0.13<15 in BUILD_DEPENDS)
Comment 2 commit-hook freebsd_committer freebsd_triage 2023-08-10 08:26:08 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f5ff0dcf95791fca09e9969ba07885942a724826

commit f5ff0dcf95791fca09e9969ba07885942a724826
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2023-08-10 08:20:40 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2023-08-10 08:20:40 +0000

    devel/py-watchfiles: Prepare for py-maturin >= 1.x

    * Relax version requirements as the port builds fine with newer version
      of py-maturin.

    * No PORTREVISION bump as the package doesn't change.

    PR:             272570
    Approved by:    portmgr (buildfix blanket)

 devel/py-watchfiles/Makefile                   | 2 +-
 devel/py-watchfiles/files/patch-pyproject.toml | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Comment 3 commit-hook freebsd_committer freebsd_triage 2023-08-10 08:26:09 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f74de16438cc844916b8227bddac10d8a989b19b

commit f74de16438cc844916b8227bddac10d8a989b19b
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2023-08-10 08:23:02 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2023-08-10 08:23:02 +0000

    devel/py-maturin: Update to 1.2.0

    * Switch to PEP517 build framework and remove workarounds for distutils
      which are no longer required.

    * Remove restriction for 32-bit architectures as the generation of
      32-bit Python wheels is now possible for FreeBSD. [1]

    Changelogs since 0.13.2:

    https://github.com/PyO3/maturin/blob/v1.2.0/Changelog.md

    PR:             272570, 272620 [1]
    Reported by:    Miroslav Lachman, John Hein [1]
    MFH:            No (feature release and breaking changes)

 devel/py-maturin/Makefile                          | 505 ++++++-----
 devel/py-maturin/distinfo                          | 932 ++++++++++-----------
 ...l => patch-cargo-crates_xwin-0.2.14_Cargo.toml} |   6 +-
 3 files changed, 702 insertions(+), 741 deletions(-)
Comment 4 commit-hook freebsd_committer freebsd_triage 2023-08-10 08:26:12 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=44ddc3426e2f6f576dd0931fd2d2e78c7335f7bd

commit 44ddc3426e2f6f576dd0931fd2d2e78c7335f7bd
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2023-08-10 08:18:51 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2023-08-10 08:18:51 +0000

    devel/py-jellyfish: Prepare for py-maturin >= 1.x

    * Relax version requirements and add the additional directive
      "modulename" to point newer versions of py-maturin to the symbols of
      the binary module.  Otherwise it emits following warning and leads to
      runtime errors:

      [...]
      Warning: Couldn't find the symbol `PyInit_jellyfish` in the native
      library. Python will fail to import this module. If you're using pyo3,
      check that `#[pymodule]` uses `jellyfish` as module name
      [...]

    * No PORTREVISION bump as the package doesn't change.

    PR:             272570
    Approved by:    portmgr (buildfix blanket)

 devel/py-jellyfish/Makefile                   | 2 +-
 devel/py-jellyfish/files/patch-pyproject.toml | 7 ++++++-
 2 files changed, 7 insertions(+), 2 deletions(-)