public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] pkgdev: an alternative to `repoman commit`
@ 2021-02-27 14:50 Tim Harder
  2021-02-27 15:22 ` Sam James
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Tim Harder @ 2021-02-27 14:50 UTC (permalink / raw
  To: gentoo-dev

Hi all,

Finally responding to all the requests, I've hacked up an initial
alternative to repoman's commit functionality in the form of pkgdev [1]
that uses pkgcheck's API behind the scenes. The project is meant to grow
into a collection of tools for Gentoo development and maintenance, but
initially supports `pkgdev commit` and `pkgdev push` that should work
for a basic git workflow on ebuild repos.

In essence, `pkgdev commit` wraps `git add` and `git commit`
functionality along with supporting GLEP 66 style message prefixes for
any committed files across an ebuild repo. Package manifests are also
regenerated and added automatically for any targeted pkg commits.

QA scanning is done on `pkgdev push` (not per `pkgdev commit` call) so
knowing/learning how to interactively `git rebase` is currently
essential to the workflow. Probably the main thing lacking is good docs
for the workflow that pkgdev envisions as it differs slightly from the
one used with repoman. 

Feel free to respond with questions, ideas, or flames. If you want to
give it a shot, I believe a live ebuild for it has already been added to
the tree at dev-util/pkgdev. Also, please open issues on the upstream
project if you run into bugs or have feature requests.

Thanks,
Tim

[1]: https://github.com/pkgcore/pkgdev


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] pkgdev: an alternative to `repoman commit`
  2021-02-27 14:50 [gentoo-dev] pkgdev: an alternative to `repoman commit` Tim Harder
@ 2021-02-27 15:22 ` Sam James
  2021-02-28  2:04 ` Louis Sautier
  2021-03-05 22:39 ` Tim Harder
  2 siblings, 0 replies; 5+ messages in thread
From: Sam James @ 2021-02-27 15:22 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1041 bytes --]



> On 27 Feb 2021, at 14:50, Tim Harder <radhermit@gentoo.org> wrote:
> 
> Hi all,
> 
> Finally responding to all the requests, I've hacked up an initial
> alternative to repoman's commit functionality in the form of pkgdev [1]
> that uses pkgcheck's API behind the scenes. The project is meant to grow
> into a collection of tools for Gentoo development and maintenance, but
> initially supports `pkgdev commit` and `pkgdev push` that should work
> for a basic git workflow on ebuild repos.

Thank you! Already using it.

> [snip]
> 
> Feel free to respond with questions, ideas, or flames. If you want to
> give it a shot, I believe a live ebuild for it has already been added to
> the tree at dev-util/pkgdev. Also, please open issues on the upstream
> project if you run into bugs or have feature requests.

Yes, please let me know if there’s any issues with the ebuild too.

I’ll add a tagged release once it’s made, obviously.

> 
> Thanks,
> Tim
> 
> [1]: https://github.com/pkgcore/pkgdev
> 


[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 618 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] pkgdev: an alternative to `repoman commit`
  2021-02-27 14:50 [gentoo-dev] pkgdev: an alternative to `repoman commit` Tim Harder
  2021-02-27 15:22 ` Sam James
@ 2021-02-28  2:04 ` Louis Sautier
  2021-02-28 17:51   ` Tim Harder
  2021-03-05 22:39 ` Tim Harder
  2 siblings, 1 reply; 5+ messages in thread
From: Louis Sautier @ 2021-02-28  2:04 UTC (permalink / raw
  To: gentoo-dev


[-- Attachment #1.1: Type: text/plain, Size: 1822 bytes --]

On 27/02/2021 15:50, Tim Harder wrote:
> Hi all,
> 
> Finally responding to all the requests, I've hacked up an initial
> alternative to repoman's commit functionality in the form of pkgdev [1]
> that uses pkgcheck's API behind the scenes. The project is meant to grow
> into a collection of tools for Gentoo development and maintenance, but
> initially supports `pkgdev commit` and `pkgdev push` that should work
> for a basic git workflow on ebuild repos.
> 
> In essence, `pkgdev commit` wraps `git add` and `git commit`
> functionality along with supporting GLEP 66 style message prefixes for
> any committed files across an ebuild repo. Package manifests are also
> regenerated and added automatically for any targeted pkg commits.
> 
> QA scanning is done on `pkgdev push` (not per `pkgdev commit` call) so
> knowing/learning how to interactively `git rebase` is currently
> essential to the workflow. Probably the main thing lacking is good docs
> for the workflow that pkgdev envisions as it differs slightly from the
> one used with repoman.
> 
> Feel free to respond with questions, ideas, or flames. If you want to
> give it a shot, I believe a live ebuild for it has already been added to
> the tree at dev-util/pkgdev. Also, please open issues on the upstream
> project if you run into bugs or have feature requests.
> 
> Thanks,
> Tim
> 
> [1]: https://github.com/pkgcore/pkgdev
> 

Hi Tim,
That's really nice, thanks!
I just tested it and it seems really nice, I just need to adjust to the 
new workflow.
Could you make "push -v" a bit more verbose ? I initially forgot to 
rebase and couldn't see the error message from the remote. I guess this 
also means that the current code will hide messages from hooks such as 
changes made to Bugzilla.

Cheers,

Louis


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] pkgdev: an alternative to `repoman commit`
  2021-02-28  2:04 ` Louis Sautier
@ 2021-02-28 17:51   ` Tim Harder
  0 siblings, 0 replies; 5+ messages in thread
From: Tim Harder @ 2021-02-28 17:51 UTC (permalink / raw
  To: gentoo-dev

On 2021-02-27 Sat 19:04, Louis Sautier wrote:
> Could you make "push -v" a bit more verbose ? I initially forgot to rebase
> and couldn't see the error message from the remote. I guess this also means
> that the current code will hide messages from hooks such as changes made to
> Bugzilla.

Should now be fixed in git.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] pkgdev: an alternative to `repoman commit`
  2021-02-27 14:50 [gentoo-dev] pkgdev: an alternative to `repoman commit` Tim Harder
  2021-02-27 15:22 ` Sam James
  2021-02-28  2:04 ` Louis Sautier
@ 2021-03-05 22:39 ` Tim Harder
  2 siblings, 0 replies; 5+ messages in thread
From: Tim Harder @ 2021-03-05 22:39 UTC (permalink / raw
  To: gentoo-dev

On 2021-02-27 Sat 07:50, Tim Harder wrote:
> Finally responding to all the requests, I've hacked up an initial
> alternative to repoman's commit functionality in the form of pkgdev [1]
> that uses pkgcheck's API behind the scenes. The project is meant to grow
> into a collection of tools for Gentoo development and maintenance, but
> initially supports `pkgdev commit` and `pkgdev push` that should work
> for a basic git workflow on ebuild repos.

Just wanted to follow up that an initial release is in the tree
providing commit support (pkgdev commit), manifesting (pkgdev manifest),
and push support (pkgdev push).

If you're missing your favorite commit-related repoman option please
open an issue. What's mainly still missing are good docs explaining
usage and workflow.

Thanks,
Tim


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-03-05 22:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-27 14:50 [gentoo-dev] pkgdev: an alternative to `repoman commit` Tim Harder
2021-02-27 15:22 ` Sam James
2021-02-28  2:04 ` Louis Sautier
2021-02-28 17:51   ` Tim Harder
2021-03-05 22:39 ` Tim Harder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox