Page MenuHomeSoftware Heritage

No OneTemporary

diff --git a/PKG-INFO b/PKG-INFO
index f2275485..ab81d4de 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,37 +1,37 @@
Metadata-Version: 2.1
Name: swh.deposit
-Version: 0.0.83
+Version: 0.0.84
Summary: Software Heritage Deposit Server
Home-page: https://forge.softwareheritage.org/source/swh-deposit/
Author: Software Heritage developers
Author-email: swh-devel@inria.fr
License: UNKNOWN
Project-URL: Bug Reports, https://forge.softwareheritage.org/maniphest
Project-URL: Funding, https://www.softwareheritage.org/donate
Project-URL: Source, https://forge.softwareheritage.org/source/swh-deposit
Project-URL: Documentation, https://docs.softwareheritage.org/devel/swh-deposit/
Description: # swh-deposit
This is [Software Heritage](https://www.softwareheritage.org)'s
[SWORD 2.0](http://swordapp.github.io/SWORDv2-Profile/SWORDProfile.html) Server
implementation, as well as a simple client to upload deposits on the server.
**S.W.O.R.D** (**S**imple **W**eb-Service **O**ffering **R**epository
**D**eposit) is an interoperability standard for digital file deposit.
This implementation will permit interaction between a client (a
repository) and a server (SWH repository) to permit deposits of
software source code archives and associated metadata.
The documentation is at ./docs/README-specification.md
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 5 - Production/Stable
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Provides-Extra: testing
Provides-Extra: server
diff --git a/debian/changelog b/debian/changelog
index 5ad28852..8e7df65f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,798 +1,803 @@
-swh-deposit (0.0.83-1~swh1~bpo10+1) buster-swh; urgency=medium
+swh-deposit (0.0.84-1~swh1) unstable-swh; urgency=medium
- * Rebuild for buster-swh
+ * New upstream release 0.0.84 - (tagged by Antoine R. Dumont
+ (@ardumont) <ardumont@softwareheritage.org> on 2020-05-07 14:48:54
+ +0100)
+ * Upstream changes: - v0.0.84 - test: Add checks scenario test
+ cases - test_task: Mark some test to be ignored during debian
+ build
- -- Software Heritage autobuilder (on jenkins-debian1) <jenkins@jenkins-debian1.internal.softwareheritage.org> Thu, 07 May 2020 09:59:14 +0000
+ -- Software Heritage autobuilder (on jenkins-debian1) <jenkins@jenkins-debian1.internal.softwareheritage.org> Thu, 07 May 2020 13:52:51 +0000
swh-deposit (0.0.83-1~swh1) unstable-swh; urgency=medium
* New upstream release 0.0.83 - (tagged by Valentin Lorentz
<vlorentz@softwareheritage.org> on 2020-05-07 11:52:28 +0200)
* Upstream changes: - v0.0.83 - * Pass collection + id to the
checker instead of an URL.
-- Software Heritage autobuilder (on jenkins-debian1) <jenkins@jenkins-debian1.internal.softwareheritage.org> Thu, 07 May 2020 09:56:40 +0000
swh-deposit (0.0.82-1~swh1) unstable-swh; urgency=medium
* New upstream release 0.0.82 - (tagged by Antoine R. Dumont
(@ardumont) <antoine.romain.dumont@gmail.com> on 2020-04-23 16:40:34
+0200)
* Upstream changes: - v0.0.82 - deposit_read: Simplify api to
return only relevant deposit information - setup: Update the
minimum required runtime python3 version - spec: reference SWHID
using explicit anchors - Update type annotations and signatures
to match djangorestframework-stubs - pytest.ini: Avoid loading
flask plugin to prevent fixture name clash - Add a
pyproject.toml file to target py37 for black - Enable black -
tests: Adapt init_sentry api change call with environment parameter
- docs: Fix sphinx warnings - tests/gunicorn_config: Fix tests
after recent changes in swh-core
-- Software Heritage autobuilder (on jenkins-debian1) <jenkins@jenkins-debian1.internal.softwareheritage.org> Thu, 23 Apr 2020 14:45:49 +0000
swh-deposit (0.0.81-1~swh1) unstable-swh; urgency=medium
* New upstream release 0.0.81 - (tagged by David Douard
<david.douard@sdfa3.org> on 2020-01-13 11:50:07 +0100)
* Upstream changes: - v0.0.81
-- Software Heritage autobuilder (on jenkins-debian1) <jenkins@jenkins-debian1.internal.softwareheritage.org> Mon, 13 Jan 2020 11:07:54 +0000
swh-deposit (0.0.80-1~swh1) unstable-swh; urgency=medium
* New upstream release 0.0.80 - (tagged by David Douard
<david.douard@sdfa3.org> on 2020-01-09 15:54:57 +0100)
* Upstream changes: - v0.0.80
-- Software Heritage autobuilder (on jenkins-debian1) <jenkins@jenkins-debian1.internal.softwareheritage.org> Thu, 09 Jan 2020 15:00:32 +0000
swh-deposit (0.0.79-1~swh1) unstable-swh; urgency=medium
* New upstream release 0.0.79 - (tagged by Valentin Lorentz
<vlorentz@softwareheritage.org> on 2019-12-19 17:37:41 +0100)
* Upstream changes: - v0.0.79 - * requirements: Pin mypy and
django-stubs version - * homepage: Improve sentence phrasing
- * deposit.api: Add a basic api page to avoid broken link - *
removed dead and deprecated code - * Add sentry integration.
- * Fix log level + status code of the client CLI in case of error.
- * Improve validation of --author and --name. - * Update
documentation of --author to use names instead of emails.
-- Software Heritage autobuilder (on jenkins-debian1) <jenkins@jenkins-debian1.internal.softwareheritage.org> Thu, 19 Dec 2019 16:42:28 +0000
swh-deposit (0.0.78-1~swh1) unstable-swh; urgency=medium
* New upstream release 0.0.78 - (tagged by Antoine R. Dumont
(@ardumont) <antoine.romain.dumont@gmail.com> on 2019-11-25 18:28:13
+0100)
* Upstream changes: - v0.0.78 - deposit.signal: Simplify
configuration entry
-- Software Heritage autobuilder (on jenkins-debian1) <jenkins@jenkins-debian1.internal.softwareheritage.org> Mon, 25 Nov 2019 17:34:33 +0000
swh-deposit (0.0.77-1~swh1) unstable-swh; urgency=medium
* New upstream release 0.0.77 - (tagged by Antoine R. Dumont
(@ardumont) <antoine.romain.dumont@gmail.com> on 2019-11-25 14:48:59
+0100)
* Upstream changes: - v0.0.77 - deposit.signals: Send
versioned scheduler tasks - deposit.signals: Scheduler load-
deposit task with new endpoints - mypy: Fix missing import
-- Software Heritage autobuilder (on jenkins-debian1) <jenkins@jenkins-debian1.internal.softwareheritage.org> Mon, 25 Nov 2019 14:02:38 +0000
swh-deposit (0.0.76-1~swh1) unstable-swh; urgency=medium
* New upstream release 0.0.76 - (tagged by Antoine R. Dumont
(@ardumont) <antoine.romain.dumont@gmail.com> on 2019-11-25 12:26:07
+0100)
* Upstream changes: - v0.0.76 - Start adding mypy annotation
-- Software Heritage autobuilder (on jenkins-debian1) <jenkins@jenkins-debian1.internal.softwareheritage.org> Mon, 25 Nov 2019 11:29:48 +0000
swh-deposit (0.0.75-1~swh2) unstable-swh; urgency=medium
* Add egg-info to pybuild.testfiles
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Wed, 20 Nov 2019 15:06:31 +0100
swh-deposit (0.0.75-1~swh1) unstable-swh; urgency=medium
* New upstream release 0.0.75 - (tagged by Nicolas Dandrimont
<nicolas@dandrimont.eu> on 2019-10-30 16:50:25 +0100)
* Upstream changes: - Release swh.deposit v0.0.75 - Revert
changes to the task signature until the new loader is ready -
Migrate tests to pytest
-- Software Heritage autobuilder (on jenkins-debian1) <jenkins@jenkins-debian1.internal.softwareheritage.org> Wed, 30 Oct 2019 15:54:55 +0000
swh-deposit (0.0.74-1~swh1) unstable-swh; urgency=medium
* New upstream release 0.0.74 - (tagged by Antoine R. Dumont
(@ardumont) <antoine.romain.dumont@gmail.com> on 2019-10-09 11:30:00
+0200)
* Upstream changes: - v0.0.74 - deposit.signals: Scheduler
load-deposit task with new endpoints - deposit.private.api:
Expose new endpoints with no collection name - models: Migrate
model to enforce check on delete - setup: register the worker
task in the swh.workers entrypoint - tests: Explicit private
tests in their names - admin CLI: avoid redefining deposit name
in admin subcommand
-- Software Heritage autobuilder (on jenkins-debian1) <jenkins@jenkins-debian1.internal.softwareheritage.org> Wed, 09 Oct 2019 09:35:03 +0000
swh-deposit (0.0.73-1~swh1) unstable-swh; urgency=medium
* New upstream release 0.0.73 - (tagged by Antoine R. Dumont
(@ardumont) <antoine.romain.dumont@gmail.com> on 2019-09-05 10:15:29
+0200)
* Upstream changes: - v0.0.73 - loader: Add missing visit_type
attribute. - cli/client: Simplify url definition to use -
cli/admin: Add the default domain value to empty - deposit_data:
Remove no longer used DepositRequestType references - doc/sys-
info: Clarify commands - docs: add code of conduct document
-- Software Heritage autobuilder (on jenkins-debian1) <jenkins@jenkins-debian1.internal.softwareheritage.org> Thu, 05 Sep 2019 08:19:17 +0000
swh-deposit (0.0.72-1~swh1) unstable-swh; urgency=medium
* New upstream release 0.0.72 - (tagged by Valentin Lorentz
<vlorentz@softwareheritage.org> on 2019-06-18 17:15:53 +0200)
* Upstream changes: - Remove argument origin_id from call to
Loader.send_origin_metadata. - It no longer needs that argument.
-- Software Heritage autobuilder (on jenkins-debian1) <jenkins@jenkins-debian1.internal.softwareheritage.org> Wed, 19 Jun 2019 14:26:44 +0000
swh-deposit (0.0.71-1~swh1) unstable-swh; urgency=medium
* New upstream release 0.0.71 - (tagged by Antoine Lambert
<antoine.lambert@inria.fr> on 2019-05-23 11:02:05 +0200)
* Upstream changes: - version 0.0.71
-- Software Heritage autobuilder (on jenkins-debian1) <jenkins@jenkins-debian1.internal.softwareheritage.org> Thu, 23 May 2019 09:09:54 +0000
swh-deposit (0.0.70-1~swh1) unstable-swh; urgency=medium
* New upstream release 0.0.70 - (tagged by Antoine R. Dumont
(@ardumont) <antoine.romain.dumont@gmail.com> on 2019-05-10 12:04:33
+0200)
* Upstream changes: - v0.0.70 - Update documentations (getting-
started, metadata) - Improve cli client (expose new status
subcommand, clarify help messages) - Fixes some issues
-- Software Heritage autobuilder (on jenkins-debian1) <jenkins@jenkins-debian1.internal.softwareheritage.org> Fri, 10 May 2019 10:33:19 +0000
swh-deposit (0.0.69-1~swh1) unstable-swh; urgency=medium
* New upstream release 0.0.69 - (tagged by Antoine R. Dumont
(@ardumont) <antoine.romain.dumont@gmail.com> on 2019-05-09 10:25:43
+0200)
* Upstream changes: - v0.0.69 - cli.admin: Add an admin
subcommand 'deposit reschedule' - models: Keep scheduler task
ids reference on deposit model - cli: make the deposit cli
command a subcommand of the main 'swh' one - docs: update the
getting-started document to use 'swh deposit upload' command -
docs: Update the sys-info document to expose the `swh deposit admin
deposit - reschedule` subcommand
-- Software Heritage autobuilder (on jenkins-debian1) <jenkins@jenkins-debian1.internal.softwareheritage.org> Thu, 09 May 2019 08:35:53 +0000
swh-deposit (0.0.68-1~swh1) unstable-swh; urgency=medium
* New upstream release 0.0.68 - (tagged by Antoine R. Dumont
(@ardumont) <antoine.romain.dumont@gmail.com> on 2019-04-17 15:39:52
+0200)
* Upstream changes: - v0.0.68
-- Software Heritage autobuilder (on jenkins-debian1) <jenkins@jenkins-debian1.internal.softwareheritage.org> Wed, 17 Apr 2019 13:50:21 +0000
swh-deposit (0.0.67-1~swh1) unstable-swh; urgency=medium
* New upstream release 0.0.67 - (tagged by Antoine R. Dumont
(@ardumont) <antoine.romain.dumont@gmail.com> on 2019-02-20 17:39:59
+0100)
* Upstream changes: - v0.0.67 - settings.prod: Use
SWH_CONFIG_FILENAME to load & check swh config - requirements-
swh.txt: Update minimal version required for loader-tar - remove
debian/ tree from master branch
-- Software Heritage autobuilder (on jenkins-debian1) <jenkins@jenkins-debian1.internal.softwareheritage.org> Wed, 20 Feb 2019 16:45:22 +0000
swh-deposit (0.0.66-1~swh1) unstable-swh; urgency=medium
* New upstream release 0.0.66 - (tagged by Antoine R. Dumont
(@ardumont) <antoine.romain.dumont@gmail.com> on 2019-02-16 10:22:30
+0100)
* Upstream changes: - v0.0.66 - deposit.loader.checker: Fix
logger initialization
-- Software Heritage autobuilder (on jenkins-debian1) <jenkins@jenkins-debian1.internal.softwareheritage.org> Sat, 16 Feb 2019 09:27:54 +0000
swh-deposit (0.0.65-1~swh1) unstable-swh; urgency=medium
* New upstream release 0.0.65 - (tagged by Antoine R. Dumont
(@ardumont) <antoine.romain.dumont@gmail.com> on 2019-02-14 18:28:48
+0100)
* Upstream changes: - v0.0.65 - swh/manage: Fix flake8 warning
- Bump dependency on swh-scheduler 0.0.39 - Rewrite celery tasks
as a decorated function - loader.scheduler: Remove non
production code - deposit.loader.tasks: Add tests
-- Software Heritage autobuilder (on jenkins-debian1) <jenkins@jenkins-debian1.internal.softwareheritage.org> Thu, 14 Feb 2019 17:34:09 +0000
swh-deposit (0.0.63-1~swh2) unstable-swh; urgency=medium
* New upstream release, fixing dependencies
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Thu, 14 Feb 2019 18:16:04 +0100
swh-deposit (0.0.63-1~swh1) unstable-swh; urgency=medium
* v0.0.63
* deposit_list: Return status_detail as string message and not as
nested
* dict
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Mon, 17 Sep 2018 16:23:58 +0200
swh-deposit (0.0.62-1~swh1) unstable-swh; urgency=medium
* v0.0.62
* private.deposit_list: Make the endpoint private
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Wed, 12 Sep 2018 15:58:21 +0200
swh-deposit (0.0.61-1~swh1) unstable-swh; urgency=medium
* v0.0.61
* Add api endpoint to list deposits with pagination
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Wed, 12 Sep 2018 14:44:58 +0200
swh-deposit (0.0.60-1~swh1) unstable-swh; urgency=medium
* v0.0.60
* Fix production issue regarding deposit status endpoint.
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Tue, 04 Sep 2018 18:30:01 +0200
swh-deposit (0.0.59-1~swh1) unstable-swh; urgency=medium
* v0.0.59
* deposit.utils: Fix the potential metadata information loss
* docs: Add sparse/metadata deposit specs
* docs: Update documentation about persistent id with context
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Tue, 24 Jul 2018 14:15:55 +0200
swh-deposit (0.0.58-1~swh1) unstable-swh; urgency=medium
* v0.0.58
* d/*: Update to latest python3-swh.model dependency version
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Mon, 23 Jul 2018 14:31:46 +0200
swh-deposit (0.0.57-1~swh1) unstable-swh; urgency=medium
* v0.0.57
* swh.deposit.client: Simplify client parsing
* api/deposit_status: Make swh-id be a directory id derivative
* swh.deposit.models: Keep deposit request's raw metadata
* bin: Migrate internal script to use the deposit client
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Mon, 23 Jul 2018 13:43:23 +0200
swh-deposit (0.0.56-1~swh1) unstable-swh; urgency=medium
* v0.0.56
* docs: Update deposit with status rejected documentation
* deposit_status: Update the deposit status endpoint with details for
* rejected deposit
* deposit_check: Reject invalid deposit (associated archive containing
* only single archive)
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Tue, 17 Jul 2018 13:27:35 +0200
swh-deposit (0.0.55-1~swh1) unstable-swh; urgency=medium
* v0.0.55
* deposit_status: Open detailed status when a deposit fails the checks
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Wed, 11 Jul 2018 12:06:10 +0200
swh-deposit (0.0.54-1~swh1) unstable-swh; urgency=medium
* v0.0.54
* deposit_check: Improve details in failing checks
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Tue, 10 Jul 2018 10:23:35 +0200
swh-deposit (0.0.53-1~swh1) unstable-swh; urgency=medium
* v0.0.53
* swh.deposit.parsers: Fix xml parsing to not lose duplicated entries
* swh.deposit.tests: Make sure failing tests are complete
* deposit_update: Fix check error during update with wrong mimetype
* deposit_read: Persistent identifier representation has changed
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Fri, 06 Jul 2018 16:26:08 +0200
swh-deposit (0.0.52-1~swh1) unstable-swh; urgency=medium
* v0.0.52
* Make the deposit's scheduler configuration adjustable
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Thu, 03 May 2018 15:16:30 +0200
swh-deposit (0.0.51-1~swh1) unstable-swh; urgency=medium
* v0.0.51
* Improve origin_visit initialization step
* Properly sandbox the prepare statement so that if it breaks, we can
* update appropriately the visit with the correct status
* Let the visit date be set in lower layer
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Wed, 07 Mar 2018 11:07:11 +0100
swh-deposit (0.0.50-1~swh1) unstable-swh; urgency=medium
* v0.0.50
* Bump requirements up for new swh.loader.tar
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Mon, 12 Feb 2018 11:21:03 +0100
swh-deposit (0.0.49-1~swh1) unstable-swh; urgency=medium
* Release swh.deposit v0.0.49
* Use snapshots instead of occurrences
-- Nicolas Dandrimont <nicolas@dandrimont.eu> Tue, 06 Feb 2018 14:48:53 +0100
swh-deposit (0.0.48-1~swh1) unstable-swh; urgency=medium
* v0.0.48
* swh.deposit.api.private: Fix revision message missing client name
* docs: simplify endpoints and delete all sword text
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Fri, 02 Feb 2018 08:37:39 +0100
swh-deposit (0.0.47-1~swh1) unstable-swh; urgency=medium
* v0.0.47
* swh.loader: Be consistent in returning loader result in task
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Tue, 30 Jan 2018 19:03:49 +0100
swh-deposit (0.0.46-1~swh1) unstable-swh; urgency=medium
* v0.0.46
* swh.deposit.client: Explicit private api client
* swh.deposit.client.cli: Fix flag compatibility issue
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Tue, 30 Jan 2018 12:19:09 +0100
swh-deposit (0.0.45-1~swh1) unstable-swh; urgency=medium
* v0.0.45
* Simplify collection name retrieval
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Mon, 29 Jan 2018 18:09:29 +0100
swh-deposit (0.0.44-1~swh1) unstable-swh; urgency=medium
* v0.0.44
* docs: Update getting-started documentations
* swh.deposit.api: Add swh_id key to None by default in status
endpoint
* swh.deposit.api: Fix tar archive permission in update endpoints
* swh.deposit.api.private: Fix pep8 violation about catch Exception
* swh.deposit.api: Do not hardcode the server uri in service document
* endpoint
* swh.deposit.client: Add a deposit client
* d/control: Create python3-swh.deposit.client package
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Mon, 29 Jan 2018 17:41:12 +0100
swh-deposit (0.0.43-1~swh1) unstable-swh; urgency=medium
* v0.0.43
* swh.deposit.api: Deposit returns persistent identifiers
* swh.deposit.api: Rename deposit statuses
* swh.deposit: Support standard tarball formats (.tar.*)
* docs: Update documentation about new archive format support
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Wed, 17 Jan 2018 12:02:20 +0100
swh-deposit (0.0.42-1~swh1) unstable-swh; urgency=medium
* v0.0.42
* Fix cosmetic issues in deposit.s.o
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Wed, 10 Jan 2018 16:25:48 +0100
swh-deposit (0.0.41-1~swh1) unstable-swh; urgency=medium
* v0.0.41
* swh.deposit.checks: Add url validation
* swh.deposit: Add splash screen to homepage
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Wed, 10 Jan 2018 12:12:43 +0100
swh-deposit (0.0.40-1~swh1) unstable-swh; urgency=medium
* v0.0.40
* Fix corner case on deposit checks and clarify intents on checks
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Mon, 08 Jan 2018 18:21:38 +0100
swh-deposit (0.0.39-1~swh1) unstable-swh; urgency=medium
* v0.0.39
* Amend detail status message
* docs: Fix url
* Fix check of deposit without content scenario
* Refactor metadata check with pythonic function
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Mon, 08 Jan 2018 12:43:15 +0100
swh-deposit (0.0.38-1~swh1) unstable-swh; urgency=medium
* v0.0.38
* Provide existing swh id in the status api when it exists
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Fri, 08 Dec 2017 09:41:21 +0100
swh-deposit (0.0.37-1~swh1) unstable-swh; urgency=medium
* v0.0.37
* Adapt to latest dependency on loader-core and storage
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Thu, 07 Dec 2017 15:30:32 +0100
swh-deposit (0.0.36-1~swh1) unstable-swh; urgency=medium
* v0.0.36
* swh.deposit.api.private: Deposit's author is swh
* d/control: Bump to latest dependencies version
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Wed, 06 Dec 2017 12:21:45 +0100
swh-deposit (0.0.35-1~swh1) unstable-swh; urgency=medium
* v0.0.35
* swh.deposit.loader: Fix intermediary status
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Tue, 05 Dec 2017 19:23:40 +0100
swh-deposit (0.0.34-1~swh1) unstable-swh; urgency=medium
* v0.0.34
* d/control: Bump to latest version
* Fix client config typo for local url
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Tue, 05 Dec 2017 15:43:59 +0100
swh-deposit (0.0.33-1~swh1) unstable-swh; urgency=medium
* v0.0.33
* Bump to latest swh.loader.tar
* dev swh.deposit.api: Add parent deposit to deposit at creation time
* swh.deposit.service: Clean dead code
* bin/Makefile: Add multipart deposit sample script
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Mon, 04 Dec 2017 18:59:50 +0100
swh-deposit (0.0.32-1~swh1) unstable-swh; urgency=medium
* v0.0.32
* Migrate swh.deposit.injection module to swh.deposit.loader
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Thu, 30 Nov 2017 16:27:19 +0100
swh-deposit (0.0.31-1~swh1) unstable-swh; urgency=medium
* v0.0.31
* swh.deposit.api: Separate public/private api
* swh.deposit.api.common: Fix authentication issue in production
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Thu, 30 Nov 2017 13:18:15 +0100
swh-deposit (0.0.30-1~swh1) unstable-swh; urgency=medium
* v0.0.30
* swh.deposit.signals: Fix wrong task scheduling argument
* swh.deposit.migration: Remove default value
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Wed, 29 Nov 2017 18:34:29 +0100
swh-deposit (0.0.29-1~swh1) unstable-swh; urgency=medium
* v0.0.29
* Fix inconsistent term in code
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Wed, 29 Nov 2017 15:22:36 +0100
swh-deposit (0.0.28-1~swh1) unstable-swh; urgency=medium
* v0.0.28
* swh.deposit: Use revision_id as swh_id
* swh.deposit: Untangle checks from the current client/server requests
flow
* swh.deposit.injection: Trigger scheduling of checks on deposit
* swh.deposit.injection: Trigger scheduling of loading on deposit
* swh.deposit.injection: Add origin_metadata during loading
* d/control: Bump to latest swh layers
* swh.deposit.tests: Add and refactor tests
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Wed, 29 Nov 2017 15:03:56 +0100
swh-deposit (0.0.27-1~swh1) unstable-swh; urgency=medium
* v0.0.27
* swh.deposit.parsers: Fix edge case about decimal serialization
* swh.deposit.injection.loader: Add test on loading a deposit
* swh.loader.test: Fix path initialization
* swh.deposit.injection.scheduler: Adapt default task
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Fri, 17 Nov 2017 10:54:08 +0100
swh-deposit (0.0.26-1~swh1) unstable-swh; urgency=medium
* v0.0.26
* swh.deposit: Be consistent in the deposit_status key returned
* docs: Move actual docs inside the docs/ folder
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Wed, 25 Oct 2017 17:37:02 +0200
swh-deposit (0.0.25-1~swh1) unstable-swh; urgency=medium
* v0.0.25
* swh.deposit.production: Add support for proxy headers in django
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Tue, 24 Oct 2017 14:08:42 +0200
swh-deposit (0.0.24-1~swh1) unstable-swh; urgency=medium
* v0.0.24
* swh.deposit.api: Fix 500 error when browsing api through browser
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Mon, 23 Oct 2017 15:37:11 +0200
swh-deposit (0.0.23-1~swh1) unstable-swh; urgency=medium
* v0.0.23
* swh.deposit.api: Deal with new 'rejected' status on deposit
* docs: Update documentation to latest development
* swh.deposit.api: Update docstrings properly
* swh.deposit.api: Add post check validation on deposit
* swh.deposit.tests: Add edge case scenario tests (upload size limit,
* deposit read archives, etc...)
* swh.deposit.api: Fix mismatch hash check message
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Mon, 23 Oct 2017 11:31:39 +0200
swh-deposit (0.0.22-1~swh1) unstable-swh; urgency=medium
* v0.0.22
* swh.deposit.api: Return fqdn urls
* swh.deposit.api: Use variable to define the pivot status 'ready'
* swh.deposit.api: Add state iri in the deposit receipt
* swh.deposit.api: Add deposit's status in the deposit receipt
* swh.deposit.api: Explicit no support for Metadata-Relevant header
* swh.deposit.tests: Fix potential listing error
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Thu, 19 Oct 2017 15:38:01 +0200
swh-deposit (0.0.21-1~swh1) unstable-swh; urgency=medium
* v0.0.21
* swh.deposit.api: Simplify clean up temporary directory routine for
* deposit read archive api
* swh.deposit.tests: Add missing test cases around deposit read api
* README-injection: Improve sentence phrasing
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Wed, 18 Oct 2017 11:36:40 +0200
swh-deposit (0.0.20-1~swh1) unstable-swh; urgency=medium
* v0.0.20
* swh.deposit.scheduler: Move scheduling part to swh.deposit.injection
* swh.deposit.injection: Separation of concern between reading/loading
* swh.deposit.api: Remove dead code
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Mon, 16 Oct 2017 18:23:19 +0200
swh-deposit (0.0.19-1~swh1) unstable-swh; urgency=medium
* v0.0.19
* Define summary message for method not allowed endpoints
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Mon, 16 Oct 2017 12:46:11 +0200
swh-deposit (0.0.18-1~swh1) unstable-swh; urgency=medium
* v0.0.18
* swh.deposit.api.deposit: make slug header mandatory
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Sat, 14 Oct 2017 10:45:08 +0200
swh-deposit (0.0.17-1~swh1) unstable-swh; urgency=medium
* v0.0.17
* Fix missing files for packaging
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Fri, 13 Oct 2017 16:37:27 +0200
swh-deposit (0.0.16-1~swh1) unstable-swh; urgency=medium
* v0.0.16
* packaging: Split python3-swh.deposit / python3-swh.deposit.injection
* swh.deposit.injection: Add deposit archive ingestion task
* packaging: Cleanup
* swh.deposit.auth: Cleanup authentication to use directly drf's
* swh.deposit.api: Split between private and public api
* swh.deposit.api: Add private api to update deposit's status
* swh.deposit.scheduler.cli: Add one-shot task scheduling machinery
* swh.deposit.tests: use the collection name when creating uri
* swh.deposit.admin: Clean up unused code
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Fri, 13 Oct 2017 15:41:47 +0200
swh-deposit (0.0.15-1~swh1) unstable-swh; urgency=medium
* v0.0.15
* swh.deposit.api: Add service to clean up temporary archives
* swh.deposit.api: Add private api to read a deposit's raw content
* swh.deposit.api: Update docstring
* swh.deposit.api: Switch from objstorage layer to django's
* docs: Fix typo in private yaml sample
* README-dev: Update documentation about bootstraping the dev env
* swh.deposit.tests: Check existence before directory cleanup
* Remove reference to noop and verbose since no longer in spec 2.0
* bin: Reference sample executables to exercise local run
* swh.deposit.scheduler.cli: Add a scheduling implementation on
deposit
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Mon, 09 Oct 2017 10:23:48 +0200
swh-deposit (0.0.14-1~swh1) unstable-swh; urgency=medium
* v0.0.14
* swh.deposit.tests: Add missing test cases scenario about updates
* docs: Improve and make the documentation browsable through browser
* docs: Add README-sys, README-getting-started, README-injection
* swh.deposit.create_user: Fix collection setup
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Thu, 28 Sep 2017 16:56:54 +0200
swh-deposit (0.0.13-1~swh1) unstable-swh; urgency=medium
* v0.0.13
* swh.deposit.api: Restrict access to one's own collection
* swh.deposit.api: Unify checks on all endpoints
* swh.deposit: Separate the collection from the client notion
* swh.deposit.api: Add delete deposit endpoint
* swh.deposit.api: Add delete content (archives) from deposit
* swh.deposit.api: Empty post on EDIT-IRI can finalize a deposit
* swh.deposit.model: Relax unicity constraint on external id
* swh.deposit.api: PUT does not permit to have the deposit_id None
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Mon, 25 Sep 2017 18:02:46 +0200
swh-deposit (0.0.12-1~swh1) unstable-swh; urgency=medium
* v0.0.12
* swh.deposit.api: Separate the replace metadata from the replace
* archive routine
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Fri, 22 Sep 2017 18:59:48 +0200
swh-deposit (0.0.11-1~swh1) unstable-swh; urgency=medium
* v0.0.11
* swh.deposit.static: Add static folder
* swh.deposit.api: Accept modifications to deposit only in partial
status
* swh.deposit.api: Update/Add new deposit metadata/archive
* swh.deposit.api.tests: Tests new use cases
* README: Update and simplify documentation
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Fri, 22 Sep 2017 16:24:25 +0200
swh-deposit (0.0.10-1~swh1) unstable-swh; urgency=medium
* v0.0.10
* swh.deposit.config: Centralize default config in .config module
* swh.deposit.api: Split api module definition
* swh.deposit.auth: Improve white-listing mechanism
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Thu, 21 Sep 2017 10:41:04 +0200
swh-deposit (0.0.9-1~swh1) unstable-swh; urgency=medium
* v0.0.9
* swh.deposit.api: white list / from authentication
* swh.deposit.api: Update state iri endpoint
* swh.deposit.api: Update new IRI endpoints to deal with update
* swh.deposit.api.deposit: Clean up dead code
* README: Update specification on IRIs
* swh.deposit.urls: Fix endpoints to finish with trailing /
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Wed, 20 Sep 2017 18:12:33 +0200
swh-deposit (0.0.8-1~swh1) unstable-swh; urgency=medium
* v0.0.8
* swh.deposit.settings: Split logging configuration per platform
* swh.deposit.settings.common: Prefer configuration over code
* swh.deposit.api: Enforce basic authentication
* swh.deposit: Clarify SWHDefaultConfig class's intent
* clean up: Removing user test api endpoints
* doc: Update docstrings
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Tue, 19 Sep 2017 14:23:05 +0200
swh-deposit (0.0.7-1~swh1) unstable-swh; urgency=medium
* v0.0.7
* Add swh.deposit.create_user routine to setup user information
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Tue, 19 Sep 2017 10:44:59 +0200
swh-deposit (0.0.6-1~swh1) unstable-swh; urgency=medium
* v0.0.6
* Make the packages include all that's needed (templates, fixtures)
* Fix typo in production settings file
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Mon, 18 Sep 2017 16:17:53 +0200
swh-deposit (0.0.5-1~swh1) unstable-swh; urgency=medium
* v0.0.5
* Package and add missing python3-djangorestframework-xml
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Mon, 18 Sep 2017 15:10:01 +0200
swh-deposit (0.0.4-1~swh1) unstable-swh; urgency=medium
* v0.0.4
* README: Update spec documentation according to latest development
* README-dev: Initiate a development readme to explicit the local
* dev/production mode
* swh.deposit.settings: Split profile configuration per deployment
* platform (dev, production)
* swh.deposit.views:
* Adapt returned errors to be sword compliant
* Change starting api route endpoints
* Improve deposit request headers checks
* swh.deposit.tests:
* Inhibit side-effects in tests (objstorage, configuration loading,
etc...)
* Add authentication in tests
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Sat, 16 Sep 2017 15:38:44 +0200
swh-deposit (0.0.3-1~swh1) unstable-swh; urgency=medium
* v0.0.3
* Migrate to django framework
* Deployment tryouts
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Tue, 01 Aug 2017 12:36:22 +0200
swh-deposit (0.0.2-1~swh1) unstable-swh; urgency=medium
* v0.0.2
* Fix db connection initialization
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Wed, 14 Jun 2017 13:49:31 +0200
swh-deposit (0.0.1-1~swh1) unstable-swh; urgency=medium
* Initial release
* v0.0.1
* Add basic server implementation for deployment testing
-- Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Wed, 14 Jun 2017 12:48:37 +0200
diff --git a/swh.deposit.egg-info/PKG-INFO b/swh.deposit.egg-info/PKG-INFO
index f2275485..ab81d4de 100644
--- a/swh.deposit.egg-info/PKG-INFO
+++ b/swh.deposit.egg-info/PKG-INFO
@@ -1,37 +1,37 @@
Metadata-Version: 2.1
Name: swh.deposit
-Version: 0.0.83
+Version: 0.0.84
Summary: Software Heritage Deposit Server
Home-page: https://forge.softwareheritage.org/source/swh-deposit/
Author: Software Heritage developers
Author-email: swh-devel@inria.fr
License: UNKNOWN
Project-URL: Bug Reports, https://forge.softwareheritage.org/maniphest
Project-URL: Funding, https://www.softwareheritage.org/donate
Project-URL: Source, https://forge.softwareheritage.org/source/swh-deposit
Project-URL: Documentation, https://docs.softwareheritage.org/devel/swh-deposit/
Description: # swh-deposit
This is [Software Heritage](https://www.softwareheritage.org)'s
[SWORD 2.0](http://swordapp.github.io/SWORDv2-Profile/SWORDProfile.html) Server
implementation, as well as a simple client to upload deposits on the server.
**S.W.O.R.D** (**S**imple **W**eb-Service **O**ffering **R**epository
**D**eposit) is an interoperability standard for digital file deposit.
This implementation will permit interaction between a client (a
repository) and a server (SWH repository) to permit deposits of
software source code archives and associated metadata.
The documentation is at ./docs/README-specification.md
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 5 - Production/Stable
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Provides-Extra: testing
Provides-Extra: server
diff --git a/swh/deposit/loader/checker.py b/swh/deposit/loader/checker.py
index 5c01027c..bb054529 100644
--- a/swh/deposit/loader/checker.py
+++ b/swh/deposit/loader/checker.py
@@ -1,48 +1,51 @@
-# Copyright (C) 2017-2019 The Software Heritage developers
+# Copyright (C) 2017-2020 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
import logging
from typing import Mapping
from swh.core.config import SWHConfig
from swh.deposit.client import PrivateApiDepositClient
logger = logging.getLogger(__name__)
class DepositChecker(SWHConfig):
"""Deposit checker implementation.
Trigger deposit's checks through the private api.
"""
CONFIG_BASE_FILENAME = "deposit/checker"
DEFAULT_CONFIG = {
"deposit": ("dict", {"url": "http://localhost:5006/1/private/", "auth": {},})
}
def __init__(self, config=None):
super().__init__()
if config is None:
self.config = self.parse_config_file()
else:
self.config = config
self.client = PrivateApiDepositClient(config=self.config["deposit"])
def check(self, collection: str, deposit_id: str) -> Mapping[str, str]:
status = None
deposit_check_url = f"/{collection}/{deposit_id}/check/"
+ logger.debug("deposit-check-url: %s", deposit_check_url)
try:
r = self.client.check(deposit_check_url)
+ logger.debug("Check result: %s", r)
status = "eventful" if r == "verified" else "failed"
except Exception:
- logger.exception("Failure during check on '%s'" % (deposit_check_url,))
+ logger.exception("Failure during check on '%s'", deposit_check_url)
status = "failed"
+ logger.debug("Check status: %s", status)
return {"status": status}
diff --git a/swh/deposit/tests/loader/test_tasks.py b/swh/deposit/tests/loader/test_tasks.py
index 2e4fe804..c62fd45a 100644
--- a/swh/deposit/tests/loader/test_tasks.py
+++ b/swh/deposit/tests/loader/test_tasks.py
@@ -1,21 +1,69 @@
-# Copyright (C) 2018-2019 The Software Heritage developers
+# Copyright (C) 2018-2020 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
-from unittest.mock import patch
+import pytest
-@patch("swh.deposit.loader.checker.DepositChecker.check")
-def test_deposit_check(checker, swh_config, swh_app, celery_session_worker):
- checker.return_value = {"status": "uneventful"}
+@pytest.mark.db
+def test_deposit_check_eventful(mocker, swh_config, swh_app, celery_session_worker):
+ """Successful check should make the check succeed
+ """
+ client = mocker.patch("swh.deposit.loader.checker.PrivateApiDepositClient.check")
+ client.return_value = "verified"
+
+ collection = "collection"
+ deposit_id = 42
+ res = swh_app.send_task(
+ "swh.deposit.loader.tasks.ChecksDepositTsk", args=[collection, deposit_id]
+ )
+ assert res
+ res.wait()
+ assert res.successful()
+
+ assert res.result == {"status": "eventful"}
+ client.assert_called_once_with(f"/{collection}/{deposit_id}/check/")
+
+
+@pytest.mark.db
+def test_deposit_check_failure(mocker, swh_config, swh_app, celery_session_worker):
+ """Unverified check status should make the check fail
+
+ """
+ client = mocker.patch("swh.deposit.loader.checker.PrivateApiDepositClient.check")
+ client.return_value = "not-verified" # will make the status "failed"
+
+ collection = "collec"
+ deposit_id = 666
+ res = swh_app.send_task(
+ "swh.deposit.loader.tasks.ChecksDepositTsk", args=[collection, deposit_id]
+ )
+ assert res
+ res.wait()
+ assert res.successful()
+
+ assert res.result == {"status": "failed"}
+ client.assert_called_once_with(f"/{collection}/{deposit_id}/check/")
+
+
+@pytest.mark.db
+def test_deposit_check_3(mocker, swh_config, swh_app, celery_session_worker):
+ """Unexpected failures should fail the check
+
+ """
+ client = mocker.patch("swh.deposit.loader.checker.PrivateApiDepositClient.check")
+ client.side_effect = ValueError("unexpected failure will make it fail")
+
+ collection = "another-collection"
+ deposit_id = 999
res = swh_app.send_task(
- "swh.deposit.loader.tasks.ChecksDepositTsk", args=["collection", 42]
+ "swh.deposit.loader.tasks.ChecksDepositTsk", args=[collection, deposit_id]
)
assert res
res.wait()
assert res.successful()
- assert res.result == {"status": "uneventful"}
- checker.assert_called_once_with("collection", 42)
+ assert res.result == {"status": "failed"}
+ client.assert_called_once_with(f"/{collection}/{deposit_id}/check/")
diff --git a/version.txt b/version.txt
index 5ecc8642..439e1d3c 100644
--- a/version.txt
+++ b/version.txt
@@ -1 +1 @@
-v0.0.83-0-gd2559583
\ No newline at end of file
+v0.0.84-0-g25d7f75b
\ No newline at end of file

File Metadata

Mime Type
text/x-diff
Expires
Mon, Aug 18, 8:33 PM (18 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3450454

Event Timeline