Merge ~aciba/ubuntu/+source/python-s3transfer:add-tests into ubuntu/+source/python-s3transfer:ubuntu/devel

Proposed by Alberto Contreras
Status: Superseded
Proposed branch: ~aciba/ubuntu/+source/python-s3transfer:add-tests
Merge into: ubuntu/+source/python-s3transfer:ubuntu/devel
Diff against target: 62 lines (+18/-3)
3 files modified
debian/changelog (+9/-0)
debian/control (+4/-1)
debian/rules (+5/-2)
Reviewer Review Type Date Requested Status
Paride Legovini (community) Needs Information
git-ubuntu import Pending
Review via email: mp+464413@code.launchpad.net

This proposal has been superseded by a proposal from 2024-04-16.

Commit message

add tests

To post a comment you must log in.
Revision history for this message
Alberto Contreras (aciba) wrote :
Revision history for this message
Paride Legovini (paride) :
review: Needs Information
Revision history for this message
Paride Legovini (paride) :
Revision history for this message
Alberto Contreras (aciba) :

Unmerged commits

6c867a3... by Alberto Contreras

Releasing 0.10.0-1ubuntu1

06b1766... by Alberto Contreras

Update maintainer

d21b9b8... by Alberto Contreras

changelog

c2e0b08... by Alberto Contreras

  * d/control: add autopkgtest-pkg-pybuild

ba684ed... by Alberto Contreras

  * d/control: add python3-pytest as build dependency and
    disable tests that require internet
  * d/rules: enable unit tests during build

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 83f9453..459a7fc 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,12 @@
6+python-s3transfer (0.10.0-1ubuntu1) noble; urgency=medium
7+
8+ * d/control: add python3-pytest as build dependency and
9+ disable tests that require internet
10+ * d/rules: enable unit tests during build
11+ * d/control: add autopkgtest-pkg-pybuild
12+
13+ -- Alberto Contreras <alberto.contreras@canonical.com> Tue, 16 Apr 2024 14:53:45 +0200
14+
15 python-s3transfer (0.10.0-1) unstable; urgency=medium
16
17 * Team Upload
18diff --git a/debian/control b/debian/control
19index 9c1d101..2713acd 100644
20--- a/debian/control
21+++ b/debian/control
22@@ -1,18 +1,21 @@
23 Source: python-s3transfer
24 Section: python
25 Priority: optional
26-Maintainer: Debian Python Team <team+python@tracker.debian.org>
27+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
28+XSBC-Original-Maintainer: Debian Python Team <team+python@tracker.debian.org>
29 Uploaders: TANIGUCHI Takaki <takaki@debian.org>
30 Build-Depends: debhelper-compat (= 13)
31 , python3-all
32 , python3-setuptools
33 , dh-sequence-python3
34 , python3-botocore (>= 1.34.18+repack-1~)
35+ , python3-pytest
36 Rules-Requires-Root: no
37 Standards-Version: 4.6.2
38 Homepage: https://github.com/boto/s3transfer
39 Vcs-Git: https://salsa.debian.org/python-team/packages/python-s3transfer.git
40 Vcs-Browser: https://salsa.debian.org/python-team/packages/python-s3transfer
41+Testsuite: autopkgtest-pkg-pybuild
42
43 Package: python3-s3transfer
44 Architecture: all
45diff --git a/debian/rules b/debian/rules
46index 79548d2..1d68bdf 100755
47--- a/debian/rules
48+++ b/debian/rules
49@@ -1,8 +1,11 @@
50 #!/usr/bin/make -f
51
52 export PYBUILD_NAME=s3transfer
53-# requires network access
54-export PYBUILD_DISABLE=test
55+export PYBUILD_TEST_ARGS={dir}/tests/unit \
56+ --deselect tests/unit/test_processpool.py::TestClientFactory::test_create_client \
57+ --deselect tests/unit/test_processpool.py::TestClientFactory::test_user_agent_with_config \
58+ --deselect tests/unit/test_processpool.py::TestClientFactory::test_user_agent_with_existing_user_agent \
59+ --deselect tests/unit/test_processpool.py::TestClientFactory::test_user_agent_with_existing_user_agent_extra
60
61 %:
62 dh $@ --buildsystem=pybuild

Subscribers

People subscribed via source and target branches