GNU bug report logs -
#37300
Imported packages' indentation doesn't respect Guix conventions
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 37300 in the body.
You can then email your comments to 37300 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#37300
; Package
guix
.
(Wed, 04 Sep 2019 03:18:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Wed, 04 Sep 2019 03:18:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
The package definitions imported by Guix importers do not respect Guix
conventions regarding indentation.
Consider:
guix pypi import transaction
(package
(name "python-transaction")
(version "2.4.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "transaction" version))
(sha256
(base32
"17wz1y524ca07vr03yddy8dv0gbscs06dbdywmllxv5rc725jq3j"))))
(build-system python-build-system)
(propagated-inputs
`(("python-zope.interface" ,python-zope.interface)))
(native-inputs
`(("python-coverage" ,python-coverage)
("python-mock" ,python-mock)
("python-nose" ,python-nose)))
(home-page
"https://github.com/zopefoundation/transaction")
(synopsis "Transaction management for Python")
(description "Transaction management for Python")
(license #f))
Re-identing this in Emacs with the Guix .dir-local.el indentation
customizations yields:
(define-public python-transaction
(package
(name "python-transaction")
(version "2.4.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "transaction" version))
(sha256
(base32
"17wz1y524ca07vr03yddy8dv0gbscs06dbdywmllxv5rc725jq3j"))))
(build-system python-build-system)
(propagated-inputs
`(("python-zope.interface" ,python-zope.interface)))
(native-inputs
`(("python-coverage" ,python-coverage)
("python-mock" ,python-mock)
("python-nose" ,python-nose)))
(home-page
"https://github.com/zopefoundation/transaction")
(synopsis "Transaction management for Python")
(description "Transaction management for Python")
(license #f)))
Multiple record fields indentation offset is set to 1 instead of the
regular 2.
This is produced by the function pretty-print from ice-9. Maybe there's
a way to configure the indentation rules used by pretty-print?
Reply sent
to
Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
:
You have taken responsibility.
(Thu, 20 Jul 2023 13:24:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
:
bug acknowledged by developer.
(Thu, 20 Jul 2023 13:24:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 37300-done <at> debbugs.gnu.org (full text, mbox):
Hello,
Maxim Cournoyer <maxim.cournoyer <at> gmail.com> writes:
> The package definitions imported by Guix importers do not respect Guix
> conventions regarding indentation.
>
> Consider:
>
> guix pypi import transaction
>
> (package
> (name "python-transaction")
> (version "2.4.0")
> (source
> (origin
> (method url-fetch)
> (uri (pypi-uri "transaction" version))
> (sha256
> (base32
> "17wz1y524ca07vr03yddy8dv0gbscs06dbdywmllxv5rc725jq3j"))))
> (build-system python-build-system)
> (propagated-inputs
> `(("python-zope.interface" ,python-zope.interface)))
> (native-inputs
> `(("python-coverage" ,python-coverage)
> ("python-mock" ,python-mock)
> ("python-nose" ,python-nose)))
> (home-page
> "https://github.com/zopefoundation/transaction")
> (synopsis "Transaction management for Python")
> (description "Transaction management for Python")
> (license #f))
>
> Re-identing this in Emacs with the Guix .dir-local.el indentation
> customizations yields:
>
> (define-public python-transaction
> (package
> (name "python-transaction")
> (version "2.4.0")
> (source
> (origin
> (method url-fetch)
> (uri (pypi-uri "transaction" version))
> (sha256
> (base32
> "17wz1y524ca07vr03yddy8dv0gbscs06dbdywmllxv5rc725jq3j"))))
> (build-system python-build-system)
> (propagated-inputs
> `(("python-zope.interface" ,python-zope.interface)))
> (native-inputs
> `(("python-coverage" ,python-coverage)
> ("python-mock" ,python-mock)
> ("python-nose" ,python-nose)))
> (home-page
> "https://github.com/zopefoundation/transaction")
> (synopsis "Transaction management for Python")
> (description "Transaction management for Python")
> (license #f)))
That's been taken care of by applying 'guix style' to the
importer-generated definitions; it now looks like:
(define-public python-transaction
(package
(name "python-transaction")
(version "3.1.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "transaction" version))
(sha256
(base32
"191gj6pzvgw0726dsywy8pbj7shxnkc6pyrpnbiw9ryvjbmb3l35"))))
(build-system pyproject-build-system)
(propagated-inputs (list python-zope.interface))
(native-inputs (list python-coverage python-mock python-nose))
(home-page "https://github.com/zopefoundation/transaction")
(synopsis "Transaction management for Python")
(description "Transaction management for Python")
(license #f)))
which is correct.
Closing.
--
Thanks,
Maxim
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 18 Aug 2023 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 268 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.