diff --git a/MANIFEST.in b/MANIFEST.in index e19b7ae..da1a400 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,5 +1,7 @@ include Makefile include requirements.txt include requirements-swh.txt +include requirements-http.txt +include requirements-db.txt include version.txt recursive-include swh/core/sql *.sql diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..476af06 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,460 @@ +swh-core (0.0.61-1~swh1) unstable-swh; urgency=medium + + * New upstream release 0.0.61 - (tagged by David Douard + on 2019-05-17 10:32:07 +0200) + * Upstream changes: - v0.0.61 + + -- Software Heritage autobuilder (on jenkins-debian1) Fri, 17 May 2019 08:38:08 +0000 + +swh-core (0.0.60-1~swh1) unstable-swh; urgency=medium + + * New upstream release 0.0.60 - (tagged by David Douard + on 2019-05-06 15:27:44 +0200) + * Upstream changes: - v0.0.60 + + -- Software Heritage autobuilder (on jenkins-debian1) Mon, 06 May 2019 13:32:48 +0000 + +swh-core (0.0.59-1~swh1) unstable-swh; urgency=medium + + * New upstream release 0.0.59 - (tagged by Valentin Lorentz + on 2019-04-09 16:55:41 +0200) + * Upstream changes: - Explicitely give Db connections back to the + pool. - So they gracefully release the connection on error + instead - of relying on reference-counting to call the Db's + `__del__` - (which does not happen in Hypothesis tests) because + a ref - to it is kept via the traceback object. + + -- Software Heritage autobuilder (on jenkins-debian1) Tue, 09 Apr 2019 16:12:32 +0000 + +swh-core (0.0.58-1~swh1) unstable-swh; urgency=medium + + * New upstream release 0.0.58 - (tagged by Antoine Lambert + on 2019-04-02 17:19:05 +0200) + * Upstream changes: - version 0.0.58 + + -- Software Heritage autobuilder (on jenkins-debian1) Tue, 02 Apr 2019 15:24:34 +0000 + +swh-core (0.0.57-1~swh1) unstable-swh; urgency=medium + + * New upstream release 0.0.57 - (tagged by Nicolas Dandrimont + on 2019-03-28 15:51:27 +0100) + * Upstream changes: - Release swh.core v0.0.57 - Move to + native async primitives - Fix statsd.timed exceptional behavior + bug/misfeature - Fix SWHRemoteAPI post_stream method + + -- Software Heritage autobuilder (on jenkins-debian1) Thu, 28 Mar 2019 14:55:58 +0000 + +swh-core (0.0.56-1~swh1) unstable-swh; urgency=medium + + * New upstream release 0.0.56 - (tagged by David Douard + on 2019-03-19 10:17:06 +0100) + * Upstream changes: - v0.0.56 + + -- Software Heritage autobuilder (on jenkins-debian1) Tue, 19 Mar 2019 09:27:18 +0000 + +swh-core (0.0.55-1~swh1) unstable-swh; urgency=medium + + * New upstream release 0.0.55 - (tagged by Antoine R. Dumont + (@ardumont) on 2019-02-19 12:28:26 + +0100) + * Upstream changes: - v0.0.55 - Fix runtime dependencies + + -- Software Heritage autobuilder (on jenkins-debian1) Tue, 19 Feb 2019 11:32:28 +0000 + +swh-core (0.0.54-1~swh2) unstable-swh; urgency=medium + + * New upstream release 0.0.54 + * Upstream changes: - Add missing build dependencies + + -- Antoine R. Dumont (@ardumont) Tue, 12 Feb 2019 16:25:34 +0000 + +swh-core (0.0.54-1~swh1) unstable-swh; urgency=medium + + * New upstream release 0.0.54 - (tagged by Valentin Lorentz + on 2019-02-11 16:47:18 +0100) + * Upstream changes: - Add test for BaseDb.connect. + + -- Software Heritage autobuilder (on jenkins-debian1) Tue, 12 Feb 2019 12:37:43 +0000 + +swh-core (0.0.53-1~swh1) unstable-swh; urgency=medium + + * New upstream release 0.0.53 - (tagged by Antoine R. Dumont + (@ardumont) on 2019-02-08 09:09:30 + +0100) + * Upstream changes: - v0.0.53 - Fix debian build + + -- Software Heritage autobuilder (on jenkins-debian1) Fri, 08 Feb 2019 08:12:31 +0000 + +swh-core (0.0.52-1~swh1) unstable-swh; urgency=medium + + * New upstream release 0.0.52 - (tagged by David Douard + on 2019-02-06 15:24:04 +0100) + * Upstream changes: - v0.0.52 + + -- Software Heritage autobuilder (on jenkins-debian1) Wed, 06 Feb 2019 14:27:14 +0000 + +swh-core (0.0.51-1~swh1) unstable-swh; urgency=medium + + * New upstream release 0.0.51 - (tagged by David Douard + on 2019-02-01 14:28:27 +0100) + * Upstream changes: - v0.0.51 + + -- Software Heritage autobuilder (on jenkins-debian1) Fri, 01 Feb 2019 13:31:45 +0000 + +swh-core (0.0.50-1~swh1) unstable-swh; urgency=medium + + * New upstream release 0.0.50 - (tagged by Nicolas Dandrimont + on 2019-01-09 15:50:58 +0100) + * Upstream changes: - Release swh.core v0.0.50 - Add statsd + client module - Log used config files + + -- Software Heritage autobuilder (on jenkins-debian1) Wed, 09 Jan 2019 14:54:37 +0000 + +swh-core (0.0.49-1~swh1) unstable-swh; urgency=medium + + * Make DbTestFixture.setUp() accept and pass *args and **kwargs. + + -- Software Heritage autobuilder (on jenkins-debian1) Tue, 08 Jan 2019 16:38:02 +0000 + +swh-core (0.0.48-1~swh1) unstable-swh; urgency=medium + + * v0.0.48 + * swh.core.cli: Update swh-db-init to make it idemtpotent + + -- Antoine R. Dumont (@ardumont) Tue, 08 Jan 2019 15:33:15 +0000 + +swh-core (0.0.47-1~swh1) unstable-swh; urgency=medium + + * v0.0.47 + * swh.core.cli: Fix flag + + -- Antoine R. Dumont (@ardumont) Tue, 08 Jan 2019 15:16:09 +0000 + +swh-core (0.0.46-1~swh1) unstable-swh; urgency=medium + + * v0.0.46 + * utils.grouper: Improve implementation + * Remove now-obsolete information about swh.core.worker + + -- Antoine R. Dumont (@ardumont) Tue, 08 Jan 2019 14:37:34 +0000 + +swh-core (0.0.45-1~swh1) unstable-swh; urgency=medium + + * Release swh.core v0.0.45 + * Compatibility with recent msgpack + * Debian packaging-related cleanups + + -- Nicolas Dandrimont Thu, 22 Nov 2018 21:09:53 +0100 + +swh-core (0.0.44-1~swh1) unstable-swh; urgency=medium + + * Release swh.core v0.0.44 + * Refactor the database testing fixtures + * Stop unsafe serialization/deserialization constructs + * Update tests to use nose + + -- Nicolas Dandrimont Thu, 18 Oct 2018 18:20:12 +0200 + +swh-core (0.0.43-1~swh1) unstable-swh; urgency=medium + + * v0.0.43 + * Fix missing dependency declaration + + -- Antoine R. Dumont (@ardumont) Thu, 11 Oct 2018 15:47:06 +0200 + +swh-core (0.0.42-1~swh1) unstable-swh; urgency=medium + + * v0.0.42 + * Fix missing dependency declaration + + -- Antoine R. Dumont (@ardumont) Thu, 11 Oct 2018 15:45:25 +0200 + +swh-core (0.0.41-1~swh1) unstable-swh; urgency=medium + + * Add functions to generate HTTP API clients and servers from + databases. + * Summary: This moves the interesting parts of D505 into the core, so + other components can use them as well. + * Test Plan: `make test` + * Reviewers: ardumont, seirl, #reviewers + * Reviewed By: ardumont, #reviewers + * Subscribers: douardda + * Differential Revision: https://forge.softwareheritage.org/D507 + + -- Valentin Lorentz Thu, 11 Oct 2018 10:57:27 +0200 + +swh-core (0.0.40-1~swh1) unstable-swh; urgency=medium + + * v0.0.40 + * swh.core.api.SWHRemoteAPI: Permit to set a query timeout option + + -- Antoine R. Dumont (@ardumont) Thu, 24 May 2018 12:10:03 +0200 + +swh-core (0.0.39-1~swh1) unstable-swh; urgency=medium + + * v0.0.39 + * package: Add missing runtime dependency + + -- Antoine R. Dumont (@ardumont) Thu, 26 Apr 2018 15:24:22 +0200 + +swh-core (0.0.38-1~swh1) unstable-swh; urgency=medium + + * v0.0.38 + * tests: Use more reasonable psql options for db restores + * swh.core.serializers: Add custom types serialization + + -- Antoine R. Dumont (@ardumont) Thu, 26 Apr 2018 15:15:27 +0200 + +swh-core (0.0.37-1~swh1) unstable-swh; urgency=medium + + * v0.0.37 + * Move test fixture in swh.core.tests.server_testing module + + -- Antoine R. Dumont (@ardumont) Wed, 25 Apr 2018 15:00:02 +0200 + +swh-core (0.0.36-1~swh1) unstable-swh; urgency=medium + + * v0.0.36 + * Migrate swh.loader.tar.tarball module in swh.core + + -- Antoine R. Dumont (@ardumont) Wed, 06 Dec 2017 12:03:29 +0100 + +swh-core (0.0.35-1~swh1) unstable-swh; urgency=medium + + * Release swh.core version 0.0.35 + * Update packaging runes + + -- Nicolas Dandrimont Thu, 12 Oct 2017 18:07:50 +0200 + +swh-core (0.0.34-1~swh1) unstable-swh; urgency=medium + + * Release swh.core v0.0.34 + * New modular database test fixture + + -- Nicolas Dandrimont Mon, 07 Aug 2017 18:29:48 +0200 + +swh-core (0.0.33-1~swh1) unstable-swh; urgency=medium + + * Release swh.core v0.0.33 + * Be more conservative with remote API responses + + -- Nicolas Dandrimont Mon, 19 Jun 2017 19:01:38 +0200 + +swh-core (0.0.32-1~swh1) unstable-swh; urgency=medium + + * Release swh-core v0.0.32 + * Add asynchronous streaming methods for internal APIs + * Remove task arguments from systemd-journal loggers + + -- Nicolas Dandrimont Tue, 09 May 2017 14:04:22 +0200 + +swh-core (0.0.31-1~swh1) unstable-swh; urgency=medium + + * Release swh.core v0.0.31 + * Add explicit dependency on python3-systemd + + -- Nicolas Dandrimont Fri, 07 Apr 2017 15:11:26 +0200 + +swh-core (0.0.30-1~swh1) unstable-swh; urgency=medium + + * Release swh.core v0.0.30 + * drop swh.core.hashutil (moved to swh.model.hashutil) + * add a systemd logger + + -- Nicolas Dandrimont Fri, 07 Apr 2017 11:49:15 +0200 + +swh-core (0.0.29-1~swh1) unstable-swh; urgency=medium + + * Release swh.core v0.0.29 + * Catch proper exception in the base API client + + -- Nicolas Dandrimont Thu, 02 Feb 2017 00:19:25 +0100 + +swh-core (0.0.28-1~swh1) unstable-swh; urgency=medium + + * v0.0.28 + * Refactoring some common code into swh.core + + -- Antoine R. Dumont (@ardumont) Thu, 26 Jan 2017 14:54:22 +0100 + +swh-core (0.0.27-1~swh1) unstable-swh; urgency=medium + + * v0.0.27 + * Fix issue with default boolean value + + -- Antoine R. Dumont (@ardumont) Thu, 20 Oct 2016 16:15:20 +0200 + +swh-core (0.0.26-1~swh1) unstable-swh; urgency=medium + + * Release swh.core v0.0.26 + * Raise an exception when a configuration file exists and is + unreadable + + -- Nicolas Dandrimont Wed, 12 Oct 2016 10:16:09 +0200 + +swh-core (0.0.25-1~swh1) unstable-swh; urgency=medium + + * v0.0.25 + * Add new function utils.cwd + + -- Antoine R. Dumont (@ardumont) Thu, 29 Sep 2016 21:29:37 +0200 + +swh-core (0.0.24-1~swh1) unstable-swh; urgency=medium + + * v0.0.24 + * Deal with edge case in logger regarding json + + -- Antoine R. Dumont (@ardumont) Thu, 22 Sep 2016 12:21:09 +0200 + +swh-core (0.0.23-1~swh1) unstable-swh; urgency=medium + + * Release swh.core v0.0.23 + * Properly fix the PyYAML dependency + + -- Nicolas Dandrimont Tue, 23 Aug 2016 16:20:29 +0200 + +swh-core (0.0.22-1~swh1) unstable-swh; urgency=medium + + * Release swh.core v0.0.22 + * Proper loading of yaml and ini files in all paths + + -- Nicolas Dandrimont Fri, 19 Aug 2016 15:45:55 +0200 + +swh-core (0.0.21-1~swh1) unstable-swh; urgency=medium + + * v0.0.21 + * Update test tools + + -- Antoine R. Dumont (@ardumont) Tue, 19 Jul 2016 14:47:01 +0200 + +swh-core (0.0.20-1~swh1) unstable-swh; urgency=medium + + * Release swh.core v0.0.20 + * Add some generic bytes <-> escaped unicode methods + + -- Nicolas Dandrimont Tue, 14 Jun 2016 16:54:41 +0200 + +swh-core (0.0.19-1~swh1) unstable-swh; urgency=medium + + * v0.0.19 + * Resurrect swh.core.utils + + -- Antoine R. Dumont (@ardumont) Fri, 15 Apr 2016 12:40:43 +0200 + +swh-core (0.0.18-1~swh1) unstable-swh; urgency=medium + + * v0.0.18 + * Add swh.core.utils + * serializers: support UUIDs all around + + -- Antoine R. Dumont (@ardumont) Sat, 26 Mar 2016 11:16:33 +0100 + +swh-core (0.0.17-1~swh1) unstable-swh; urgency=medium + + * Release swh.core v0.0.17 + * Allow serialization of UUIDs + + -- Nicolas Dandrimont Fri, 04 Mar 2016 11:40:56 +0100 + +swh-core (0.0.16-1~swh1) unstable-swh; urgency=medium + + * Release swh.core version 0.0.16 + * add bytehex_to_hash and hash_to_bytehex in hashutil + * move scheduling utilities to swh.scheduler + + -- Nicolas Dandrimont Fri, 19 Feb 2016 18:12:10 +0100 + +swh-core (0.0.15-1~swh1) unstable-swh; urgency=medium + + * Release v0.0.15 + * Add hashutil.hash_git_object + + -- Nicolas Dandrimont Wed, 16 Dec 2015 16:31:26 +0100 + +swh-core (0.0.14-1~swh1) unstable-swh; urgency=medium + + * v0.0.14 + * Add simple README + * Update license + * swh.core.hashutil.hashfile can now deal with filepath as bytes + + -- Antoine R. Dumont (@ardumont) Fri, 23 Oct 2015 11:13:14 +0200 + +swh-core (0.0.13-1~swh1) unstable-swh; urgency=medium + + * Prepare deployment of swh.core v0.0.13 + + -- Nicolas Dandrimont Fri, 09 Oct 2015 17:32:49 +0200 + +swh-core (0.0.12-1~swh1) unstable-swh; urgency=medium + + * Prepare deployment of swh.core v0.0.12 + + -- Nicolas Dandrimont Tue, 06 Oct 2015 17:34:34 +0200 + +swh-core (0.0.11-1~swh1) unstable-swh; urgency=medium + + * Prepare deployment of swh.core v0.0.11 + + -- Nicolas Dandrimont Sat, 03 Oct 2015 15:57:03 +0200 + +swh-core (0.0.10-1~swh1) unstable-swh; urgency=medium + + * Prepare deploying swh.core v0.0.10 + + -- Nicolas Dandrimont Sat, 03 Oct 2015 12:28:52 +0200 + +swh-core (0.0.9-1~swh1) unstable-swh; urgency=medium + + * Prepare deploying swh.core v0.0.9 + + -- Nicolas Dandrimont Sat, 03 Oct 2015 11:36:55 +0200 + +swh-core (0.0.8-1~swh1) unstable-swh; urgency=medium + + * Prepare deployment of swh.core v0.0.8 + + -- Nicolas Dandrimont Thu, 01 Oct 2015 12:31:44 +0200 + +swh-core (0.0.7-1~swh1) unstable-swh; urgency=medium + + * Prepare deployment of swh.core v0.0.7 + + -- Nicolas Dandrimont Thu, 01 Oct 2015 11:29:04 +0200 + +swh-core (0.0.6-1~swh1) unstable-swh; urgency=medium + + * Prepare deployment of swh.core v0.0.6 + + -- Nicolas Dandrimont Tue, 29 Sep 2015 16:48:44 +0200 + +swh-core (0.0.5-1~swh1) unstable-swh; urgency=medium + + * Prepare v0.0.5 deployment + + -- Nicolas Dandrimont Tue, 29 Sep 2015 16:08:32 +0200 + +swh-core (0.0.4-1~swh1) unstable-swh; urgency=medium + + * Tagging swh.core 0.0.4 + + -- Nicolas Dandrimont Fri, 25 Sep 2015 15:41:26 +0200 + +swh-core (0.0.3-1~swh1) unstable-swh; urgency=medium + + * Tag swh.core v0.0.3 + + -- Nicolas Dandrimont Fri, 25 Sep 2015 11:07:10 +0200 + +swh-core (0.0.2-1~swh1) unstable-swh; urgency=medium + + * Deploy v0.0.2 + + -- Nicolas Dandrimont Wed, 23 Sep 2015 12:08:50 +0200 + +swh-core (0.0.1-1~swh1) unstable-swh; urgency=medium + + * Initial release + * Tag v0.0.1 for deployment + + -- Nicolas Dandrimont Tue, 22 Sep 2015 14:52:26 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..5c9f2cd --- /dev/null +++ b/debian/control @@ -0,0 +1,29 @@ +Source: swh-core +Maintainer: Software Heritage developers +Section: python +Priority: optional +Build-Depends: debhelper (>= 9), + dh-python (>= 2), + python3-all, + python3-aiohttp, + python3-arrow, + python3-dateutil, + python3-decorator, + python3-flask, + python3-msgpack (>= 0.5~), + python3-pytest, + python3-psycopg2, + python3-requests, + python3-requests-mock, + python3-setuptools, + python3-systemd, + python3-vcversioner, + python3-yaml, + python3-hypothesis (>= 3.11.0~) +Standards-Version: 3.9.6 +Homepage: https://forge.softwareheritage.org/diffusion/DCORE/ + +Package: python3-swh.core +Architecture: all +Depends: ${misc:Depends}, ${python3:Depends}, python3-systemd +Description: Software Heritage core utilities diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..b41ab45 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,46 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ + +Files: swh/core/api/negotiate.py +Copyright: 2012-2013, Nick Stenning + 2019 Software Heritage +License: MIT + +Files: * +Copyright: 2015 The Software Heritage developers +License: GPL-3+ + +License: GPL-3+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . + . + On Debian systems, the complete text of the GNU General Public + License version 3 can be found in `/usr/share/common-licenses/GPL-3'. + +License: MIT + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..7576206 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,6 @@ +[DEFAULT] +upstream-branch=debian/upstream +upstream-tag=debian/upstream/%(version)s +upstream-vcs-tag=v%(version)s +debian-branch=debian/unstable-swh +pristine-tar=True diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..53e0123 --- /dev/null +++ b/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f + +export PYBUILD_NAME=swh.core +export export PYBUILD_TEST_ARGS=-m 'not db' + +%: + dh $@ --with python3 --buildsystem=pybuild + +override_dh_python3: + dh_python3 --requires=requirements-db.txt --requires=requirements-http.txt diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt)