Re: certbot missing module pkg_resources

2023-06-05 Thread giovanni

On 6/5/23 13:40, Stuart Henderson wrote:

On 2023/06/05 09:11, Giovanni Bechis wrote:

Index: Makefile.inc
===
RCS file: /cvs/ports/security/letsencrypt/Makefile.inc,v
retrieving revision 1.77
diff -u -p -r1.77 Makefile.inc
--- Makefile.inc9 Mar 2023 06:40:47 -   1.77
+++ Makefile.inc5 Jun 2023 07:09:11 -
@@ -4,6 +4,7 @@ MODPY_PI?=  Yes
  MODPY_PYBUILD?=   setuptools
  
  MODPY_EGG_VERSION?=	2.4.0

+REVISION?= 0


wrong file, this should be in client/Makefile


[...]

Index: Makefile
===
RCS file: /cvs/ports/security/letsencrypt/client/Makefile,v
retrieving revision 1.37
diff -u -p -r1.37 Makefile
--- Makefile25 Nov 2022 22:11:48 -  1.37
+++ Makefile5 Jun 2023 11:39:28 -
@@ -3,6 +3,7 @@ COMMENT=client for certificate authorit
  HOMEPAGE= https://certbot.eff.org/
  
  DISTNAME=	certbot-${MODPY_EGG_VERSION}

+REVISION=  0
  
  RUN_DEPENDS=	security/letsencrypt/py-acme${MODPY_FLAVOR}=${MODPY_EGG_VERSION} \

devel/py-configargparse${MODPY_FLAVOR} \
@@ -14,6 +15,7 @@ RUN_DEPENDS=  security/letsencrypt/py-acm
textproc/py-pyRFC3339${MODPY_FLAVOR} \
devel/py-zopecomponent${MODPY_FLAVOR} \
devel/py-zopeinterface${MODPY_FLAVOR}
+RUN_DEPENDS+=  devel/py-setuptools${MODPY_FLAVOR}
  MODPY_PYTEST= Yes
  
  do-configure:



ok giovanni@ then.
 Thanks
  Giovanni


Re: certbot missing module pkg_resources

2023-06-05 Thread Stuart Henderson
On 2023/06/05 09:11, Giovanni Bechis wrote:
> Index: Makefile.inc
> ===
> RCS file: /cvs/ports/security/letsencrypt/Makefile.inc,v
> retrieving revision 1.77
> diff -u -p -r1.77 Makefile.inc
> --- Makefile.inc  9 Mar 2023 06:40:47 -   1.77
> +++ Makefile.inc  5 Jun 2023 07:09:11 -
> @@ -4,6 +4,7 @@ MODPY_PI?=Yes
>  MODPY_PYBUILD?=  setuptools
>  
>  MODPY_EGG_VERSION?=  2.4.0
> +REVISION?=   0

wrong file, this should be in client/Makefile

> Index: client/Makefile
> ===
> RCS file: /cvs/ports/security/letsencrypt/client/Makefile,v
> retrieving revision 1.37
> diff -u -p -r1.37 Makefile
> --- client/Makefile   25 Nov 2022 22:11:48 -  1.37
> +++ client/Makefile   5 Jun 2023 07:09:11 -
> @@ -13,7 +13,8 @@ RUN_DEPENDS=security/letsencrypt/py-acm
>   devel/py-parsedatetime${MODPY_FLAVOR} \
>   textproc/py-pyRFC3339${MODPY_FLAVOR} \
>   devel/py-zopecomponent${MODPY_FLAVOR} \
> - devel/py-zopeinterface${MODPY_FLAVOR}
> + devel/py-zopeinterface${MODPY_FLAVOR} \
> + devel/py-setuptools${MODPY_FLAVOR}
>  MODPY_PYTEST=Yes

please keep it the same as in -current (I have separated it out as
a reminder to me to check if they've fixed this at update time)

i.e.

Index: Makefile
===
RCS file: /cvs/ports/security/letsencrypt/client/Makefile,v
retrieving revision 1.37
diff -u -p -r1.37 Makefile
--- Makefile25 Nov 2022 22:11:48 -  1.37
+++ Makefile5 Jun 2023 11:39:28 -
@@ -3,6 +3,7 @@ COMMENT=client for certificate authorit
 HOMEPAGE=  https://certbot.eff.org/
 
 DISTNAME=  certbot-${MODPY_EGG_VERSION}
+REVISION=  0
 
 RUN_DEPENDS=   
security/letsencrypt/py-acme${MODPY_FLAVOR}=${MODPY_EGG_VERSION} \
devel/py-configargparse${MODPY_FLAVOR} \
@@ -14,6 +15,7 @@ RUN_DEPENDS=  security/letsencrypt/py-acm
textproc/py-pyRFC3339${MODPY_FLAVOR} \
devel/py-zopecomponent${MODPY_FLAVOR} \
devel/py-zopeinterface${MODPY_FLAVOR}
+RUN_DEPENDS+=  devel/py-setuptools${MODPY_FLAVOR}
 MODPY_PYTEST=  Yes
 
 do-configure:



Re: certbot missing module pkg_resources

2023-06-05 Thread A Tammy


On 6/5/23 03:11, Giovanni Bechis wrote:
> On Wed, May 31, 2023 at 05:13:40PM -0400, A Tammy wrote:
>> On 5/31/23 16:06, Adriano Barbosa wrote:
>>> Hi.
>>> I'm getting the error below while trying to run certbot from ports on
>>> 7.3. It runs after installing py3-setuptools. Should it be added in
>>> RUN_DEPENDS?
>> From https://setuptools.pypa.io/en/latest/pkg_resources.html
>>
>>> Use of |pkg_resources| is deprecated in favor of |importlib.resources|
>> ,
>> |importlib.metadata|
>> 
>> and their backports (importlib_resources
>> , importlib_metadata
>> ). Users should refrain
>> from new usage of |pkg_resources| and should work to port to
>> importlib-based solutions.
>>
>> Someone with enough enthusiasm should tell upstream.
>>
>> OK aisha@ to add RUN_DEPENDS.
>>
> ok for this diff for 7.3 ?
>  Cheers
>   Giovanni
>
> Index: Makefile.inc
> ===
> RCS file: /cvs/ports/security/letsencrypt/Makefile.inc,v
> retrieving revision 1.77
> diff -u -p -r1.77 Makefile.inc
> --- Makefile.inc  9 Mar 2023 06:40:47 -   1.77
> +++ Makefile.inc  5 Jun 2023 07:09:11 -
> @@ -4,6 +4,7 @@ MODPY_PI?=Yes
>  MODPY_PYBUILD?=  setuptools
>  
>  MODPY_EGG_VERSION?=  2.4.0
> +REVISION?=   0
>  
>  MODULES?=lang/python
>  
> Index: client/Makefile
> ===
> RCS file: /cvs/ports/security/letsencrypt/client/Makefile,v
> retrieving revision 1.37
> diff -u -p -r1.37 Makefile
> --- client/Makefile   25 Nov 2022 22:11:48 -  1.37
> +++ client/Makefile   5 Jun 2023 07:09:11 -
> @@ -13,7 +13,8 @@ RUN_DEPENDS=security/letsencrypt/py-acm
>   devel/py-parsedatetime${MODPY_FLAVOR} \
>   textproc/py-pyRFC3339${MODPY_FLAVOR} \
>   devel/py-zopecomponent${MODPY_FLAVOR} \
> - devel/py-zopeinterface${MODPY_FLAVOR}
> + devel/py-zopeinterface${MODPY_FLAVOR} \
> + devel/py-setuptools${MODPY_FLAVOR}

nit, I know its not always followed but could you sort them alphabetically?

in any case, OK aisha@

>  MODPY_PYTEST=Yes
>  
>  do-configure:



Re: certbot missing module pkg_resources

2023-06-05 Thread Giovanni Bechis
On Wed, May 31, 2023 at 05:13:40PM -0400, A Tammy wrote:
> 
> On 5/31/23 16:06, Adriano Barbosa wrote:
> > Hi.
> > I'm getting the error below while trying to run certbot from ports on
> > 7.3. It runs after installing py3-setuptools. Should it be added in
> > RUN_DEPENDS?
> 
> From https://setuptools.pypa.io/en/latest/pkg_resources.html
> 
> > Use of |pkg_resources| is deprecated in favor of |importlib.resources|
> ,
> |importlib.metadata|
> 
> and their backports (importlib_resources
> , importlib_metadata
> ). Users should refrain
> from new usage of |pkg_resources| and should work to port to
> importlib-based solutions.
> 
> Someone with enough enthusiasm should tell upstream.
> 
> OK aisha@ to add RUN_DEPENDS.
> 
ok for this diff for 7.3 ?
 Cheers
  Giovanni

Index: Makefile.inc
===
RCS file: /cvs/ports/security/letsencrypt/Makefile.inc,v
retrieving revision 1.77
diff -u -p -r1.77 Makefile.inc
--- Makefile.inc9 Mar 2023 06:40:47 -   1.77
+++ Makefile.inc5 Jun 2023 07:09:11 -
@@ -4,6 +4,7 @@ MODPY_PI?=  Yes
 MODPY_PYBUILD?=setuptools
 
 MODPY_EGG_VERSION?=2.4.0
+REVISION?= 0
 
 MODULES?=  lang/python
 
Index: client/Makefile
===
RCS file: /cvs/ports/security/letsencrypt/client/Makefile,v
retrieving revision 1.37
diff -u -p -r1.37 Makefile
--- client/Makefile 25 Nov 2022 22:11:48 -  1.37
+++ client/Makefile 5 Jun 2023 07:09:11 -
@@ -13,7 +13,8 @@ RUN_DEPENDS=  security/letsencrypt/py-acm
devel/py-parsedatetime${MODPY_FLAVOR} \
textproc/py-pyRFC3339${MODPY_FLAVOR} \
devel/py-zopecomponent${MODPY_FLAVOR} \
-   devel/py-zopeinterface${MODPY_FLAVOR}
+   devel/py-zopeinterface${MODPY_FLAVOR} \
+   devel/py-setuptools${MODPY_FLAVOR}
 MODPY_PYTEST=  Yes
 
 do-configure:


Re: certbot missing module pkg_resources

2023-05-31 Thread A Tammy


On 5/31/23 16:06, Adriano Barbosa wrote:
> Hi.
> I'm getting the error below while trying to run certbot from ports on
> 7.3. It runs after installing py3-setuptools. Should it be added in
> RUN_DEPENDS?

>From https://setuptools.pypa.io/en/latest/pkg_resources.html

> Use of |pkg_resources| is deprecated in favor of |importlib.resources|
,
|importlib.metadata|

and their backports (importlib_resources
, importlib_metadata
). Users should refrain
from new usage of |pkg_resources| and should work to port to
importlib-based solutions.

Someone with enough enthusiasm should tell upstream.

OK aisha@ to add RUN_DEPENDS.

> Obrigado!
> --
> Adriano
>
>
> $ certbot --version
> Traceback (most recent call last):
>   File "/usr/local/bin/certbot", line 5, in 
> from certbot.main import main
>   File "/usr/local/lib/python3.10/site-packages/certbot/main.py", line 6, in 
> 
> from certbot._internal import main as internal_main
>   File "/usr/local/lib/python3.10/site-packages/certbot/_internal/main.py", 
> line 28, in 
> from certbot import configuration
>   File "/usr/local/lib/python3.10/site-packages/certbot/configuration.py", 
> line 11, in 
> from certbot import util
>   File "/usr/local/lib/python3.10/site-packages/certbot/util.py", line 26, in 
> 
> from certbot._internal import constants
>   File 
> "/usr/local/lib/python3.10/site-packages/certbot/_internal/constants.py", 
> line 6, in 
> import pkg_resources
> ModuleNotFoundError: No module named 'pkg_resources'
>


certbot missing module pkg_resources

2023-05-31 Thread Adriano Barbosa
Hi.
I'm getting the error below while trying to run certbot from ports on
7.3. It runs after installing py3-setuptools. Should it be added in
RUN_DEPENDS?

Obrigado!
--
Adriano


$ certbot --version
Traceback (most recent call last):
  File "/usr/local/bin/certbot", line 5, in 
from certbot.main import main
  File "/usr/local/lib/python3.10/site-packages/certbot/main.py", line 6, in 

from certbot._internal import main as internal_main
  File "/usr/local/lib/python3.10/site-packages/certbot/_internal/main.py", 
line 28, in 
from certbot import configuration
  File "/usr/local/lib/python3.10/site-packages/certbot/configuration.py", line 
11, in 
from certbot import util
  File "/usr/local/lib/python3.10/site-packages/certbot/util.py", line 26, in 

from certbot._internal import constants
  File 
"/usr/local/lib/python3.10/site-packages/certbot/_internal/constants.py", line 
6, in 
import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'