Re: Upload request: psrecord (NEW)
- To: Alexandru Mihail <alexandru.mihail2897@gmail.com>
- Cc: debian-python@lists.debian.org
- Subject: Re: Upload request: psrecord (NEW)
- From: Peter Wienemann <wiene@debian.org>
- Date: Sun, 1 Dec 2024 17:48:21 +0100
- Message-id: <[🔎] e9da7171-880a-47e7-abf3-7954675596e1@debian.org>
- In-reply-to: <b8ce9f2d7f0a2ade742f3804109543a1bde39382.camel@gmail.com>
- References: <f3b17ed93c6c77aefec29e6b0d5cde405f6dd01a.camel@gmail.com> <a6b20a60e9e02d8d8b3113fe3b3f44a5d3795b13.camel@gmail.com> <80fe104d-453c-4555-b656-c3123a3bbe35@debian.org> <2f0bf5b0ed4df279b81295343eacf66f9d5ddf35.camel@gmail.com> <b8aec14e-ce50-4b4b-a87a-bd796c6ad0ac@debian.org> <3145534b-cf5e-4cd9-b0f6-23133f24914a@debian.org> <b8ce9f2d7f0a2ade742f3804109543a1bde39382.camel@gmail.com>
Hi Alexandru,
On 2024-11-30 14:00:19, Alexandru Mihail wrote:
Yes, there were some rogue commits in [upstream], I reimported upstream
tar.gz and redone the whole process, it seems to build fine for me now
in an empty sbuild.
Seems fine now, thanks for the time; upload when you think OK.
I still see contents in the "upstream" branch which does not belong
there, namely the "debian" directory containing your packaging files.
How do you manage the "upstream" and the "pristine-tar" branches? Those
branches are somewhat special. There is usually no reason to touch those
branches by hand. If you use "gbp import-orig", it takes care of those
branches for you (see "man gbp import-orig"). It also automatically
creates an upstream release tag for you (I do not see any in your
repository).
An initial upstream code import could look like this:
$ mkdir psrecord && cd $_
$ git init
$ gbp import-orig --debian-branch=debian/master
https://github.com/astrofrog/psrecord/archive/refs/tags/v1.4.tar.gz
This results in:
$ git branch
* debian/master
pristine-tar
upstream
$ git tag
upstream/1.4
The work on packaging the upstream code happens in the "debian"
directory which must only be committed to the "debian/master" branch.
Neglecting more complicated cases (uploads to distributions different
from "unstable", handling patches, etc.) you always commit to the
"debian/master" branch. The next commits to the "pristine-tar" and the
"upstream" branches are added when you run "gbp import-orig" the next
time to import a new upstream release. Again those commits to
"pristine-tar" and "upstream" (and a new upstream release tag) are
handled by "gbp import-orig". Importing new upstream releases can be
done e. g. by running
$ gbp import-orig --uscan
provided you have a correctly set up gbp.conf and watch file.
I hope this clarifies the gbp workflow a bit. Sorry for not providing
more in-depth information in my previous comments.
Best regards
Peter
Reply to: