azure-cli port

2018-11-07 Thread Danilo G. Baio
Hi Python team.

I'm starting to work on a new port of azure-cli.

These are the new dependent ports that I have until now:

  sysutils/py-azure-cli-core
-> devel/py-azure-cli-telemetry
  -> devel/py-portalocker
-> devel/py-azure-mgmt-resource
-> textproc/py-antlr4-python2-runtime  # Python 2
-> textproc/py-antlr4-python3-runtime  # Python 3
   Maybe add $PY_ANTLR4 to Mk/Uses/python.mk?

And this is the main port: sysutils/py-azure-cli
https://pypi.org/project/azure-cli/

It depends on other 50 modules (not mandatory) that are also hosted on PyPI.
https://github.com/Azure/azure-cli/blob/dev/src/azure-cli/setup.py#L51-L102

IMHO there are these approaches.

1) Bundle all modules in sysutils/py-azure-cli.
2) Create 50 additional ports for all modules.
   sysutils/py-azure-cli depending on all of them.
   And maybe a slave port sysutils/py-azure-cli-standalone that doesn't depend
   any module, so the users can choose what module to install.

Any advices here?

And thank you for your time.
-- 
Danilo G. Baio (dbaio)


signature.asc
Description: PGP signature


Re: certbot/plugin fails after update

2020-04-20 Thread Danilo G. Baio
On Mon, Apr 20, 2020 at 07:42:46AM -0700, paul beard wrote:
> This seems to be a recurring issue each time certbox and its nginx plugin
> are updated. the workaround/solution is to reinstall them manually.
> 
>   for i in py-certbot py-certbot-nginx; do cd /usr/ports/security/$i; make
> > deinstall reinstall clean; done
> 
> and then certbot runs fine, either by hand or on the cron.
> 
> 
> Saving debug log to /var/log/letsencrypt/letsencrypt.log
> 
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - -
> Processing /usr/local/etc/letsencrypt/renewal/cloud.paulbeard.org.conf
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - -
> Cert is due for renewal, auto-renewing...
> Non-interactive renewal: random delay of 364.04025994456254 seconds
> Could not choose appropriate plugin: The nginx plugin is not working; there
> may be problems with your existing configuration.
> The error was: NoInstallationError("Could not find a usable 'nginx' binary.
> Ensure nginx exists, the binary is executable, and your PATH is set
> correctly.")


Hi Paul.

I'm sorry to hear that.

Do you use another LOCALBASE/PREFIX, instead of /usr/local ?

This is the customizations I can see that maybe can explain that.

post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
${WRKSRC}/certbot/compat/misc.py \
${WRKSRC}/tests/cli_test.py

@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' 
${WRKSRC}/certbot_nginx/_internal/configurator.py

And do you use the official FreeBSD packages ?

-- 
Danilo G. Baio (dbaio)


signature.asc
Description: PGP signature


Re: certbot/plugin fails after update

2020-04-20 Thread Danilo G. Baio
On Mon, Apr 20, 2020 at 10:06:38AM -0700, paul beard wrote:
> Yes, I do. I use the packages and source from the SVN repo. I also use
> /usr/local… not smart enough to change any of that without breakage so I
> leave it all alone.


Could you reinstall packages py37-certbot and py37-certbot-nginx?

Then check if the problem still occurs, if yes, make a copy of their
files:

cp -a -R /usr/local/lib/python3.7/site-packages/certbot /tmp/certbot
cp -a -R /usr/local/lib/python3.7/site-packages/certbot_nginx /tmp/certbot_nginx

Then reinstall them by ports as you described and execute a diff to see
what differs:

diff -u -r /usr/local/lib/python3.7/site-packages/certbot_nginx/ 
/tmp/certbot_nginx/
diff -u -r /usr/local/lib/python3.7/site-packages/certbot/ /tmp/certbot/

And could you share
/usr/local/etc/letsencrypt/renewal/cloud.paulbeard.org.conf ? 
Remove account information from it, please.

-- 
Danilo G. Baio (dbaio)


signature.asc
Description: PGP signature


Re: certbot/plugin fails after update

2020-04-20 Thread Danilo G. Baio
On Mon, Apr 20, 2020 at 11:19:07AM -0700, paul beard wrote:
> Has anyone reported this? Or am I just lucky?
> 
> I'll see if I can pull that info together.

Not that I'm aware. I use certbot with nginx on my servers and it's
fine,  but I'm curious in knowing what is happening.

You can send that information to me directly if you want.

Regards.
-- 
Danilo G. Baio (dbaio)


signature.asc
Description: PGP signature


Re: Missing dependency for py-certbot

2020-04-26 Thread Danilo G. Baio
On Sun, Apr 26, 2020 at 04:17:33PM -0400, Keith wrote:
> I recently did an update of my ports tree and I honestly can't remember
> which versions I had installed previously that were working fine, but after
> installing the latest version of py-certbot and
> py-certbot-dns-digitalocean, I started running into this error
> 
> $ sudo certbot renew
> An unexpected error occurred:
> pkg_resources.DistributionNotFound: The 'importlib_metadata' distribution
> was not found and is required by jsonpickle
> Please see the logfile '/tmp/tmpn1vf5r5c/log' for more details.
> 
> I installed the devel/py-importlib-metadata port and that fixed the error.
> I don't see this listed as a dependency port on freshports for certbot
> https://www.freshports.org/security/py-certbot/


Hi.

Out of curiosity, are you using portmaster?

I'm seeing others using portmaster with issues in upgrades.

devel/py-jsonpickle is a dependency of www/py-python-digitalocean which
is dependency of security/py-certbot-dns-digitalocean.

-- 
Danilo G. Baio (dbaio)


signature.asc
Description: PGP signature


Re: Missing dependency for py-certbot

2020-04-26 Thread Danilo G. Baio
On Mon, Apr 27, 2020 at 11:34:15AM +1000, Kubilay Kocak wrote:
> On 27/04/2020 9:10 am, Danilo G. Baio wrote:
> > On Sun, Apr 26, 2020 at 04:17:33PM -0400, Keith wrote:
> > > I recently did an update of my ports tree and I honestly can't remember
> > > which versions I had installed previously that were working fine, but 
> > > after
> > > installing the latest version of py-certbot and
> > > py-certbot-dns-digitalocean, I started running into this error
> > > 
> > > $ sudo certbot renew
> > > An unexpected error occurred:
> > > pkg_resources.DistributionNotFound: The 'importlib_metadata' distribution
> > > was not found and is required by jsonpickle
> > > Please see the logfile '/tmp/tmpn1vf5r5c/log' for more details.
> > > 
> > > I installed the devel/py-importlib-metadata port and that fixed the error.
> > > I don't see this listed as a dependency port on freshports for certbot
> > > https://www.freshports.org/security/py-certbot/
> > 
> > 
> > Hi.
> > 
> > Out of curiosity, are you using portmaster?
> > 
> > I'm seeing others using portmaster with issues in upgrades.
> > 
> > devel/py-jsonpickle is a dependency of www/py-python-digitalocean which
> > is dependency of security/py-certbot-dns-digitalocean.
> > 
> 
> devel/py-jsonpickle doesn't depend on devel/py-importlib-metadata
> 
> Upstream declared it as a dependency 2 months ago [1] in 1.4
> 
> setup.cfg:
> install_requires =
>   importlib_metadata; python_version<"3.8"
> 
> Note: It was unconditional (all python versions) until 4 days ago:
> 
> https://github.com/jsonpickle/jsonpickle/commit/8debff4511089dad850930c702106a436275f118
> 
> Any change resolving this is:
> 
> Approved by: portmgr (blanket: dependencies: missing)
> MFH: 2020Q1
> 
> [1] 
> https://github.com/jsonpickle/jsonpickle/commit/4a2ec6143d225ae1878b9b55b05fa2563282ee00


Good catch koobs.

-- 
Danilo G. Baio (dbaio)


signature.asc
Description: PGP signature


Re: How to best remove sphinx18 dependency from ports tree?

2020-05-17 Thread Danilo G. Baio
On Sun, May 17, 2020 at 01:37:48PM -0700, Chris wrote:
> Context:
> Fresh install, fresh co of src/ && ports/
> FreeBSD 13.0-CURRENT FreeBSD 13.0-CURRENT #0 r361107 amd64
> Working Copy Root Path: /usr/ports
> Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5
> Revision: 535355
> Last Changed Author: jbeich
> Last Changed Rev: 535355
> Last Changed Date: 2020-05-15 23:31:07 -0700 (Fri, 15 May 2020)
> 
> cd /usr/ports/x112/nvidia-driver-340 && make
> 
> ultimately returns:
> ...
> Move: bin/sphinx-quickstart --> bin/sphinx-quickstart-3.7
> Link: @bin/sphinx-quickstart --> bin/sphinx-quickstart-3.7
> > Compressing man pages (compress-man)
> ===>  Installing for py37-sphinx18-1.8.5_1,1
> ===>  Checking if py37-sphinx18 is already installed
> ===>   Registering installation for py37-sphinx18-1.8.5_1,1 as automatic
> Installing py37-sphinx18-1.8.5_1,1...
> pkg-static: py37-sphinx18-1.8.5_1,1 conflicts with py37-sphinx-3.0.2,1 
> (installs
> files into the same place).  Problematic file: 
> /usr/local/bin/sphinx-apidoc-3.7
> *** Error code 70

Hi.

There is a patch to upgrade Sphinx dependency to 3.X in devel/llvm*
ports, it will prevent this issue.

More details at:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246500

For now, you can disable DOCS option on devel/llvm* and it won't require
Sphinx anymore.

-- 
Danilo G. Baio (dbaio)


signature.asc
Description: PGP signature


Re: FreeBSD Port: py37-certbot-1.5.0_1,1

2020-07-11 Thread Danilo G. Baio
On Fri, Jul 10, 2020 at 02:32:42PM +0200, Ruud Boon wrote:
> Hi,
> 
> Thank you for maintain this port.
> Any plans bumping to 1.6.0 soon?

Hi.

Done.
https://svnweb.freebsd.org/changeset/ports/542003

If you are using pkg you will need to wait for the package.

Regards.
-- 
Danilo G. Baio (dbaio)


signature.asc
Description: PGP signature


Re: Conflicts between py37-pygments and ipython5

2020-10-05 Thread Danilo G. Baio
On Thu, Sep 24, 2020 at 02:54:57PM -0400, Steve Wills wrote:
> Hi,
> 
> On 9/23/20 3:50 PM, Thierry Thomas wrote:
> > Hello,
> > 
> > math/sage is now BROKEN, caused by PR 249131 / r549076:
> > 
> > ===>   sage-math-9.1_5 depends on package: py37-nbconvert>0 - not found
> > ===>   Installing existing package /packages/All/py37-nbconvert-5.6.1_1.txz
> > [121amd64-default-build-as-user-job-04] Installing py37-nbconvert-5.6.1_1...
> > [121amd64-default-build-as-user-job-04] `-- Installing 
> > py37-nbformat-5.0.7...
> > [121amd64-default-build-as-user-job-04] `-- Extracting py37-nbformat-5.0.7:
> > .. done
> > [121amd64-default-build-as-user-job-04] `-- Installing
> > py37-pandocfilters-1.4.2...
> > [121amd64-default-build-as-user-job-04] `-- Extracting
> > py37-pandocfilters-1.4.2: .. done
> > [121amd64-default-build-as-user-job-04] `-- Installing 
> > py37-pygments-2.7.1...
> > pkg-static: py37-pygments-2.7.1 conflicts with py37-pygments-25-2.5.2
> > (installs files into the same place).  Problematic file:
> > /usr/local/bin/pygmentize-3.7
> > 
> > Failed to install the following 1 package(s):
> > /packages/All/py37-nbconvert-5.6.1_1.txz
> > *** Error code 70
> > 
> > math/sage does not directly depend on textproc/py-pygments, but it
> > depends on devel/py-nbconvert which does.
> > 
> > And it also depend on devel/ipython5, which requires py37-pygments-25.
> > 
> > Is there a way to solve this conflict?


Hi.

Could you test math/sage with this patch?
https://people.freebsd.org/~dbaio/ipython5-pygments.patch

Looking the commit history of devel/ipython5, the requirement
'pygments<2.6' is only necessary to solve an issue with Python 2.7, and
devel/ipython5 is now python3.5+.

https://github.com/ipython/ipython/pull/12174
https://github.com/ipython/ipython/issues/12173

Regards.
-- 
Danilo G. Baio (dbaio)


signature.asc
Description: PGP signature


Re: Conflicts between py37-pygments and ipython5

2020-10-06 Thread Danilo G. Baio
On Tue, Oct 06, 2020 at 08:12:24PM +0200, Thierry Thomas wrote:
> Le mar.  6 oct. 20 à  2:36:27 +0200, Danilo G. Baio 
>  écrivait :
> 
> > Hi.
> 
> Hello,
> 
> > Could you test math/sage with this patch?
> > https://people.freebsd.org/~dbaio/ipython5-pygments.patch
> > 
> > Looking the commit history of devel/ipython5, the requirement
> > 'pygments<2.6' is only necessary to solve an issue with Python 2.7, and
> > devel/ipython5 is now python3.5+.
> > 
> > https://github.com/ipython/ipython/pull/12174
> > https://github.com/ipython/ipython/issues/12173
> 
> Great! With you patch applied to devel/ipython5 math/sage builds again!
> 
> I´m closing my PRs 250074 and 250144, they are no more needed.
> 
> Best regards.
> -- 
> Th. Thomas.


Thanks, it's committed:
https://svnweb.freebsd.org/ports?view=revision&revision=551605

py-pygments-25 and ipython5 still have a few consumers, we need to keep
them on the tree for a little while.

textproc/py-pygments-25
  required by:
- devel/viewvc  (expires on 2020-12-31, seems Python 3 will be supported 
soon)
- www/searx  (expires on 2020-09-15, with open PR)
- www/trac   (expires on 2020-12-31)
- www/trac-devel  (expires on 2020-12-31)

devel/ipython5
  required by:
- math/sage
- devel/py-ipdb
- math/py-yt
- security/py-rekall

Regards.
-- 
Danilo G. Baio (dbaio)


signature.asc
Description: PGP signature


Re: `make makesum` fails with lang/pyton-doc-html

2021-05-10 Thread Danilo G. Baio
On Mon, May 10, 2021 at 04:41:18PM +0900, Yasuhiro Kimura wrote:
> Hello,
> 
> I tried to update lang/pyton-doc-html and found `make makesum` fails
> as following.
> 
> --
> yasu@rolling-vm-freebsd2[1242]% pwd
> /usr/ports
> yasu@rolling-vm-freebsd2[1243]% git status
> On branch main
> Your branch is up to date with 'origin/main'.
> 
> nothing to commit, working tree clean
> yasu@rolling-vm-freebsd2[1244]% make -C lang/python-doc-html makesum  
>   /usr/ports
> ===>   python-doc-html-3.9.4 depends on file: /usr/local/sbin/pkg - found
> => python-3.8.9-docs-html.tar.bz2 doesn't seem to exist in 
> /net/freebsd/ports/distfiles/python.
> ===> /!\ Warning /!\
>  The :3x8x9 group used for python-3.8.9-docs-html.tar.bz2 is missing
>  from MASTER_SITES. Check for typos, or errors.
> => Attempting to fetch 
> https://www.python.org/ftp/python/doc/3.9.4/python-3.8.9-docs-html.tar.bz2
> fetch: 
> https://www.python.org/ftp/python/doc/3.9.4/python-3.8.9-docs-html.tar.bz2: 
> Not Found
> => Attempting to fetch 
> https://www.python.org/ftp/python/doc/current/python-3.8.9-docs-html.tar.bz2
> fetch: 
> https://www.python.org/ftp/python/doc/current/python-3.8.9-docs-html.tar.bz2: 
> Not Found
> => Attempting to fetch 
> http://distcache.FreeBSD.org/ports-distfiles/python/python-3.8.9-docs-html.tar.bz2
> fetch: 
> http://distcache.FreeBSD.org/ports-distfiles/python/python-3.8.9-docs-html.tar.bz2:
>  Not Found
> => Couldn't fetch it - please try to retrieve this
> => port manually into /net/freebsd/ports/distfiles/python and try again.
> *** Error code 1
> 
> Stop.
> make[1]: stopped in /usr/ports/lang/python-doc-html
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/ports/lang/python-doc-html
> yasu@rolling-vm-freebsd2[1245]%
> --
> 
> What's wrong?

Hi.

Take a look on [1], it was working last time I checked.

If it's ok, I'll open a review, please let me know.

More details about that on [2] and [3].

1 - https://people.freebsd.org/~dbaio/python-doc-html-distinfo.patch
2 - https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=249063
3 - https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=249537

-- 
Danilo G. Baio (dbaio)


signature.asc
Description: PGP signature


Re: FYI: [lini...@lonesome.com: ports expiring soon due to Google Code site removal]

2017-03-26 Thread Danilo G. Baio (dbaio)
On Sun, Mar 26, 2017 at 11:58:18PM +0200, Roland Smith wrote:
> On Fri, Mar 24, 2017 at 10:20:45AM -0500, Mark Linimon wrote:
> > - Forwarded message from Mark Linimon  -
> > 
> > Date: Fri, 24 Mar 2017 10:12:00 -0500
> > From: Mark Linimon 
> > To: po...@freebsd.org
> > Subject: ports expiring soon due to Google Code site removal
> > User-Agent: Mutt/1.5.23 (2014-03-12)
> > 
> > As of 20170324 there are still 175 ports that are marked deprecated and
> > broken due to the Google Code site having gone away.  These are due to
> > expire on 20170430.  Please consider this a "last call" to find a current
> > mastersite for these ports before then.  Thanks.
> 
> I did a quick scan for the python-related projects. You can see the results
> below. Some of these projects seem dead. When the latest activity was several
> years ago, I've made a note of it.
> 

[snip]

> > net/py-pypcap   w...@freebsd.org
> 
> According to pypi: https://github.com/dugsong/pypcap
> 

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217372



> > net/py-pysendfile   ko...@freebsd.org
> 
> According to pypi: https://github.com/giampaolo/pysendfile
> (Latest commit 2016)


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217373


[snip]

Regards.
--
Danilo G. Baio (dbaio)


signature.asc
Description: PGP signature