[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#33185] [PATCH 6/7] gnu: Add patchwork.
From: |
Christopher Baines |
Subject: |
[bug#33185] [PATCH 6/7] gnu: Add patchwork. |
Date: |
Tue, 22 Jan 2019 22:31:24 +0000 |
User-agent: |
mu4e 1.0; emacs 26.1 |
Ludovic Courtès <address@hidden> writes:
> Christopher Baines <address@hidden> skribis:
>
>> ---
>> gnu/packages/patchutils.scm | 103 ++++++++++++++++++++++++++++++++++++
>> 1 file changed, 103 insertions(+)
>
> [...]
>
>> + (add-after 'install 'install-patchwork-admin
>> + (lambda* (#:key inputs outputs #:allow-other-keys)
>> + (let* ((out (assoc-ref outputs "out")))
>> + (mkdir-p (string-append out "/bin"))
>> + (call-with-output-file (string-append out
>> "/bin/patchwork-admin")
>> + (lambda (port)
>> + (display "#!/usr/bin/env python3
>> +import os, sys
>> +
>> +if __name__ == \"__main__\":
>> + os.environ.setdefault(
>> + \"DJANGO_SETTINGS_MODULE\",
>> + \"guix.patchwork.settings\"
>> + )
>> +
>> + from django.core.management import execute_from_command_line
>> +
>> + execute_from_command_line(sys.argv)" port)))
>> + (chmod (string-append out "/bin/patchwork-admin") #o555))
>> + #t)))))
>
> IMO these phases would be less intimidating with a few comments
> explaining what’s going on. :-)
>
>> + (synopsis "")
>> + (description "")
>> + (home-page "")
>> + (license "")))
>
> As swedebugia noted, you’re missing a few things here and in the commit
> log. :-)
>
> With these things fixed it should be good!
Thanks for taking a look. I've finally got around to taking another look
at these patches, and sent updated patches for the package, service and
system test.
I think it's a lot further forward, but there are still a few bits to
sort out. I'll send some comments in reply to the patches.
signature.asc
Description: PGP signature
- [bug#33185] [PATCH 6/7] gnu: Add patchwork.,
Christopher Baines <=