On Sat, Apr 2, 2022 at 1:52 PM Yasuhito FUTATSUKI
<futat...@yf.bsdclub.org> wrote:
>
> On 2022/04/02 22:39, Mark Phippard wrote:
> > The releases are posted for signing. The process all went well except
> > for one part. When I ran the script to create the tag it fails with
> > this error:
> >
> > INFO:root:Creating tag for 1.14.2
> > INFO:root:Bumping version numbers on the branch
> > Traceback (most recent call last):
> > File "/opt/trunk/tools/dist/release.py", line 1916, in <module>
> > main()
> > File "/opt/trunk/tools/dist/release.py", line 1912, in main
> > args.func(args)
> > File "/opt/trunk/tools/dist/release.py", line 1134, in
> > create_tag_and_bump_versions
> > bump_versions_on_branch(args)
> > File "/opt/trunk/tools/dist/release.py", line 1106, in 
> > bump_versions_on_branch
> > svn_version_h = file_object_for('subversion/include/svn_version.h')
> > File "/opt/trunk/tools/dist/release.py", line 1099, in file_object_for
> > fd = tempfile.NamedTemporaryFile(mode='w+', encoding='UTF-8')
> > TypeError: NamedTemporaryFile() got an unexpected keyword argument 
> > 'encoding'
> >
> > I believe what has not happened is the updating of the 1.10.x and
> > 1.14.x branches to prepare for the next release. I will try to look
> > through old commits to see what was supposed to happen and will do it
> > manually.
> >
> > If someone can fix the problem for the future that would be great.
> > Kind of guessing it could be that the script has to run with Python 3
> > now or something?
>
> Yes, the function tempfile.NamedTemporaryFile() does not have keyword
> argument 'encoding' in Python 2.7, and has in Python 3.
> So tools/dist/release.py in trunk no longer supports Python 2 since r1877953.
>
> Here is a patch (not tested) to support Python 2.7, but I don't think
> it has worth.

I did this release using 2.7 because I assumed that I needed it for
1.10.8. Now that I have something that works I will probably move it
to Debian Bullseye when we get to the 1.15 release process.

I am not sure if we will need to make many more 1.10.x releases but if
we do then the patch might be worth applying.

I manually completed the step that was broken so I cannot try it now.

Thanks

Mark

Reply via email to