From nobody Fri Mar 25 13:51:05 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 777361A34B23; Fri, 25 Mar 2022 13:51:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KQ3Qg4kN6z3h5l; Fri, 25 Mar 2022 13:51:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648216268; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wWM1LvOMLojKCRRa5iKksql3rfkNivTrG5FvZBj6a04=; b=ZOvC2APUuLwU+sU/MdJKt4pHAZCJfxleYtlxfptk5UuEhrbRx8CFzV9Qi0VuEQM6JPMVbK NTFqoD9ZeMRCJGcJbbLX8BzExyNZxkkQZTNNHN/k2pW4giYs7kuUk1wd3aQ/NFinr8i5kq Rr6J8dTz40rZz9mdV9XwzgfZQMpnJpT6p5AzaUt537QmtoY5mDCndyljwkpuK8n+SyBG1W x29BnifqQLCyH63XULgKJ3umqUHmiCvRnQywfi85EDnGZSjjVRhsAgeqXwRIP3Z6x+qveg PT33Tn6/ZKbDf7EhZKRZprnY2VdVe2llEEgOZ9CJTEKBgPXe9Q0cynMeo+fZzg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id EA6775554; Fri, 25 Mar 2022 13:51:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 22PDp5U7037819; Fri, 25 Mar 2022 13:51:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22PDp561037818; Fri, 25 Mar 2022 13:51:05 GMT (envelope-from git) Date: Fri, 25 Mar 2022 13:51:05 GMT Message-Id: <202203251351.22PDp561037818@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 7b1e395e9ab8 - main - textproc/py-reverend: Fix build with setuptools 58.0.0+ List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7b1e395e9ab83e27fcd559a399d8586fb879bdb3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648216268; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wWM1LvOMLojKCRRa5iKksql3rfkNivTrG5FvZBj6a04=; b=jHyyLiuVkWsujUYDEn8lmAW0DpnYkt5ofxhbNfy0Rskbn5iLA8w6LQmqmVYVXhtVCQq6ZB IWixDT7cm8dqt1GzW4ezGvn04IFM43nnMLks4FoGzu1C0G+ugvlPJ5oD99BfaYqzjs03cK TdqrtVzGolEbsv6O+2gITzHMcHt5LKDWv6uJVXxAsoWVktgV1eXqS4QosgPOQJLe7IlpZB ZdCgfys6lwQPXzgy50iZOiNYvrC+0f0ngExr8dKBlLtIG5MFxOfoK+GZEVIRDEFcsenWgr 7jcSimyFwCkV1x8Yrz/W2X3n3kX+eYeWyUeaFMZTLjZCx5cHwlbaHS0Vj0OeRw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648216268; a=rsa-sha256; cv=none; b=cFhGTNg5BDHG0/GVObvLnFjlhIk1szAhMPM0/R7hB72BGiCA0o/LGZnbdXXW+j1vhSE13T Bg3AnKSLUoR93G5MlmGXJVEfie0g0I2J8BcBsAATMBTfgfZVqKgtTvCS6zVazeNVfIwxWW Rfwwtx8/186vSqOZYFO3r9LdST0ka/nILhLAHkoB/YMJZ7OcPy2EpYFqLcGtEH4JxX9Y0r kYbwMpyYvKErTwHne40gAVtD/u29mHjQrpEPfG7Di1Uv209E4t24FE3X1YYL4p/OYx3DU+ nZk/tyBHpadyWSNQ8K5qaUsDabtjgtFJJ/cP872padH83HdZ0aCOHuymYShc5Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=7b1e395e9ab83e27fcd559a399d8586fb879bdb3 commit 7b1e395e9ab83e27fcd559a399d8586fb879bdb3 Author: Po-Chuan Hsieh AuthorDate: 2022-03-25 13:34:45 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-03-25 13:38:23 +0000 textproc/py-reverend: Fix build with setuptools 58.0.0+ With hat: python --- textproc/py-reverend/files/patch-2to3 | 93 +++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) diff --git a/textproc/py-reverend/files/patch-2to3 b/textproc/py-reverend/files/patch-2to3 new file mode 100644 index 000000000000..6015f1f691ca --- /dev/null +++ b/textproc/py-reverend/files/patch-2to3 @@ -0,0 +1,93 @@ +--- reverend/ui/trainer.py.orig 2004-12-01 17:49:04 UTC ++++ reverend/ui/trainer.py +@@ -4,15 +4,15 @@ + # License as published by the Free Software Foundation. + # + +-from Tkinter import * +-import tkFileDialog +-import tkSimpleDialog +-import tkMessageBox ++from tkinter import * ++import tkinter.filedialog ++import tkinter.simpledialog ++import tkinter.messagebox + + import os + +-from util import Command, StatusBar, Notebook +-from tester import TestView ++from .util import Command, StatusBar, Notebook ++from .tester import TestView + + class PoolView(Frame): + def __init__(self, master=None, guesser=None, app=None): +@@ -79,20 +79,20 @@ class PoolView(Frame): + self.model[name]=(pool, uTok, tTok, train) + + def refresh(self): +- for pool, ut, tt, train in self.model.values(): ++ for pool, ut, tt, train in list(self.model.values()): + ut.set(len(pool)) + tt.set(pool.tokenCount) + train.set(pool.trainCount) + + def save(self): +- path = tkFileDialog.asksaveasfilename() ++ path = tkinter.filedialog.asksaveasfilename() + if not path: + return + self.guesser.save(path) + self.app.dirty = False + + def load(self): +- path = tkFileDialog.askopenfilename() ++ path = tkinter.filedialog.askopenfilename() + if not path: + return + self.guesser.load(path) +@@ -100,11 +100,11 @@ class PoolView(Frame): + self.app.dirty = False + + def newPool(self): +- p = tkSimpleDialog.askstring('Create Pool', 'Name for new pool?') ++ p = tkinter.simpledialog.askstring('Create Pool', 'Name for new pool?') + if not p: + return + if p in self.guesser.pools: +- tkMessageBox.showwarning('Bad pool name!', 'Pool %s already exists.' % p) ++ tkinter.messagebox.showwarning('Bad pool name!', 'Pool %s already exists.' % p) + self.guesser.newPool(p) + self.reload() + self.app.poolAdded() +@@ -193,7 +193,7 @@ class Trainer(Frame): + + + def loadCorpus(self): +- path = tkFileDialog.askdirectory() ++ path = tkinter.filedialog.askdirectory() + if not path: + return + self.loadFileList(path) +@@ -203,10 +203,10 @@ class Trainer(Frame): + def bulkTest(self): + dirs = [] + for pool in self.guesser.poolNames(): +- path = tkFileDialog.askdirectory() ++ path = tkinter.filedialog.askdirectory() + dirs.append((pool, path)) + for pool, path in dirs: +- print pool, path ++ print(pool, path) + + + def displayList(self): +@@ -253,7 +253,7 @@ class Trainer(Frame): + + def quitNow(self): + if self.dirty: +- if tkMessageBox.askyesno("You have unsaved changes!", "Quit without saving?"): ++ if tkinter.messagebox.askyesno("You have unsaved changes!", "Quit without saving?"): + self.quit() + self.quit() +