Bug#1031902: dh-python: Generate cpython3_fallback during build

2023-02-25 Thread Stefano Rivera
Hi Corey (2023.02.24_20:48:54_+)
> Would you object to generating cpython3_fallback on the fly during the package
> build? If so I'm happy to submit a patch.

I had a chat about this with people in #debian-devel, and people didn't
really like the idea of pulling apt-file data during a build. (There was
some misunderstanding about exactly how dh-python does this, of
course...)

I'd say the main concerns are:
1. Guarantees of Contents.gz availability.
2. Guarantees of reproducibility. I guess we'd have to merge between all
   configured apt suites. But there is no guarantee that a build chroot
   will have a correctly configured apt.

Some other options we could consider:
1. Including Ubuntu data when we build pydist. Assuming there are only
   additions, not different packages providing the same python module...
2. Building a separate Ubuntu pydist, and selecting the appropriate one
   to install, at build time.

SR

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  +1 415 683 3272



Bug#1031902: dh-python: Generate cpython3_fallback during build

2023-02-24 Thread Corey Bryant
Ah, I didn't realize it needed network. Thanks for checking.

On Fri, Feb 24, 2023 at 4:12 PM Piotr Ożarowski  wrote:

> Generating these files requires network so it cannot be enabled on
> Debian. Dunno what policy Ubuntu has in that regard but I added --ubuntu
> option for ./pydist/generate_fallback_list.py - let me know if Contents
> URL needs an update, BTW
>


Bug#1031902: dh-python: Generate cpython3_fallback during build

2023-02-24 Thread Piotr Ożarowski
Generating these files requires network so it cannot be enabled on
Debian. Dunno what policy Ubuntu has in that regard but I added --ubuntu
option for ./pydist/generate_fallback_list.py - let me know if Contents
URL needs an update, BTW



Bug#1031902: dh-python: Generate cpython3_fallback during build

2023-02-24 Thread Corey Bryant
Package: dh-python
Version: Can cpython3_fallback be generated at build time?
Severity: wishlist
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu lunar ubuntu-patch

Dear Maintainer,

dh-python is synced to Ubuntu and therefore Ubuntu inherits the manually
generated cpython3_fallback file. This file appears to be generated on Debian,
as expected. However, if it is generated on Ubuntu, the contents will differ.
I've attached the Ubuntu delta (it is not a patch) just for reference.

Would you object to generating cpython3_fallback on the fly during the package
build? If so I'm happy to submit a patch.

Thanks for considering.

Corey


-- System Information:
Debian Release: bookworm/sid
  APT prefers lunar
  APT policy: (500, 'lunar')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.19.0-23-generic (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru dh-python-5.20230130/pydist/cpython3_fallback 
dh-python-5.20230130ubuntu1/pydist/cpython3_fallback
--- dh-python-5.20230130/pydist/cpython3_fallback   2023-01-30 
11:30:45.0 -0500
+++ dh-python-5.20230130ubuntu1/pydist/cpython3_fallback2023-02-24 
14:33:19.0 -0500
@@ -57,7 +57,6 @@
 EbookLib python3-ebooklib
 Editobj3 python3-editobj3
 EditorConfig python3-editorconfig
-Electrum python3-electrum
 Endgame_Singularity singularity
 ExifRead python3-exifread
 Extractor python3-extractor
@@ -96,7 +95,6 @@
 Flask_Session python3-flask-session
 Flask_Silk python3-flask-silk
 Flask_SocketIO python3-flask-socketio
-Flask_Sockets python3-flask-sockets
 Flask_Testing python3-flask-testing
 Flask_WTF python3-flaskext.wtf
 Flor python3-flor
@@ -133,7 +131,6 @@
 JUBE jube
 Jinja2 python3-jinja2
 Kaptive kaptive
-Keras python3-keras
 Keras_Applications python3-keras-applications
 Keras_Preprocessing python3-keras-preprocessing
 Kivy python3-kivy
@@ -144,7 +141,6 @@
 LibAppArmor python3-libapparmor
 LinkChecker linkchecker
 Logbook python3-logbook
-Loom brz-loom
 M2Crypto python3-m2crypto
 MACS2 macs
 MDAnalysis python3-mdanalysis
@@ -183,9 +179,10 @@
 Mopidy_SomaFM mopidy-somafm
 Mopidy_SoundCloud mopidy-soundcloud
 Mopidy_TuneIn mopidy-tunein
-Mopidy_dLeyna mopidy-dleyna
 Morfessor python3-morfessor
 MutatorMath python3-mutatormath
+MythTV libmyth-python
+NEURON python3-neuron
 NanoFilt nanofilt
 NanoLyse nanolyse
 NanoSV nanosv
@@ -197,11 +194,11 @@
 OMEMO python3-omemo
 OWSLib python3-owslib
 OdooRPC python3-odoorpc
-Oldmemo python3-oldmemo
 Onionbalance onionbalance
 OpenLP openlp
 OpenMM python3-simtk
 OptimiR optimir
+Othman python3-othman
 PAM python3-pam
 PGPy python3-pgpy
 PHCpy python3-phcpy
@@ -238,11 +235,13 @@
 PyChromecast python3-pychromecast
 PyCifRW python3-pycifrw
 PyDispatcher python3-pydispatch
+PyDrive python3-pydrive
 PyDrive2 python3-pydrive2
 PyGObject python3-gi
 PyGithub python3-github
 PyGnuplot python3-pygnuplot
 PyGreSQL python3-pygresql
+PyHST2_2020c python3-pyhst2-cuda
 PyHamcrest python3-hamcrest
 PyHoca_CLI pyhoca-cli
 PyHoca_GUI pyhoca-gui
@@ -295,6 +294,7 @@
 PyXRD python3-pyxrd
 PyYAML python3-yaml
 PyZoltan python3-pyzoltan
+Pycluster cluster3
 Pygments python3-pygments
 Pymacs pymacs
 Pyment python3-pyment
@@ -310,6 +310,7 @@
 QuantLib quantlib-python
 ROPGadget python3-ropgadget
 RPi.bme280 python3-bme280
+RTIMULib python3-rtimulib
 Radicale python3-radicale
 ReParser python3-reparser
 Recoll python3-recoll
@@ -327,7 +328,6 @@
 SQLAlchemy_i18n python3-sqlalchemy-i18n
 SQLObject python3-sqlobject
 SaltPyLint python3-saltpylint
-SciPy python3-scipy
 Scrapy python3-scrapy
 SecretStorage python3-secretstorage
 SecureString python3-securestring
@@ -343,15 +343,13 @@
 Stetl python3-stetl
 Sublist3r sublist3r
 Supysonic supysonic
-TPOT python3-tpot
 Telethon python3-telethon
 Tempita python3-tempita
-Theano python3-theano
 TkinterTreectrl python3-tktreectrl
 Trac trac
 Trololio python3-trololio
+Tubes python3-tubes
 Twisted python3-twisted
-Twomemo python3-twomemo
 TxSNI python3-txsni
 URLObject python3-urlobject
 Unidecode python3-unidecode
@@ -360,13 +358,11 @@
 VF_1 vf1
 VMDKstream python3-vmdkstream
 VirtualMailManager vmm
-WALinuxAgent waagent
+WALinuxAgent walinuxagent
 WSGIProxy2 python3-wsgiproxy
 WSME python3-wsme
 WTForms python3-wtforms
-WTForms_Alchemy python3-wtforms-alchemy
 WTForms_Components python3-wtforms-components
-WTForms_JSON python3-wtforms-json
 WTForms_Test python3-wtforms-test
 Wand python3-wand
 WebOb python3-webob
@@ -442,7 +438,6 @@
 actionlib_tools python3-actionlib-tools
 activipy python3-activipy
 adal python3-adal
-adapt_parser python3-adapt
 adios_mpi python3-adios
 admesh python3-admesh
 advocate python3-advocate
@@ -458,7 +453,7 @@
 aio_pika python3-aio-pika
 aioamqp python3-aioamq