- Jan 08, 2020
-
-
David Douard authored
this code was the only user for the swh.core.tarball.compress function. Doing so allows to reduce a bit the complexity and coupligin in the code. It will also allow to get rid of the swh.core.tarball.compress function.
-
David Douard authored
No need for this to be a subpackage.
-
- Jan 07, 2020
-
-
vlorentz authored
This reflects what is done in practice and what the code expects. Using an email is invalid because the value of --author is used in a `http://schema.org/name` property, not `http://schema.org/email`
-
- Dec 20, 2019
-
-
David Douard authored
This new option allows these cli commands (upload and status) to produce JSON or YAML output, so it's easier to test.
-
David Douard authored
so the scheduler interaction code is executed. Note that this does not test for correctness in these interactions yet. also move tests/__init__.py content in tests/conftest.py and adapt test code accordingly. This also ensures retries_left is set otherwise tests may fail when using the local sheduler.
-
David Douard authored
Replace the (non-working) django init hook by overloaded django_db_setup and make this django_db_setup use pytest-postgresql so we do not depend on external test environment (running postgresql server, tox or hand managed pifpaf).
-
David Douard authored
even if there is only one of those, otherwise the loader will fail since this later does expect the archive to be a zip file.
-
David Douard authored
Also replace utils.origin_url_from() by a Deposit.origin_url property, and ensure the archive file format of the uploaded file is supported. The rename of invalid.tar.gz as invalid.gz is required for tests to pass which should not be the case. It will be investigated in a later revision, but for now we want tests to be green. This requires to make config dict available in SWHPrivateAPIView so we can have access to a scheduler from there.
-
David Douard authored
ensuring these generalted URLs are correct and resolvable (eg. when the WSGI app is mounted on a different path than /). This needed to move the post_deposit_save code from a signal directly within the view, so we have a request from which we can forge absolute URLs.
-
- Dec 19, 2019
-
-
vlorentz authored
Mostly, the code used to allow having either --author or --name, while it should use either both (when generating metadata) or neither (when using a metadata file). This code fixes this, and also catches some more invalid cases.
-
vlorentz authored
This uses a context-manager instead of manually handling removing the file.
-
vlorentz authored
-
- Dec 18, 2019
- Dec 12, 2019
-
-
Antoine R. Dumont authored
Related to 0a9ec2a9
-
- Dec 06, 2019
-
-
Antoine R. Dumont authored
The deposit service only sends message for the current new deposit loader.
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
Related to T2140
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
-
- Dec 03, 2019
-
-
Antoine Lambert authored
Current djangos-stubs version (1.2.0) is not compatible with latest mypy one (0.750). So pin their version until the issue is fixed.
-
- Nov 25, 2019
-
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
Related T2024
-
- Nov 21, 2019
-
-
David Douard authored
so pre-commit is happy.
-
David Douard authored
-
Nicolas Dandrimont authored
-
Nicolas Dandrimont authored
-
Nicolas Dandrimont authored
-
- Nov 20, 2019
-
-
Nicolas Dandrimont authored
-
- Nov 07, 2019
-
-
Stefano Zacchiroli authored
-
Stefano Zacchiroli authored
-
Stefano Zacchiroli authored
hat tip to @anlambert for the tip
-
- Nov 01, 2019
-
-
Stefano Zacchiroli authored
-
Stefano Zacchiroli authored
-
Stefano Zacchiroli authored
-
Stefano Zacchiroli authored
-
Stefano Zacchiroli authored
make mypy 0.730 pass cleanly again
-