pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: pkgsrc/textproc/py-jinja2



On Tue, Apr 19, 2022 at 01:12:39PM +0200, Tobias Nygren wrote:
> On Mon, 18 Apr 2022 20:44:45 +0200
> Adam <adam%netbsd.org@localhost> wrote:
> 
> > > Modified Files:
> > >   pkgsrc/textproc/py-jinja2: Makefile PLIST distinfo
> > > 
> > > Log Message:
> > > Update textproc/py-jinja2 to 3.1.1
> > > 
> > > Waaaay too many versions skipped to provide a full change log here.
> > 
> > Changes are mentioned here: https://jinja.palletsprojects.com/en/3.0.x/changes/ - not that mamy to omit them from commit log.
> > 
> > v3 drops support for Python 2.7. You have to mark this package with
> > 
> > PYTHON_VERSIONS_INCOMPATIBLE=       27
> > 
> > There are still Python 2.7 packages that depend on py-jinja2 (like py-sphinx1). You have to deal with it, probably by importing v2 and adding it to versioned dependencies.
> 
> I have added textproc/py27-jinja2, but I'm not sure how to do the
> versioned dependencies stuff. Need help with the last bit.

Add a line to lang/python/versioned_dependencies.mk:

_SUPPORTED_PACKAGES+=   jinja2 textproc/py27-jinja2 textproc/py-jinja2

and document "jinja2" at the top.

In every package currently using jinja2 and supporting both python2
and python3, include lang/python/versioned_dependencies.mk and add a
line:

PYTHON_VERSIONED_DEPENDENCIES+= jinja2

and remove the explicit py-jinja2 DEPENDS line.

(for build/test depends, use "jinja2:build" or "jinja2:test" instead).

For packages only supporting python2, just change the DEPENDS to use
the python2 version.
 Thomas



Home | Main Index | Thread Index | Old Index