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

Proposed by Alberto Contreras
Status: Merged
Merged at revision: 8bb3007ba5f5acd455febb92457a44555a37f63e
Proposed branch: ~aciba/ubuntu/+source/python-boto3:add-tests
Merge into: ubuntu/+source/python-boto3:ubuntu/devel
Diff against target: 110 lines (+55/-6)
3 files modified
debian/changelog (+10/-1)
debian/control (+4/-1)
debian/rules (+41/-4)
Reviewer Review Type Date Requested Status
Paride Legovini (community) Approve
git-ubuntu import Pending
Review via email: mp+464411@code.launchpad.net

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
Alberto Contreras (aciba) wrote :
Revision history for this message
Paride Legovini (paride) wrote :

LGTM

review: Approve
Revision history for this message
Paride Legovini (paride) wrote :

Uploading python-boto3_1.34.46+dfsg-1ubuntu1.dsc
Uploading python-boto3_1.34.46+dfsg-1ubuntu1.debian.tar.xz
Uploading python-boto3_1.34.46+dfsg-1ubuntu1_source.buildinfo
Uploading python-boto3_1.34.46+dfsg-1ubuntu1_source.changes

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 93c892f..f5bcf0c 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,12 @@
6+python-boto3 (1.34.46+dfsg-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 13:49:48 +0200
14+
15 python-boto3 (1.34.46+dfsg-1) unstable; urgency=medium
16
17 * Drop obsolete dependency on python3-six (Closes: #1040425)
18@@ -77,7 +86,7 @@ python-boto3 (1.13.14-1) unstable; urgency=medium
19 * Move the package to the cloud-team for maintenance. Thank you to Eric
20 Evans and Alexander GQ Gerasiov for past maintenance
21 * Configure a standard salsa.debian.org CI pipeline
22-
23+
24 -- Noah Meyerhans <noahm@debian.org> Wed, 20 May 2020 12:47:51 -0700
25
26 python-boto3 (1.13.3-1) unstable; urgency=medium
27diff --git a/debian/control b/debian/control
28index bd4a599..6f89dda 100644
29--- a/debian/control
30+++ b/debian/control
31@@ -1,18 +1,21 @@
32 Source: python-boto3
33 Section: python
34 Priority: optional
35-Maintainer: Debian Cloud Team <debian-cloud@lists.debian.org>
36+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
37+XSBC-Original-Maintainer: Debian Cloud Team <debian-cloud@lists.debian.org>
38 Uploaders: Alexander GQ Gerasiov <gq@debian.org>,
39 Noah Meyerhans <noahm@debian.org>
40 Build-Depends: debhelper-compat (= 12),
41 dh-python,
42 python3-all:any,
43+ python3-pytest,
44 python3-s3transfer (>= 0.1.10),
45 python3-setuptools
46 Standards-Version: 4.6.2
47 Homepage: https://github.com/boto/boto3
48 Vcs-Git: https://salsa.debian.org/cloud-team/python-boto3.git
49 Vcs-Browser: https://salsa.debian.org/cloud-team/python-boto3
50+Testsuite: autopkgtest-pkg-pybuild
51
52 Package: python3-boto3
53 Architecture: all
54diff --git a/debian/rules b/debian/rules
55index c0b17c0..eecb5d2 100755
56--- a/debian/rules
57+++ b/debian/rules
58@@ -4,11 +4,48 @@
59 #export DH_VERBOSE = 1
60
61 export PYBUILD_NAME = boto3
62+export PYBUILD_TEST_ARGS={dir}/tests/unit/ \
63+ --ignore={dir}/tests/unit/resources/test_collection_smoke.py \
64+ --deselect tests/unit/docs/test_action.py::TestActionDocumenter::test_document_nonservice_resource_actions \
65+ --deselect tests/unit/docs/test_action.py::TestActionDocumenter::test_document_service_resource_actions \
66+ --deselect tests/unit/docs/test_attr.py::TestDocumentAttribute::test_document_attr_scalar \
67+ --deselect tests/unit/docs/test_attr.py::TestDocumentAttribute::test_document_attr_structure \
68+ --deselect tests/unit/docs/test_client.py::TestBoto3ClientDocumenter::test_document_client \
69+ --deselect tests/unit/docs/test_collection.py::TestCollectionDocumenter::test_document_collections \
70+ --deselect tests/unit/docs/test_docstring.py::TestResourceDocstrings::test_action_help \
71+ --deselect tests/unit/docs/test_docstring.py::TestResourceDocstrings::test_attribute_help \
72+ --deselect tests/unit/docs/test_docstring.py::TestResourceDocstrings::test_batch_action_help \
73+ --deselect tests/unit/docs/test_docstring.py::TestResourceDocstrings::test_collection_all_method_help \
74+ --deselect tests/unit/docs/test_docstring.py::TestResourceDocstrings::test_collection_chaining_help \
75+ --deselect tests/unit/docs/test_docstring.py::TestResourceDocstrings::test_collection_filter_method_help \
76+ --deselect tests/unit/docs/test_docstring.py::TestResourceDocstrings::test_collection_help \
77+ --deselect tests/unit/docs/test_docstring.py::TestResourceDocstrings::test_collection_limit_method_help \
78+ --deselect tests/unit/docs/test_docstring.py::TestResourceDocstrings::test_collection_page_size_method_help \
79+ --deselect tests/unit/docs/test_docstring.py::TestResourceDocstrings::test_identifier_help \
80+ --deselect tests/unit/docs/test_docstring.py::TestResourceDocstrings::test_load_help \
81+ --deselect tests/unit/docs/test_docstring.py::TestResourceDocstrings::test_reference_help \
82+ --deselect tests/unit/docs/test_docstring.py::TestResourceDocstrings::test_resource_waiter_help \
83+ --deselect tests/unit/docs/test_docstring.py::TestResourceDocstrings::test_sub_resource_help \
84+ --deselect tests/unit/docs/test_method.py::TestDocumentModelDrivenResourceMethod::test_default \
85+ --deselect tests/unit/docs/test_method.py::TestDocumentModelDrivenResourceMethod::test_exclude_input \
86+ --deselect tests/unit/docs/test_method.py::TestDocumentModelDrivenResourceMethod::test_exclude_output \
87+ --deselect tests/unit/docs/test_method.py::TestDocumentModelDrivenResourceMethod::test_include_input \
88+ --deselect tests/unit/docs/test_method.py::TestDocumentModelDrivenResourceMethod::test_include_output \
89+ --deselect tests/unit/docs/test_method.py::TestDocumentModelDrivenResourceMethod::test_returns_list_of_resource \
90+ --deselect tests/unit/docs/test_method.py::TestDocumentModelDrivenResourceMethod::test_returns_resource \
91+ --deselect tests/unit/docs/test_resource.py::TestResourceDocumenter::test_document_resource \
92+ --deselect tests/unit/docs/test_resource.py::TestServiceResourceDocumenter::test_document_resource \
93+ --deselect tests/unit/docs/test_service.py::TestServiceDocumenter::test_creates_correct_path_to_examples_based_on_service_name \
94+ --deselect tests/unit/docs/test_service.py::TestServiceDocumenter::test_document_service \
95+ --deselect tests/unit/docs/test_service.py::TestServiceDocumenter::test_document_service_no_paginators \
96+ --deselect tests/unit/docs/test_service.py::TestServiceDocumenter::test_document_service_no_resource \
97+ --deselect tests/unit/docs/test_service.py::TestServiceDocumenter::test_document_service_no_waiter \
98+ --deselect tests/unit/docs/test_service.py::TestServiceDocumenter::test_injects_examples_when_found \
99+ --deselect tests/unit/docs/test_service.py::TestServiceDocumenter::test_service_with_context_params \
100+ --deselect tests/unit/docs/test_subresource.py::TestSubResourceDocumenter::test_document_sub_resources \
101+ --deselect tests/unit/docs/test_waiter.py::TestWaiterResourceDocumenter::test_document_resource_waiters \
102+ --deselect tests/unit/ec2/test_createtags.py::TestCreateTagsInjection::test_create_tags_injected_to_resource
103
104 # main packaging script based on dh7 syntax
105 %:
106 dh $@ --with python3 --buildsystem=pybuild
107-
108-override_dh_auto_test:
109- #autotests are disabled, run them manually with
110- #python<version> -m nose

Subscribers

People subscribed via source and target branches