* [PATCH] btrfs-progs: libbtrfsutil: fix the CI build failure which requires manual intervention
@ 2024-09-20 0:59 Qu Wenruo
2024-09-20 4:34 ` Qu Wenruo
0 siblings, 1 reply; 4+ messages in thread
From: Qu Wenruo @ 2024-09-20 0:59 UTC (permalink / raw)
To: linux-btrfs
Currently the libbtrfsutil python binding requires `pypi-README.md` as a
temporary file to act as the longer description.
But it requires the build to be run twice to generate the temporary
file, preventing CI to properly build the package.
Fix it by removing the exception raising, after copy_readme().
Signed-off-by: Qu Wenruo <wqu@suse.com>
---
libbtrfsutil/python/setup.py | 2 --
1 file changed, 2 deletions(-)
diff --git a/libbtrfsutil/python/setup.py b/libbtrfsutil/python/setup.py
index d4de81dbc1f2..fe9fdf8a52b5 100755
--- a/libbtrfsutil/python/setup.py
+++ b/libbtrfsutil/python/setup.py
@@ -69,10 +69,8 @@ void add_module_constants(PyObject *m)
def read_readme():
- # FIXME: hackish, needs to be run twice to work
if not os.path.exists('pypi-README.md'):
copy_readme()
- raise Exception("Copied ../README.md to pypi-README.md, run again")
with open('pypi-README.md', 'r') as f:
desc = f.read()
return desc
--
2.46.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] btrfs-progs: libbtrfsutil: fix the CI build failure which requires manual intervention
2024-09-20 0:59 [PATCH] btrfs-progs: libbtrfsutil: fix the CI build failure which requires manual intervention Qu Wenruo
@ 2024-09-20 4:34 ` Qu Wenruo
2024-09-20 14:28 ` David Sterba
0 siblings, 1 reply; 4+ messages in thread
From: Qu Wenruo @ 2024-09-20 4:34 UTC (permalink / raw)
To: linux-btrfs
在 2024/9/20 10:29, Qu Wenruo 写道:
> Currently the libbtrfsutil python binding requires `pypi-README.md` as a
> temporary file to act as the longer description.
>
> But it requires the build to be run twice to generate the temporary
> file, preventing CI to properly build the package.
>
> Fix it by removing the exception raising, after copy_readme().
>
> Signed-off-by: Qu Wenruo <wqu@suse.com>
Please discard this one.
The offending patch shouldn't even be pushed to devel, introducing too
much hassles but doesn't even bother to resolve the self-introduced problem.
Will send a proper patch for the long description, not building new
fixes for such cursed solution.
Thanks,
Qu
> ---
> libbtrfsutil/python/setup.py | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/libbtrfsutil/python/setup.py b/libbtrfsutil/python/setup.py
> index d4de81dbc1f2..fe9fdf8a52b5 100755
> --- a/libbtrfsutil/python/setup.py
> +++ b/libbtrfsutil/python/setup.py
> @@ -69,10 +69,8 @@ void add_module_constants(PyObject *m)
>
>
> def read_readme():
> - # FIXME: hackish, needs to be run twice to work
> if not os.path.exists('pypi-README.md'):
> copy_readme()
> - raise Exception("Copied ../README.md to pypi-README.md, run again")
> with open('pypi-README.md', 'r') as f:
> desc = f.read()
> return desc
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] btrfs-progs: libbtrfsutil: fix the CI build failure which requires manual intervention
2024-09-20 4:34 ` Qu Wenruo
@ 2024-09-20 14:28 ` David Sterba
2024-09-20 21:52 ` Qu Wenruo
0 siblings, 1 reply; 4+ messages in thread
From: David Sterba @ 2024-09-20 14:28 UTC (permalink / raw)
To: Qu Wenruo; +Cc: linux-btrfs
On Fri, Sep 20, 2024 at 02:04:50PM +0930, Qu Wenruo wrote:
>
>
> 在 2024/9/20 10:29, Qu Wenruo 写道:
> > Currently the libbtrfsutil python binding requires `pypi-README.md` as a
> > temporary file to act as the longer description.
> >
> > But it requires the build to be run twice to generate the temporary
> > file, preventing CI to properly build the package.
> >
> > Fix it by removing the exception raising, after copy_readme().
> >
> > Signed-off-by: Qu Wenruo <wqu@suse.com>
>
> Please discard this one.
>
> The offending patch shouldn't even be pushed to devel, introducing too
> much hassles but doesn't even bother to resolve the self-introduced problem.
I've removed the patch from devel again, the long description is for
pypi.org so not critical right now, the versions can't be resubmitted so
next opportunity is 6.11.1. Until then some solution will emerge.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] btrfs-progs: libbtrfsutil: fix the CI build failure which requires manual intervention
2024-09-20 14:28 ` David Sterba
@ 2024-09-20 21:52 ` Qu Wenruo
0 siblings, 0 replies; 4+ messages in thread
From: Qu Wenruo @ 2024-09-20 21:52 UTC (permalink / raw)
To: dsterba, Qu Wenruo; +Cc: linux-btrfs
在 2024/9/20 23:58, David Sterba 写道:
> On Fri, Sep 20, 2024 at 02:04:50PM +0930, Qu Wenruo wrote:
>>
>>
>> 在 2024/9/20 10:29, Qu Wenruo 写道:
>>> Currently the libbtrfsutil python binding requires `pypi-README.md` as a
>>> temporary file to act as the longer description.
>>>
>>> But it requires the build to be run twice to generate the temporary
>>> file, preventing CI to properly build the package.
>>>
>>> Fix it by removing the exception raising, after copy_readme().
>>>
>>> Signed-off-by: Qu Wenruo <wqu@suse.com>
>>
>> Please discard this one.
>>
>> The offending patch shouldn't even be pushed to devel, introducing too
>> much hassles but doesn't even bother to resolve the self-introduced problem.
>
> I've removed the patch from devel again, the long description is for
> pypi.org so not critical right now, the versions can't be resubmitted so
> next opportunity is 6.11.1. Until then some solution will emerge.
>
I'll rebase the newer fix to a standalone patch to do the long
description correctly.
Thanks,
Qu
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-09-20 21:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-20 0:59 [PATCH] btrfs-progs: libbtrfsutil: fix the CI build failure which requires manual intervention Qu Wenruo
2024-09-20 4:34 ` Qu Wenruo
2024-09-20 14:28 ` David Sterba
2024-09-20 21:52 ` Qu Wenruo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox