Details about package python-asyncprawcore
Package uploads
Upload #6
Information
Changelog
python-asyncprawcore (3.0.2-1) unstable; urgency=medium
.
* Initial release. (Closes: #1110417)
Comments
-
Aryan,
First lets get a viable patch.
* Delete the '.pc' folder. This folder is a temporary build folder and should never appear in a package/git.
* Delete the 'debian/patches' folder and its contents.
* With the python interpreter changes made on the file use 'dpkg-source --commit' to generate the patch file.
* Use 'dpkg-source -b .' to geerate hopefully a clean package.
Due to niggles and offensive emails by project members (not you), I may not be as readily available to help people on Debian Memtors.
Regards
Phil
Phil Wyett at Aug. 8, 2025, 6:33 a.m.
Upload #5
Information
Changelog
python-asyncprawcore (3.0.2-1) unstable; urgency=medium
.
* Initial release. (Closes: #1110417)
Comments
-
Aryan,
sudo pbuilder build --twice python-asyncprawcore_3.0.2-1.dsc
Fails:
dpkg-source --after-build .
dpkg-source: info: using options from python-asyncprawcore-3.0.2/debian/source/options: --extend-diff-ignore=^[^/]*[.]egg-info/
dpkg-buildpackage: info: full upload (original source is included)
dpkg-genchanges: info: including full source code in upload
dpkg-buildpackage: info: source package python-asyncprawcore
dpkg-buildpackage: info: source version 3.0.2-1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Aryan Karamtoth <aryankmmiv@outlook.com>
dpkg-buildpackage: info: host architecture amd64
dpkg-source --before-build .
dpkg-source: info: using options from python-asyncprawcore-3.0.2/debian/source/options: --extend-diff-ignore=^[^/]*[.]egg-info/
debian/rules clean
dh_clean
dpkg-source -b .
dpkg-source: info: using options from python-asyncprawcore-3.0.2/debian/source/options: --extend-diff-ignore=^[^/]*[.]egg-info/
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building python-asyncprawcore using existing ./python-asyncprawcore_3.0.2.orig.tar.gz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: error: cannot represent change to .pybuild/cpython3_3.13_asyncprawcore/asyncprawcore-3.0.2-py3-none-any.whl: binary file contents changed
dpkg-source: error: add .pybuild/cpython3_3.13_asyncprawcore/asyncprawcore-3.0.2-py3-none-any.whl in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: warning: file python-asyncprawcore-3.0.2/.pybuild/cpython3_3.13_asyncprawcore/build/.pytest_cache/v/cache/nodeids has no final newline (either original or modified version)
dpkg-source: warning: file python-asyncprawcore-3.0.2/.pybuild/cpython3_3.13_asyncprawcore/build/.pytest_cache/v/cache/stepwise has no final newline (either original or modified version)
dpkg-source: error: unrepresentable changes to source
dpkg-buildpackage: error: dpkg-source -b . subprocess returned exit status 1
I: copying local configuration
E: Failed autobuilding of package
Phil Wyett at Aug. 7, 2025, 12:57 p.m.
-
That's weird. The only thing I changed this time was adding the .diff as file extension.
Any tips to fix this?
Aryan Karamtoth at Aug. 7, 2025, 1:04 p.m.
-
Aryan,
1. Your repos are not the Debian way, i.e. branch structure.
* master
* pristine-tar
* upstream
Importing a package to Salsa (the right way) tutorial - https://blog.kathenas.org/index.php?/archives/19-Debian-Import-a-new-package-into-Salsa.html
2. I have done this:
* Cloned the packages repo from Salsa.
* 'origtgz' - No pristine tar, so falls back to 'uscan'. This is because of 1. above.
* 'dpkg-sorce -b .' from insode the repo root folder, output below.
philwyett@ks-tarkin:~/build/python-asyncprawcore$ dpkg-source -b .
dpkg-source: info: using options from python-asyncprawcore/debian/source/options: --extend-diff-ignore=^[^/]*[.]egg-info/
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building python-asyncprawcore using existing ./python-asyncprawcore_3.0.2.orig.tar.gz
dpkg-source: info: using patch list from debian/patches/series
can't find file to patch at input line 15
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Description: Fixed Interpreter Path in Examples
| This patch updates the shebang lines in the example scripts
| of the python-asyncprawcore
| .
| python-asyncprawcore (3.0.2-1) unstable; urgency=medium
| .
| * Initial release. (Closes: #1110417)
|Author: Aryan Karamtoth <aryankmmiv@outlook.com>
|Bug-Debian: https://bugs.debian.org/1110417
|Forwarded: https://github.com/praw-dev/asyncprawcore/pull/110
|Last-Update: 2025-08-07
|
|--- python-asyncprawcore-3.0.2.orig/examples/caching_requestor.py
|+++ python-asyncprawcore-3.0.2/examples/caching_requestor.py
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 23
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- python-asyncprawcore-3.0.2.orig/examples/device_id_auth_trophies.py
|+++ python-asyncprawcore-3.0.2/examples/device_id_auth_trophies.py
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 31
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- python-asyncprawcore-3.0.2.orig/examples/obtain_refresh_token.py
|+++ python-asyncprawcore-3.0.2/examples/obtain_refresh_token.py
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 39
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- python-asyncprawcore-3.0.2.orig/examples/read_only_auth_trophies.py
|+++ python-asyncprawcore-3.0.2/examples/read_only_auth_trophies.py
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 47
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- python-asyncprawcore-3.0.2.orig/examples/script_auth_friend_list.py
|+++ python-asyncprawcore-3.0.2/examples/script_auth_friend_list.py
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
dpkg-source: info: the patch has fuzz which is not allowed, or is malformed
dpkg-source: info: if patch 'fix-interpreter-path.diff' is correctly applied by quilt, use 'quilt refresh' to update it
dpkg-source: info: if the file is present in the unpacked source, make sure it is also present in the orig tarball
dpkg-source: error: LC_ALL=C patch -t -F 0 -N -p1 -u -V never -E -b -B .pc/fix-interpreter-path.diff/ --reject-file=- < python-asyncprawcore.orig.2szMnG/debian/patches/fix-interpreter-path.diff subprocess returned exit status 1
Regards
Phil
Phil Wyett at Aug. 7, 2025, 1:26 p.m.
-
Upload #6 should apply the patch i guess. There was this .pc/applied-patch file that didn't mention the .diff extension.
I've always had trouble with pristine-tar and my sponsors used to handle it during sponsorship. I've looked up many guides but I can't figure out how to make them myself.
Aryan Karamtoth at Aug. 8, 2025, 2:37 a.m.
Upload #4
Information
Changelog
python-asyncprawcore (3.0.2-1) unstable; urgency=medium
.
* Initial release. (Closes: #1110417)
Comments
-
Aryan,
Patching to use python3 is correct, some notes.
* For patches use extension '.patch' or '.diff'.
* Patch forwarding has been marked as not needed. I would file a bug upstream and link to it in the patch and adjust forwarding accordingly.
Regards
Phil
Phil Wyett at Aug. 7, 2025, 3:41 a.m.
-
Aryan,
Justification in bug report is that many distros no longer use the default 'python' command and prefer people either invoke 'python3' or if legacy 'python2'.
Regards
Phil
Phil Wyett at Aug. 7, 2025, 3:45 a.m.
-
Aryan,
More justification to use 'python3' is in their 'pyproject.toml':
requires-python = ">=3.9"
So python required is 3.9 or above. :-)
Regards
Phil
Phil Wyett at Aug. 7, 2025, 3:53 a.m.
-
Thanks I’ll change the patch extension in the next upload. I’ll also look into forwarding the patch
Aryan Karamtoth at Aug. 7, 2025, 4:35 a.m.
-
Aryan,
OK, then do a new upload that is in parity with the Salsa repo and I will review then.
Regards
Phil
Phil Wyett at Aug. 7, 2025, 7:09 a.m.
-
It's done, I changed the patch file extension to .diff as well as opened a PR to upstream with my changes [1]
[1] https://github.com/praw-dev/asyncprawcore/pull/110
Aryan Karamtoth at Aug. 7, 2025, 12:17 p.m.
Upload #3
Information
Changelog
python-asyncprawcore (3.0.1-1) unstable; urgency=medium
.
* Initial release. (Closes: #1110417)
Comments
-
another pedantic tag i see, I think this is because upstream uses this shebang: "#!/usr/bin/env python" in the example files? Maybe replacing "python" with "python3" may fix it?
Aryan Karamtoth at Aug. 7, 2025, 1:32 a.m.
-
Also upstream released another update I think. I'll update the source along with the fix for the pedantic tags for unusual interpreter.
Aryan Karamtoth at Aug. 7, 2025, 1:34 a.m.
Upload #2
Information
Changelog
python-asyncprawcore (3.0.1-1) unstable; urgency=medium
.
* Initial release. (Closes: #1110417)
Comments
-
I dont know why it still shows package doesn't install examples even when I used dh_installexamples for it
https://bpa.st/YSAQ
Aryan Karamtoth at Aug. 6, 2025, 11:17 a.m.
-
Aryan,
The simplest way to fix this is:
* Remove the text below from 'debian/rules'.
override_dh_installexamples:
dh_installexamples examples/*
* Create file 'debian/python3-asyncprawcore.examples'.
* Insert 'examples/*' in the created file 'debian/python3-asyncprawcore.examples'.
Regards
Phil
Phil Wyett at Aug. 6, 2025, 8:47 p.m.
Upload #1
Information
Changelog
python-asyncprawcore (3.0.1-1) unstable; urgency=medium
.
* Initial release. (Closes: #1110417)
Comments
-
I am not a Debian Developer (DD) and have no ability to upload your package - Sorry. All reviews are for your and any interested DD's information. There is no requirement by any party to act upon my reviews, but I do hope it helps.
Aryan,
Review of upload: 2025-08-06 03:12
Test 1 (reproducibility): Information only, not a blocker
* Good
Test 2 (pbuilder build): Information only
* Good
Test 3 (pbuilder build --twice): Information only
* Good
Test 4 (sbuild): Information only
Lintian:
P: python-asyncprawcore source: package-does-not-install-examples [examples/]
N:
N: The original source tarball contains the specified examples directory.
N: However, no examples are installed in any binary packages.
N:
N: Please use dh_installexamples to install these to the most relevant
N: package, for example by adding the directory name followed by a wildcard
N: to a debian/pkgname.examples file.
N:
N: Lintian looks for any directory called examples under /usr/share/doc in
N: all binary packages.
N:
N: Please refer to the dh_installexamples(1) manual page for details.
N:
N: Visibility: pedantic
N: Show-Always: no
N: Check: examples
N:
N: Screen: examples/in-tests
N: Advocates: "Scott Kitterman" <debian@kitterman.com>
N: Reason:
N: Some sources like python-tomlkit trigger this tag for tests because of files
N: in ./tests/examples/. They are not examples for tomlkit, however. They are
N: examples of TOML files used in the tests.
N:
N: Overall, the check is probably better off not looking in test
N: directories.
N:
N: Read more in Bug#1005184.
Test 5 (ratt): Information only, not a blocker
Note: Possible false positives.
* Good
Test 6 (debian/watch): Information only
* Good
Test 7 (licenserecon): Information only
* Good
Summary
=======
Test 4. Are examples to be installed now, in the future or never? ;-)
You can remove 'Rules-Requires-Root: no' from 'debian/control' as it is now the default behaviour.
Regards
Phil
Phil Wyett at Aug. 6, 2025, 3:41 a.m.
-
Thanks do I need to just add dh_installexamples to d/rules and make the directory as lintian suggested?
Aryan Karamtoth at Aug. 6, 2025, 4:38 a.m.