Re: Help for python-subby needed
Am Sat, Jan 29, 2022 at 01:50:22AM +0500 schrieb Andrey Rahmatullin: > On Fri, Jan 28, 2022 at 09:48:00PM +0100, Andreas Tille wrote: > > Hi, > > > > I need python-subby as a new dependency for some Debian Med package. > > Unfortunately it does not build easily[1]: > > > >dh_auto_build -O--buildsystem=pybuild > > E: pybuild pybuild:367: build: plugin flit failed with: Neither [project] > > nor [tool.flit.metadata] found in pyproject.toml > > E: pybuild pybuild:367: build: plugin flit failed with: Neither [project] > > nor [tool.flit.metadata] found in pyproject.toml > > dh_auto_build: error: pybuild --build -i python{version} -p "3.10 3.9" > > returned exit code 13 > It indeed uses poetry, not flit, but you have export PYBUILD_SYSTEM=flit. Where can I find an example how to use poetry? Kind regards Andreas. -- http://fam-tille.de
Re: Help for python-subby needed
On Tuesday, February 1, 2022 6:01:22 AM EST Andreas Tille wrote: > Am Sat, Jan 29, 2022 at 01:50:22AM +0500 schrieb Andrey Rahmatullin: > > On Fri, Jan 28, 2022 at 09:48:00PM +0100, Andreas Tille wrote: > > > Hi, > > > > > > I need python-subby as a new dependency for some Debian Med package. > > > > > > Unfortunately it does not build easily[1]: > > >dh_auto_build -O--buildsystem=pybuild > > > > > > E: pybuild pybuild:367: build: plugin flit failed with: Neither > > > [project] nor [tool.flit.metadata] found in pyproject.toml E: pybuild > > > pybuild:367: build: plugin flit failed with: Neither [project] nor > > > [tool.flit.metadata] found in pyproject.toml dh_auto_build: error: > > > pybuild --build -i python{version} -p "3.10 3.9" returned exit code 13> > > It indeed uses poetry, not flit, but you have export PYBUILD_SYSTEM=flit. > > Where can I find an example how to use poetry? Add build-depends on pybuild-plugin-pyproject. Drop build-depends on flit. Drop the "export PYBUILD_SYSTEM=flit" line in d/rules. The poetry build-depends I'm a little uncertain on. Subby has: > [build-system] > requires = ["poetry>=0.12"] > build-backend = "poetry.masonry.api" What I recall seeing is: > [build-system] > requires = ["poetry>=0.12"] > build-backend = "poetry.core.masonry.api" I am not familiar enough to know if that means that you need python3-poetry (which you have) or if the upstream pyproject.toml is wrong and you need poetry-core. Maybe someone else knows or you can experiment. That should get you close. Scott K signature.asc Description: This is a digitally signed message part.
Bug#1004746: lintian: provide a check for Python package version numbers validity
Package: lintian Version: 2.114.0 Severity: wishlist X-Debbugs-Cc: Debian Python Team I just hit two packages which gave me the following warning when pkg_resources tried to load them: /usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 1.12.1-git20200711.33e2d80-dfsg1-0.6 is an invalid version and will not be supported in a future release warnings.warn( (and a different version number in the other case). The upstream Python developers have a clear idea of what is accepted as a version number, and it appears in /usr/lib/python3/dist-packages/pkg_resources/_vendor/packaging/version.py (in the python3-pkg-resources package) in the definition of VERSION_PATTERN. The version number that is being examined is that stored in /usr/lib/python3/dist-packages/*.egg-info or /usr/lib/python3/dist-packages/*.egg-info/PKG-INFO on the line beginning "Version: ". This appears to be a fairly rare bug: only two packages on my system have this issue (and I've just reported bugs against them). Nonetheless, if it is easy, it would be nice to have a lintian test for it. Best wishes, Julian
Re: Help for python-subby needed
Am Tue, Feb 01, 2022 at 08:26:54AM -0500 schrieb Scott Kitterman: > > Add build-depends on pybuild-plugin-pyproject. > > Drop build-depends on flit. > > Drop the "export PYBUILD_SYSTEM=flit" line in d/rules. Thanks, this works now. > That should get you close. Yep. Thanks a lot Andreas. -- http://fam-tille.de