Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Jun 2024 09:27:15 GMT
From:      Dave Cottlehuber <dch@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: e69c74d88822 - main - misc/py-aider-chat: update to 0.38.0
Message-ID:  <202406210927.45L9RFrI038670@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dch:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e69c74d8882275e9ce44f1f562fed7a9e6e9a880

commit e69c74d8882275e9ce44f1f562fed7a9e6e9a880
Author:     Dave Cottlehuber <dch@FreeBSD.org>
AuthorDate: 2024-06-21 09:24:08 +0000
Commit:     Dave Cottlehuber <dch@FreeBSD.org>
CommitDate: 2024-06-21 09:26:08 +0000

    misc/py-aider-chat: update to 0.38.0
    
    - https://github.com/paul-gauthier/aider/releases
    
    Sponsored by:   SkunkWerks, GmbH
---
 misc/py-aider-chat/Makefile                    |  2 +-
 misc/py-aider-chat/distinfo                    |  6 +++---
 misc/py-aider-chat/files/patch-aider_scrape.py | 22 ++++++++++++----------
 3 files changed, 16 insertions(+), 14 deletions(-)

diff --git a/misc/py-aider-chat/Makefile b/misc/py-aider-chat/Makefile
index ddde1d5e9b0f..03ed500e482b 100644
--- a/misc/py-aider-chat/Makefile
+++ b/misc/py-aider-chat/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	aider_chat
-DISTVERSION=	0.37.0
+DISTVERSION=	0.38.0
 CATEGORIES=	misc python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
diff --git a/misc/py-aider-chat/distinfo b/misc/py-aider-chat/distinfo
index d5eb5dff1970..e62a32e53bc8 100644
--- a/misc/py-aider-chat/distinfo
+++ b/misc/py-aider-chat/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1718226414
-SHA256 (aider_chat-0.37.0.tar.gz) = 8d5b2cfe5c4067aeaeb328acb9d5aaeb87d6b7db9ea6f8f504b9c1d085f2cbef
-SIZE (aider_chat-0.37.0.tar.gz) = 119368
+TIMESTAMP = 1718917111
+SHA256 (aider_chat-0.38.0.tar.gz) = 62b162bd709d4b96509cc3e3b4938a1c3c17490575d4f3694c57079680577b0c
+SIZE (aider_chat-0.38.0.tar.gz) = 119449
diff --git a/misc/py-aider-chat/files/patch-aider_scrape.py b/misc/py-aider-chat/files/patch-aider_scrape.py
index 5f93628d7a07..05973f8fbd0d 100644
--- a/misc/py-aider-chat/files/patch-aider_scrape.py
+++ b/misc/py-aider-chat/files/patch-aider_scrape.py
@@ -1,14 +1,14 @@
---- aider/scrape.py.orig	2024-05-13 18:19:39 UTC
+--- aider/scrape.py.orig	2024-06-17 03:58:03 UTC
 +++ aider/scrape.py
-@@ -6,7 +6,6 @@ from bs4 import BeautifulSoup
- import httpx
+@@ -7,7 +7,6 @@ from bs4 import BeautifulSoup
+ import playwright
  import pypandoc
  from bs4 import BeautifulSoup
 -from playwright.sync_api import sync_playwright
  
- from aider import __version__
- 
-@@ -42,14 +41,11 @@ class Scraper:
+ from aider import __version__, urls
+ from aider.dump import dump  # noqa: F401
+@@ -44,14 +43,11 @@ class Scraper:
          """
          Scrape a url and turn it into readable markdown.
  
@@ -25,7 +25,7 @@
  
          if not content:
              return
-@@ -62,49 +58,6 @@ class Scraper:
+@@ -64,51 +60,6 @@ class Scraper:
          return content
  
      # Internals...
@@ -46,7 +46,10 @@
 -            user_agent += " " + aider_user_agent
 -
 -            page = browser.new_page(user_agent=user_agent)
--            page.goto(url)
+-            try:
+-                page.goto(url, wait_until="networkidle", timeout=5000)
+-            except playwright._impl._errors.TimeoutError:
+-                pass
 -            content = page.content()
 -            browser.close()
 -
@@ -71,7 +74,6 @@
 -
 -        self.playwright_instructions_shown = True
 -        return PLAYWRIGHT_INFO
--
+ 
      def scrape_with_httpx(self, url):
          headers = {"User-Agent": f"Mozilla./5.0 ({aider_user_agent})"}
-         try:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202406210927.45L9RFrI038670>