sphinx-build module not found in sbuild

2024-01-08 Thread Jérémy Lal
Hi,

I'm stuck at this odd behavior:

when I build a package in my current environment (debian/testing),
sphinx-build ... works correctly.

when building in sbuild, sphinx-build doesn't find current module:
ModuleNotFoundError: No module named 'xxx'
in docs/conf.py at
from xxx import __version__

I don't understand which other debian package is modifying that outcome.

Any idea ?


Re: sphinx-build module not found in sbuild

2024-01-08 Thread Julian Gilbey
On Mon, Jan 08, 2024 at 01:22:54PM +0100, Jérémy Lal wrote:
> Hi,
> I'm stuck at this odd behavior:
> when I build a package in my current environment (debian/testing),
> sphinx-build ... works correctly.
> when building in sbuild, sphinx-build doesn't find current module:
> ModuleNotFoundError: No module named 'xxx'
> in docs/conf.py at
> from xxx import __version__
> I don't understand which other debian package is modifying that outcome.
> Any idea ?

Perhaps your local build is importing from a globally-installed
version of the package?  (For example, you're building version 1.3 of
python3-foo, but you already have version 1.2 of python3-foo
installed.)

Best wishes,

   Julian



Re: sphinx-build module not found in sbuild

2024-01-08 Thread Jérémy Lal
Le lun. 8 janv. 2024 à 13:46, Julian Gilbey  a écrit :

> On Mon, Jan 08, 2024 at 01:22:54PM +0100, Jérémy Lal wrote:
> > Hi,
> > I'm stuck at this odd behavior:
> > when I build a package in my current environment (debian/testing),
> > sphinx-build ... works correctly.
> > when building in sbuild, sphinx-build doesn't find current module:
> > ModuleNotFoundError: No module named 'xxx'
> > in docs/conf.py at
> > from xxx import __version__
> > I don't understand which other debian package is modifying that outcome.
> > Any idea ?
>
> Perhaps your local build is importing from a globally-installed
> version of the package?  (For example, you're building version 1.3 of
> python3-foo, but you already have version 1.2 of python3-foo
> installed.)
>

Damn, that new package I'm working on already exists 。•́︿•̀。


sentry-python

2024-01-08 Thread Eberhard Beilharz
Is anyone working on updating sentry-python 
 to prevent autoremoval 
due to #1058422 ?


Thanks,
    Eberhard



OpenPGP_0xE9140597606020D3.asc
Description: OpenPGP public key


OpenPGP_signature.asc
Description: OpenPGP digital signature


Re: sentry-python

2024-01-08 Thread Gregor Riepl

Hi Eberhard,

Is anyone working on updating sentry-python 
 to prevent autoremoval 
due to #1058422 ?


I did some debugging/testing, because this bug affects our Cura 
packages, but I didn't get very far.


The root of the problem is a change in the Python 3.12 logging library:
https://docs.python.org/3/library/logging.html#logrecord-attributes
> Changed in version 3.12: taskName was added.

The unit tests in Debian's sentry-sdk can't cope with that.

However, it seems like upstream has already done the work to fix Python 
3.12 compatibility: https://github.com/getsentry/sentry-python/issues/2480


So, it should suffice to upgrade to at least 1.34.0 (or better yet, the 
latest 1.x release).


Regards,
Gregor



yapsy: ModuleNotFoundError: No module named 'imp'

2024-01-08 Thread Andreas Tille
Hi Thibauld,

Debian has packaged yapsy.  We try to migrate to Python3.12.  When testing yapsy
with Python3.12 in our CI[1] it fails with:

testActivationAndDeactivation 
(test.test_SimplePlugin.SimpleTestCase.testActivationAndDeactivation)
Test if the activation procedure works. ... Unable to import plugin: 
/builds/python-team/packages/yapsy/debian/output/source_dir/test/plugins/SimplePlugin
Traceback (most recent call last):
  File 
"/builds/python-team/packages/yapsy/debian/output/source_dir/yapsy/PluginManager.py",
 line 518, in loadPlugins
candidate_module = PluginManager._importModule(plugin_module_name, 
candidate_filepath)
   
^^^
  File 
"/builds/python-team/packages/yapsy/debian/output/source_dir/yapsy/PluginManager.py",
 line 584, in _importModule
candidate_module = 
imp.load_module(plugin_module_name,plugin_file,candidate_filepath+".py",("py","r",imp.PY_SOURCE))

 ^
AttributeError: type object 'Loader' has no attribute 'PY_SOURCE'
FAIL
...

You can find the full log in our CI[1].

It would be great if you could port yapsy to Python3.12.

Kind regards
Andreas.


[1] https://salsa.debian.org/python-team/packages/yapsy/-/jobs/5132141#L1187

-- 
http://fam-tille.de



Breaking changes in pytest 8

2024-01-08 Thread Timo Röhling

Hi,

I recently uploaded the pre-release pytest 8.0.0~rc1 to experimental 
as an early warning for the breaking changes which typically happen 
on major version bumps.


I've attached a dd-list of packages which exhibit autopkgtest 
regressions [1], with the intent of MBF'ing (with separate 
announcement) once pytest 8 is released.


Typically, packages will fail if they
- have deprecation warnings of type PytestRemovedIn8Warning, or
- assume a particular pytest stdout/stderr output which might have 
  changed, or
- rely on the precise order in which pytest collects tests, 
  especially the behavior of the pytest.Package collector.


Please refer to the upstream changelog [2] for a complete list of 
breaking changes.



Cheers
Timo

[1] https://qa.debian.org/excuses.php?experimental=1&package=pytest
[2] https://docs.pytest.org/en/latest/changelog.html


--
⢀⣴⠾⠻⢶⣦⠀   ╭╮
⣾⠁⢠⠒⠀⣿⡁   │ Timo Röhling   │
⢿⡄⠘⠷⠚⠋⠀   │ 9B03 EBB9 8300 DF97 C2B1  23BF CC8C 6BDD 1403 F4CA │
⠈⠳⣄   ╰╯
Adam Cecile 
   python-fastjsonschema (U)

Agustin Henze 
   docopt

Alastair McKinstry 
   python-xarray (U)

Andreas Tille 
   python-hmmlearn (U)
   tifffile (U)

Andrew Starr-Bochicchio 
   libcloud (U)

Andrey Rakhmatullin 
   python-parsel (U)

Andrius Merkys 
   python-ase (U)

Ask Hjorth Larsen 
   python-ase (U)

Bo YU 
   tox-current-env (U)
   xdoctest (U)

Carsten Schoenert 
   python-graphene (U)

Daniele Tricoli 
   requests (U)

Debian Astronomy Maintainers 
   astropy
   pytest-mpl

Debian Astronomy Team 
   sunpy

Debian Games Team 
   protontricks

Debian Med Packaging Team 
   dcmstack
   intake
   khmer
   python-anndata
   python-gffutils
   python-hmmlearn
   python-screed

Debian Python Modules Team 
   python-b2sdk

Debian Python Team 
   dask
   hickle
   ipyparallel
   javaproperties
   libcloud
   loguru
   mplcursors
   pytest-arraydiff
   pytest-order
   pytest-services
   pytest-sugar
   python-dateutil
   python-dict2xml
   python-fakeredis
   python-fastjsonschema
   python-graphene
   python-marshmallow-sqlalchemy
   python-parsel
   python-pytest-benchmark
   python-pytest-lazy-fixture
   python-sparse
   python-syrupy
   python-testfixtures
   python-upsetplot
   python-werkzeug
   requests
   setuptools-scm
   sqlalchemy (U)
   superqt
   tifffile
   tox-current-env
   twine
   wxutils
   xdoctest
   xonsh

Debian Science Maintainers 
   joblib
   openpyxl
   python-xarray
   spyder-line-profiler
   statsmodels

Debian Science Team 
   dolfin
   fenics-dolfinx

Debichem Team 
   mdtraj
   opendrop
   python-ase

Diane Trout 
   dask (U)
   python-anndata (U)
   python-graphviz
   python-sparse (U)
   python-upsetplot (U)
   statsmodels (U)

Drew Parsons 
   dolfin (U)
   fenics-dolfinx (U)
   mdtraj (U)
   opendrop (U)

Edward Betts 
   hickle (U)
   pytest-sugar (U)

Emmanuel Arias 
   python-marshmallow-sqlalchemy (U)

Federico Ceratto 
   freedombox (U)

FreedomBox packaging team 
   freedombox

Ghislain Antony Vaillant 
   python-sparse (U)
   python-xarray (U)
   spyder-line-profiler (U)

Gordon Ball 
   xonsh (U)

Graham Inggs 
   python-ase (U)

Guido Günther 
   python-dateutil (U)

Hans-Christoph Steiner 
   libcloud (U)

Ignace Mouzannar 
   python-parsel (U)

James Valleroy 
   freedombox (U)

Joel Cross 
   python-pytest-lazy-fixture (U)

Johannes Ring 
   dolfin (U)

Jon Bernard 
   barectf (U)

Joseph Nahmias 
   ipyparallel (U)

Julian Gilbey 
   pytest-order (U)
   spyder-line-profiler (U)

Julien Puydt 
   setuptools-scm (U)

Kevin Murray 
   khmer (U)

Leo Singer 
   pytest-mpl (U)

Luca Boccassi 
   javaproperties (U)

Michael Fladischer 
   python-testfixtures (U)

Michael Hanke 
   openpyxl (U)
   statsmodels (U)

Michael Hanke 
   dcmstack (U)

Michael Jeanson 
   barectf

Michael R. Crusoe 
   khmer (U)
   python-gffutils (U)
   python-screed (U)

Nick Daly 
   freedombox (U)

Nilesh Patra 
   loguru (U)

Ole Streicher 
   astropy (U)
   pytest-arraydiff (U)
   sunpy (U)
   tifffile (U)
   ttkthemes (U)

Ondřej Kobližek 
   python-b2sdk (U)
   python-fakeredis (U)

Ondřej Nový 
   python-fakeredis (U)
   python-werkzeug (U)

Petter Reinholdtsen 
   freedombox (U)

Pierre-Elliott Bécue 
   pytest-services (U)

Piotr Ożarowski 
   freedombox (U)
   sqlalchemy

Rebecca N. Palmer 
   openpyxl (U)
   statsmodels (U)

Scott Kitterman 
   python-dict2xml (U)

Shayan Doust 
   intake (U)

Soren Hansen 
   libcloud (U)

Stefano Rivera 
   twine (U)

Steffen Moeller 
   loguru (U)
   python-anndata (U)
   python-gffutils (U)

Stephan Lachnit 
   protontricks (U)

Stuart Prescott 
   opendrop (U)
   superqt (U)

Sudip Mukherjee 
   mplcursors (U)

Sunil Mohan Adapa 
   freedombox (U)

Tcl/Tk Debian Packagers 
   ttkthemes

Thomas Goirand 
   python-werkzeug (U)

Timo Röhling 
   python-pytest-benchmark (U)
   python-syrupy (U)

Tzafrir Cohen 
   freed