Merge simplestreams:drop-py2-packages into simplestreams:master

Proposed by Dan Watkins
Status: Merged
Approved by: Dan Watkins
Approved revision: 2db6fbf17d280ca667470e258dc3a0b50c17568d
Merge reported by: Server Team CI bot
Merged at revision: not available
Proposed branch: simplestreams:drop-py2-packages
Merge into: simplestreams:master
Diff against target: 77 lines (+2/-35)
3 files modified
debian/control (+0/-31)
debian/rules (+2/-3)
dev/null (+0/-1)
Reviewer Review Type Date Requested Status
Server Team CI bot continuous-integration Approve
Rafael David Tinoco (community) Approve
simplestreams-dev Pending
Review via email: mp+375843@code.launchpad.net

Commit message

debian: stop building Python 2 package

To post a comment you must log in.
Revision history for this message
Dan Watkins (oddbloke) wrote :

debian: stop building Python 2 package

Revision history for this message
Server Team CI bot (server-team-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

Alright, so... in commit:

commit 385a037
Author: Daniel Watkins <email address hidden>
Date: Tue Aug 20 14:42:26 2019

    d/control: remove python-simplestreams-openstack

    It's empty after build, and we're moving away from Python 2 so remove it
    instead of attempting to address the issue.

diff --git a/debian/control b/debian/control
index 6cd458d..350b2d0 100644
--- a/debian/control
+++ b/debian/control
@@ -55,19 +55,6 @@ Description: Library and tools for using Simple Streams data
  This package provides a client for interacting with simple
  streams data as is produced to describe Ubuntu's cloud images.

-Package: python-simplestreams-openstack
-Architecture: all
-Priority: optional
-Depends: python-glanceclient,
- python-keystoneclient,
- python-simplestreams,
- python-swiftclient,
- ${misc:Depends}
-Description: Library and tools for using Simple Streams data
- This package depends on libraries necessary to use the openstack dependent
- functionality in simplestreams. That includes interacting with glance,
- swift and keystone.

you're removing the package but you still keep install file in debian/:

python3-simplestreams-openstack.install

should it be removed in this commit as well ?

Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

Same question for:

commit 55f1995 (HEAD -> drop-py2-packages, origin/drop-py2-packages)
Author: Daniel Watkins <email address hidden>
Date: Mon Sep 16 15:28:01 2019

    debian: stop building python-simplestreams

should we remove debian/python-simplestreams.install as well ?

Revision history for this message
Dan Watkins (oddbloke) wrote :

We should, let me fix that!

Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

From the ci error,

should tox drop the python 2 dependency also ?

Revision history for this message
Dan Watkins (oddbloke) wrote :

Actually, in that first case that's for the Python 3 -simplestreams-openstack which we still build. I've force-pushed the removal of python-simplestreams.install.

Revision history for this message
Dan Watkins (oddbloke) wrote :

We aren't (yet) dropping Python 2 from upstream, just from the packaging, so I think it needs to stay in tox. Those errors look like a broken test platform to me, rather than anything that changing the packaging would cause.

Revision history for this message
Server Team CI bot (server-team-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :
Download full text (4.0 KiB)

Alright, the changes look okay to me:

----
dpkg-deb: building package 'simplestreams' in '../simplestreams_0.1.0-28-g2db6fbf1-0ubuntu1_all.deb'.
dpkg-deb: building package 'python3-simplestreams' in '../python3-simplestreams_0.1.0-28-g2db6fbf1-0ubuntu1_all.deb'.
dpkg-deb: building package 'python3-simplestreams-openstack' in '../python3-simplestreams-openstack_0.1.0-28-g2db6fbf1-0ubuntu1_all.deb'.
 dpkg-genbuildinfo
 dpkg-genchanges >../simplestreams_0.1.0-28-g2db6fbf1-0ubuntu1_amd64.changes
dpkg-genchanges: info: including full source code in upload
 dpkg-source --after-build .
dpkg-buildpackage: info: full upload (original source is included)
Now running lintian simplestreams_0.1.0-28-g2db6fbf1-0ubuntu1_amd64.changes ...
W: simplestreams: binary-without-manpage usr/bin/json2streams
W: simplestreams: binary-without-manpage usr/bin/sstream-mirror
W: simplestreams: binary-without-manpage usr/bin/sstream-query
W: simplestreams: binary-without-manpage usr/bin/sstream-sync
W: python3-simplestreams-openstack: binary-without-manpage usr/bin/sstream-mirror-glance
Finished running lintian.
wrote python3-simplestreams-openstack_0.1.0-28-g2db6fbf1-0ubuntu1_all.deb
wrote python3-simplestreams_0.1.0-28-g2db6fbf1-0ubuntu1_all.deb
wrote simplestreams_0.1.0-28-g2db6fbf1-0ubuntu1.debian.tar.xz
wrote simplestreams_0.1.0-28-g2db6fbf1-0ubuntu1.dsc
wrote simplestreams_0.1.0-28-g2db6fbf1-0ubuntu1_all.deb
wrote simplestreams_0.1.0-28-g2db6fbf1-0ubuntu1_amd64.build
wrote simplestreams_0.1.0-28-g2db6fbf1-0ubuntu1_amd64.buildinfo
wrote simplestreams_0.1.0-28-g2db6fbf1-0ubuntu1_amd64.changes
wrote simplestreams_0.1.0-28-g2db6fbf1.orig.tar.gz
----

Package generation in focal is good, changes are related to packaging only. Keeping or not that .install file is a maintainer choice, so no issue there.

----

$ dpkg -l | grep -i simplestre
ii python3-simplestreams 0.1.0-28-g2db6fbf1-0ubuntu1 all Library and tools for using Simple Streams data
ii python3-simplestreams-openstack 0.1.0-28-g2db6fbf1-0ubuntu1 all Library and tools for using Simple Streams data
ii simplestreams 0.1.0-28-g2db6fbf1-0ubuntu1 all Library and tools for using Simple Streams data

----

Dependencies are fine with latest Focal...

----

(c)rafaeldtinoco@ubuntu:~$ dpkg -L python3-simplestreams-openstack
/.
/usr
/usr/bin
/usr/bin/sstream-mirror-glance
/usr/share
/usr/share/doc
/usr/share/doc/python3-simplestreams-openstack
/usr/share/doc/python3-simplestreams-openstack/changelog.Debian.gz
/usr/share/doc/python3-simplestreams-openstack/copyright

$ dpkg -L python3-simplestreams
/.
/usr
/usr/lib
/usr/lib/python3
/usr/lib/python3/dist-packages
/usr/lib/python3/dist-packages/simplestreams
/usr/lib/python3/dist-packages/simplestreams/__init__.py
/usr/lib/python3/dist-packages/simplestreams/checksum_util.py
/usr/lib/python3/dist-packages/simplestreams/contentsource.py
/usr/lib/python3/dist-packages/simplestreams/filters.py
/usr/lib/python3/dist-packages/simplestreams/generate_simplestreams.py
/usr/lib/python3/dist-packages/simplestreams/json2streams.py
/usr/lib/python3/dist-packages/simplestreams/log.py
/usr/lib...

Read more...

review: Approve
Revision history for this message
Server Team CI bot (server-team-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Server Team CI bot (server-team-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Scott Moser (smoser) wrote :

It looks like this didn't fully work.
You missed some references to python2.

https://launchpad.net/~simplestreams-dev/+archive/ubuntu/trunk/+build/18160048

looks like:
 * tests/httpserver.py (although i think this is only called by uniti tests, and called sys.executable)
 * tools/js2signed: this gets called from sign-examples (examples-sign target in make).
 * tools/make-test-data: used by make exdata

i think the first thing i'd try is the obvious:
 http://paste.ubuntu.com/p/4bNjgdBwmd/

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/control b/debian/control
2index 6cd458d..d6fc372 100644
3--- a/debian/control
4+++ b/debian/control
5@@ -5,15 +5,6 @@ Standards-Version: 4.2.1
6 Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
7 Build-Depends: debhelper (>= 7),
8 dh-python,
9- python-all,
10- python-glanceclient,
11- python-keystoneclient,
12- python-mock,
13- python-nose,
14- python-requests (>= 1.1),
15- python-setuptools,
16- python-swiftclient,
17- python-yaml,
18 python3,
19 python3-flake8,
20 python3-glanceclient,
21@@ -46,28 +37,6 @@ Description: Library and tools for using Simple Streams data
22 This package provides a client for interacting with simple
23 streams data as is produced to describe Ubuntu's cloud images.
24
25-Package: python-simplestreams
26-Architecture: all
27-Priority: optional
28-Depends: gnupg, python-boto, ${misc:Depends}, ${python:Depends}
29-Suggests: python-requests (>= 1.1)
30-Description: Library and tools for using Simple Streams data
31- This package provides a client for interacting with simple
32- streams data as is produced to describe Ubuntu's cloud images.
33-
34-Package: python-simplestreams-openstack
35-Architecture: all
36-Priority: optional
37-Depends: python-glanceclient,
38- python-keystoneclient,
39- python-simplestreams,
40- python-swiftclient,
41- ${misc:Depends}
42-Description: Library and tools for using Simple Streams data
43- This package depends on libraries necessary to use the openstack dependent
44- functionality in simplestreams. That includes interacting with glance,
45- swift and keystone.
46-
47 Package: python3-simplestreams-openstack
48 Architecture: all
49 Priority: optional
50diff --git a/debian/python-simplestreams.install b/debian/python-simplestreams.install
51deleted file mode 100644
52index 0236cd1..0000000
53--- a/debian/python-simplestreams.install
54+++ /dev/null
55@@ -1 +0,0 @@
56-usr/lib/python2*/*-packages/simplestreams/*
57diff --git a/debian/rules b/debian/rules
58index bc93943..9cb75fc 100755
59--- a/debian/rules
60+++ b/debian/rules
61@@ -1,14 +1,13 @@
62 #!/usr/bin/make -f
63
64 export SS_REQUIRE_DISTRO_INFO = 0
65-PYVERS := $(shell pyversions -r)
66 PY3VERS := $(shell py3versions -r)
67 %:
68- dh $@ --with=python2,python3
69+ dh $@ --with=python3
70
71 override_dh_auto_install:
72 dh_auto_install
73- set -ex; for python in $(PY3VERS) $(PYVERS); do \
74+ set -ex; for python in $(PY3VERS); do \
75 $$python setup.py build --executable=/usr/bin/python3 && \
76 $$python setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \
77 done

Subscribers

People subscribed via source and target branches

to all changes: