~smoser/curtin:fix/fix-test-pyc-filenames

Last commit made on 2018-01-09
Get this branch:
git clone -b fix/fix-test-pyc-filenames https://git.launchpad.net/~smoser/curtin
Only Scott Moser can upload to this branch. If you are Scott Moser please log in for upload directions.

Branch merges

Branch information

Name:
fix/fix-test-pyc-filenames
Repository:
lp:~smoser/curtin

Recent commits

4fc6bad... by Scott Moser

move rm to after write for consistency

6ec1ad9... by Scott Moser

spelling

ad8ef7b... by Scott Moser

tests: update pack tests to clear out pyc files more completely.

When the test test_curtin_help_has_hacked_version was first written,
the file .pyc file that was known to be created for
my_path/my.py was my_path/my.pyc

Newer versions of python (at least in cpython 3.6), create:
   version/__pycache__/version.cpython-36.pyc

This updates the test to remote those pyc files also.

The failure to remove the .pyc file results in a race condition
where sometimes the .pyc file is seen as valid even though the
.py file was written after it.

c5cb03e... by Scott Moser

debian/control: drop conflicts that had bzr version

this is fine as the bzr version (~bzr54) is not in any supported
release.. trusty is at 126-0ubuntu1 in released version even.

8108efb... by Scott Moser

Switch uses of bzr to git, borrow from cloud-init git workflow.

Basically replace all references to bzr. git-describe and experience
in cloud-init make this fairly painless.

 - curtin/version.py
   replace usage of 'bzr revno' with 'git-describe'.
   versions 'packed' from git will show a version like 17.1-5-gdfd3389f.

 - debian/changelog.trunk
   remove the hard coded version string.

 - tools/export-tarball, tools/make-tarball:
   replace export-tarball with a version of make-tarball taken from
   cloud-init.

 - tools/build-deb, update to use git-describe and make-tarball.
   Also set some default parameters (-S -d -us -uc).

 - doc/, tox.ini, just replace bzr with git.

 - tools/new-upstream-snapshot: copy from cloud-init debian/

6fa5028... by Scott Moser

Release 17.1

bzr-revno: 553

bbfff08... by Scott Moser

packaging: update debian/build-deb to remove ~bzrREV when using equal tag

When building a curtin package from tree, if the current revno matches
a tag revision, use the tag value and drop the ~bzrREV from the version
 string.

bzr-revno: 552

0361d29... by Scott Moser

pack: fix packing when curtin is installed inside a snap.

When curtin is installed as part of a MAAS snap, then it would fail
to find its helpers directory. That is because instead of helpers
living in usr/lib/curtin/helpers they will be in
 /snap/maas/<version>/usr/lib/curtin/helpers
But helpfully, SNAP will be set in the environment to point to
 /snap/maas/<version>/

The fix is to adjust pack to trust the environment variable
and pack up the installed files based on that prefix.

bzr-revno: 551

5486375... by Scott Moser

tox: move to pylint 1.7.4

Update the pylint version used in tox from 1.5.4 to 1.7.4.
The primary gain from this is the ability to run with python3.6.
  https://github.com/PyCQA/pylint/issues/1113

bzr-revno: 550

aa6f250... by Scott Moser

merge with trunk

bzr-revno: 548.1.3