Skip to content

tox.ini: pin correct version of httpretty in xenial{,-dev} envs#531

Merged
OddBloke merged 2 commits into
canonical:masterfrom
OddBloke:deps
Aug 13, 2020
Merged

tox.ini: pin correct version of httpretty in xenial{,-dev} envs#531
OddBloke merged 2 commits into
canonical:masterfrom
OddBloke:deps

Conversation

@OddBloke
Copy link
Copy Markdown
Collaborator

The version was bumped in c724805 to
support running on Python 3.7+ systems. Now that we have separate
xenial and xenial-dev tox environments, we can restore the correct
pinning for xenial without breaking xenial-dev on developer
machines.

Also drop the mock dependency from xenial-shared-deps; its removal
was missed in 5f8f85b.

The version was bumped in c724805 to
support running on Python 3.7+ systems.  Now that we have separate
`xenial` and `xenial-dev` tox environments, we can restore the correct
pinning for `xenial` without breaking `xenial-dev` on developer
machines.

Also drop the `mock` dependency from `xenial-shared-deps`; its removal
was missed in 5f8f85b.
Copy link
Copy Markdown
Contributor

@TheRealFalcon TheRealFalcon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you might have explained this already, but why do we need to pin to the version available in the repo vs just using a pip dependency?

@OddBloke
Copy link
Copy Markdown
Collaborator Author

I think you might have explained this already, but why do we need to pin to the version available in the repo vs just using a pip dependency?

The unittests run during package build, and we can only install packages from the archive in the build environment. The packages which are installed into that environment are expressed in debian/control in the Build-Depends field. This is xenial's:

Build-Depends: debhelper (>= 9),
dh-python,
dh-systemd,
iproute2,
pep8,
po-debconf,
python3,
python3-configobj,
python3-httpretty,
python3-jinja2,
python3-jsonpatch,
python3-mock,
python3-oauthlib,
python3-pytest,
python3-requests,
python3-serial,
python3-setuptools,
python3-yaml

@OddBloke OddBloke merged commit 1212675 into canonical:master Aug 13, 2020
@OddBloke OddBloke deleted the deps branch August 13, 2020 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants