[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#59239] [PATCH] gnu: Add python-synapseclient.
From: |
Maxim Cournoyer |
Subject: |
[bug#59239] [PATCH] gnu: Add python-synapseclient. |
Date: |
Tue, 21 Mar 2023 09:06:09 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
Hello Mădălin,
Ricardo Wurmus <rekado@elephly.net> writes:
> Hi Mădălin,
>
>> * gnu/packages/python-xyz.scm (python-synapseclient): New variable.
> […]
>
>> + ;;(method url-fetch)
>> + ;;(uri (pypi-uri "synapseclient" version))
>> + ;;(sha256
>> + ;; (base32
>> + ;; "1g2n5bbq5vkvprk4ap3sbz2q39cjwl8igy3krlskg34c1q7if7r4"))))
>
> Please remove this commented code.
>
>> + (build-system python-build-system)
>> + (arguments
>> + '(#:phases
>> + (modify-phases %standard-phases
>> + (add-after 'unpack 'relax-version-requirements
>> + (lambda _
>> + (substitute* "setup.py"
>> + (("keyring>=15,<23\\.5") "keyring>=15")
>
> Is this really a good idea? Upper bounds usually exist for a reason.
> We currently have version 23.9. Can you please clear this with upstream
> first?
>
>> + (("keyrings\\.alt==3\\.1") "keyrings.alt>=3.1"))))
>> + (add-before 'build 'set-homeless-shelter
>> + (lambda _
>> + ;; could not create '/homeless-shelter': Permission denied
>> + (setenv "HOME" "/tmp")))
>
> We’re setting HOME, not homeless-shelter.
>
>> + (replace 'check
>> + (lambda* (#:key tests? #:allow-other-keys)
>> + (when tests?
>> + ;; these tests require server authentification
>> SynapseNoCredentialsError
>> + (delete-file-recursively "tests/integration/synapseclient")
>> + (delete-file-recursively "tests/integration/synapseutils")
>> + (invoke "pytest")))))))
>
> typo: “authentication”. What exactly does this error mean? Does it
> talk to the internet? How are these tests supposed to be run?
>
> Is it possible to disable these tests with an option to pytest? That
> would seem better than conditionally deleting them.
>
> Finally, I think the test files should be deleted unconditionally, so
> that “tests?” only governs whether the tests are *run* instead of also
> causing other side effects.
Genle ping. Could you please send a v2 with the above suggested
changes?
--
Thanks,
Maxim
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug#59239] [PATCH] gnu: Add python-synapseclient.,
Maxim Cournoyer <=