From nobody Thu Jul 04 21:45:21 2024 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 4WFVYt1YTvz5Ps5k; Thu, 04 Jul 2024 21:45:22 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WFVYt0yrdz4RJC; Thu, 4 Jul 2024 21:45:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720129522; 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=arWBIf0co8vOF39AbrPYL+//Trxi1prt5hMOylECS0g=; b=PAltLIWO3mBtydfcRdu6aagh7Uz2udgvU35iQKY+IP/ONI3Myxq5LAI0Kb9aMCPb2XkFYg Dg6mS3Y7kAFj2LTQg8tf4hqujAP3WhHhOH2gqbib1fbrc4zoWQGKMoAQl+uqTgLiDWatRs bJZWwjUii4oWnfF5A2ymdMwi5U2IP/fvxqfKnf581FDX/4BMUG7TWNRiqloKaaTT3PXPXC E1k298LV/quaYtbqjocDjGKO4Di4GA28UWvswpUO683dcXUTRie2nrOURtqPjHstpD589v fBXw4Pw700RWdh4lE/2saFe6cTedus/EsmI3WB3JcmpVjFap97wcGBa1+h3fLA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720129522; a=rsa-sha256; cv=none; b=JNzM35QsgrzKxCeM9YTfwyOgfHFjMPc1r76w5cb7EdPvmecaqxsHUzL6ptGjTNeBBGRrsq +vtSwxMI4WDcpJ5Th1PlU7Gp4vE78KWLOLyO+zS1OtrG4kmRCGMjN6kpeVx1ZOBijFbX51 Bf3N1RGwBcpm4nsTqhDBqJdOj2TgsaO+GfNgsesrlXFsfcIGm60k+w3lZDLin8tnj6Qs2a wUVZ66F3CPhtFmfNPxJkw5NdIYEXhPV8fGPcAwXiqqebWPmf+6xqlmc26HNu2AT9EVzd74 cUHPQ0rFmb4CPboRtV0Ks4gDPF0QJ14RiAzh6jKxbvDd63y2OL183XrGnpYcZw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720129522; 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=arWBIf0co8vOF39AbrPYL+//Trxi1prt5hMOylECS0g=; b=mY7KKZ27iZ561aPtrLqUo3t8iYVNi/5CbqRVGJD9owxGJtD7MSwrZhOAW1Wi5Gck14fe7Y CizWOq5F1XIv8RHHk7idpJsNIrZDFHP7yVOrohwYm9HiyfBGtSAZB7AYh51Q4exJXpjflz dlq0WI57aWBuZ1gJkRR6nlmxxuWrFptFtxu6uRZ3etr3HzDpLK9E/5RMQDsiEQbYxepq1R 6InNOljyicWebcu7JowYfdcrY347aeUWnZsIKDaTnB0axNGOq5Fh5x+ANhMLUEA09ARQaK zFWad6BzITER6EbQ4uSdV+uoVOyB4pufrUaYw1VLmDokjLB1VMUbV0oVr7bpFQ== 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 4WFVYt0SDCzVl1; Thu, 4 Jul 2024 21:45:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 464LjLGF027082; Thu, 4 Jul 2024 21:45:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 464LjLsH027079; Thu, 4 Jul 2024 21:45:21 GMT (envelope-from git) Date: Thu, 4 Jul 2024 21:45:21 GMT Message-Id: <202407042145.464LjLsH027079@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dave Cottlehuber Subject: git: 1dc4baafd80e - main - misc/py-aider-chat: update to 0.42.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: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dch X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1dc4baafd80eede6dc8b094f35155f41e01cb40b Auto-Submitted: auto-generated The branch main has been updated by dch: URL: https://cgit.FreeBSD.org/ports/commit/?id=1dc4baafd80eede6dc8b094f35155f41e01cb40b commit 1dc4baafd80eede6dc8b094f35155f41e01cb40b Author: Dave Cottlehuber AuthorDate: 2024-07-04 08:47:35 +0000 Commit: Dave Cottlehuber CommitDate: 2024-07-04 21:44:23 +0000 misc/py-aider-chat: update to 0.42.0 - https://github.com/paul-gauthier/aider/blob/main/HISTORY.md --- misc/py-aider-chat/Makefile | 11 ++++----- misc/py-aider-chat/distinfo | 6 ++--- misc/py-aider-chat/files/patch-aider_scrape.py | 31 +++++++++++++------------- 3 files changed, 25 insertions(+), 23 deletions(-) diff --git a/misc/py-aider-chat/Makefile b/misc/py-aider-chat/Makefile index 03ed500e482b..455d0aa783a9 100644 --- a/misc/py-aider-chat/Makefile +++ b/misc/py-aider-chat/Makefile @@ -1,5 +1,5 @@ PORTNAME= aider_chat -DISTVERSION= 0.38.0 +DISTVERSION= 0.42.0 CATEGORIES= misc python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -44,10 +44,11 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}arrow>0:devel/py-arrow@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}streamlit>0:www/py-streamlit@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}tiktoken>=0.7.0:textproc/py-tiktoken@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}tokenizers>0:textproc/py-tokenizers@${PY_FLAVOR} -# missing -# playwright -# pypandoc -# google-generativeai +# missing dependencies +# playwright its a chromium browser automation library +# watchdog is pulled in by streamlit +# google-generativeai is not a popular aider dependency + USES= python shebangfix USE_PYTHON= autoplist concurrent distutils diff --git a/misc/py-aider-chat/distinfo b/misc/py-aider-chat/distinfo index e62a32e53bc8..5947b8872afc 100644 --- a/misc/py-aider-chat/distinfo +++ b/misc/py-aider-chat/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1718917111 -SHA256 (aider_chat-0.38.0.tar.gz) = 62b162bd709d4b96509cc3e3b4938a1c3c17490575d4f3694c57079680577b0c -SIZE (aider_chat-0.38.0.tar.gz) = 119449 +TIMESTAMP = 1720106776 +SHA256 (aider_chat-0.42.0.tar.gz) = e64a63befcadea2500485ed7c60f91495e31d3a33c9955bd18fe9901c0d0f31e +SIZE (aider_chat-0.42.0.tar.gz) = 124553 diff --git a/misc/py-aider-chat/files/patch-aider_scrape.py b/misc/py-aider-chat/files/patch-aider_scrape.py index 05973f8fbd0d..6ba15a5ce575 100644 --- a/misc/py-aider-chat/files/patch-aider_scrape.py +++ b/misc/py-aider-chat/files/patch-aider_scrape.py @@ -1,21 +1,23 @@ ---- aider/scrape.py.orig 2024-06-17 03:58:03 UTC +--- aider/scrape.py.orig 2024-07-04 14:23:32 UTC +++ aider/scrape.py -@@ -7,7 +7,6 @@ from bs4 import BeautifulSoup - import playwright +@@ -3,9 +3,7 @@ import sys + import re + import sys + +-import playwright import pypandoc - from bs4 import BeautifulSoup -from playwright.sync_api import sync_playwright from aider import __version__, urls from aider.dump import dump # noqa: F401 -@@ -44,14 +43,11 @@ class Scraper: +@@ -42,14 +40,10 @@ class Scraper: """ Scrape a url and turn it into readable markdown. - `url` - the URLto scrape. + `url` - the URL to scrape. """ - self.try_playwright() +- self.try_playwright() - if self.playwright_available: - content = self.scrape_with_playwright(url) @@ -25,11 +27,10 @@ if not content: return -@@ -64,51 +60,6 @@ class Scraper: - return content +@@ -62,50 +56,8 @@ class Scraper: # Internals... -- def scrape_with_playwright(self, url): + def scrape_with_playwright(self, url): - with sync_playwright() as p: - try: - browser = p.chromium.launch() @@ -59,16 +60,16 @@ - if self.playwright_available is not None: - return - -- with sync_playwright() as p: -- try: +- try: +- with sync_playwright() as p: - p.chromium.launch() - self.playwright_available = True -- except Exception: -- self.playwright_available = False +- except Exception: + self.playwright_available = False - - def get_playwright_instructions(self): - if self.playwright_available in (True, None): -- return + return - if self.playwright_instructions_shown: - return - @@ -76,4 +77,4 @@ - return PLAYWRIGHT_INFO def scrape_with_httpx(self, url): - headers = {"User-Agent": f"Mozilla./5.0 ({aider_user_agent})"} + import httpx