Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 896944 - dev-vcs/breezy: needs upgrade to Python 3.11 (PythonCompatUpdate)
Summary: dev-vcs/breezy: needs upgrade to Python 3.11 (PythonCompatUpdate)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Arthur Zamarin
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 896398
  Show dependency tree
 
Reported: 2023-02-25 09:45 UTC by Michał Górny
Modified: 2023-07-10 20:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild for breezy 3.3.0 which works with python 3.11 (breezy-3.3.0.ebuild,3.60 KB, text/plain)
2023-06-26 14:08 UTC, Marcus Comstedt
Details
ebuild for fastbencode-0.2 (fastbencode-0.2.ebuild,418 bytes, text/plain)
2023-06-26 14:09 UTC, Marcus Comstedt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-02-25 09:45:11 UTC
This package does not support Python 3.11.  Please test it with Python 3.11 as a matter of urgency as the default will change in early June, as per message on gentoo-dev: https://archives.gentoo.org/gentoo-dev/message/abb5788ea81c7bbf4d40a2995b682eb9.  Please check the information provided in the tracker.  Ask in #gentoo-python on IRC if need any help.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-03 05:25:08 UTC
Ping. Python 3.11 is now default.
Comment 2 Marcus Comstedt 2023-06-26 12:48:44 UTC
breezy 3.2.1 does not build with Python 3.11.  Neither does 3.2.2.  A bump to 3.3.x is needed.

3.3.0 works fine with the following caveats:

1) RESTRICT="network-sandbox" is needed because cargo wants to download a crapton of rust crates.
2) There is a runtime dependency on fastbencode, which is not packaged in Gentoo.  I worked around this by installing it with pip in a venv, and then setting $PYTHONPATH to the venv:s site-packages
Comment 3 Marcus Comstedt 2023-06-26 14:08:11 UTC
I was able to avoid RESTRICT="network-sandbox" by applying pycargoebuild.
Also, packaging fastbencode was trivial with pypi.eclass.

I'm attaching the two ebuilds I used to get a working breezy-3.3.0
with python 3.11.
Comment 4 Marcus Comstedt 2023-06-26 14:08:59 UTC
Created attachment 864636 [details]
ebuild for breezy 3.3.0 which works with python 3.11
Comment 5 Marcus Comstedt 2023-06-26 14:09:24 UTC
Created attachment 864638 [details]
ebuild for fastbencode-0.2
Comment 6 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2023-06-26 16:58:13 UTC
(In reply to Marcus Comstedt from comment #3)
> I was able to avoid RESTRICT="network-sandbox" by applying pycargoebuild.
> Also, packaging fastbencode was trivial with pypi.eclass.

First of all, let me just straight up say "Thank you" for the work here. I haven't had the time to verify the ebuilds or the passage of tests (I will do it), but I wanted to thank you as soon as possible for the good work here!

> I'm attaching the two ebuilds I used to get a working breezy-3.3.0
> with python 3.11.

I'll look at it in the coming days.
Comment 7 Larry the Git Cow gentoo-dev 2023-07-07 18:36:00 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=460d3785d6172e9966beb9bfa5fee9a95d8ebe67

commit 460d3785d6172e9966beb9bfa5fee9a95d8ebe67
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2023-07-07 18:34:02 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2023-07-07 18:34:11 +0000

    dev-vcs/breezy: add 3.3.0, enable py3.11, restrict tests
    
    I've given up on adding tests. Yes, we have 29K out of 30K passed.
    The 1K failing is ERROR/FAIL, so some of them might be false
    positives, maybe something with portage sandbox, maybe with not CI
    environment - I've given up. I conclude that it is good enough for
    now.
    
    Closes: https://bugs.gentoo.org/896944
    Closes: https://bugs.gentoo.org/903674
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 dev-vcs/breezy/Manifest            |  37 ++++++++++++++
 dev-vcs/breezy/breezy-3.3.0.ebuild | 102 +++++++++++++++++++++++++++++++++++++
 2 files changed, 139 insertions(+)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0bfff51de96224263f980777e1edcd62f3e2703

commit f0bfff51de96224263f980777e1edcd62f3e2703
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2023-07-04 18:06:06 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2023-07-07 18:13:07 +0000

    dev-python/fastbencode: new package, add 0.2
    
    Dependency for dev-vcs/breezy
    
    Bug: https://bugs.gentoo.org/896944
    Co-authored-by: Marcus Comstedt <marcus@mc.pp.se>
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 dev-python/fastbencode/Manifest               |  1 +
 dev-python/fastbencode/fastbencode-0.2.ebuild | 26 ++++++++++++++++++++++++++
 dev-python/fastbencode/metadata.xml           | 12 ++++++++++++
 3 files changed, 39 insertions(+)
Comment 8 Larry the Git Cow gentoo-dev 2023-07-10 20:21:07 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd7b67735050fbbf004a6815196d1b8871a4d268

commit dd7b67735050fbbf004a6815196d1b8871a4d268
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2023-07-05 16:45:38 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2023-07-10 20:19:05 +0000

    dev-python/merge3: new package, add 0.0.13
    
    Dependency for dev-vcs/breezy
    
    Bug: https://bugs.gentoo.org/896944
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 dev-python/merge3/Manifest             |  1 +
 dev-python/merge3/merge3-0.0.13.ebuild | 22 ++++++++++++++++++++++
 dev-python/merge3/metadata.xml         | 13 +++++++++++++
 3 files changed, 36 insertions(+)