<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-cloud-init.git/Makefile, branch 20.3</title>
<subtitle> (mirror of https://github.com/vyos/vyos-cloud-init.git)
</subtitle>
<id>https://git.amelek.net/vyos/vyos-cloud-init.git/atom?h=20.3</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-cloud-init.git/atom?h=20.3'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/'/>
<updated>2020-05-02T00:57:24+00:00</updated>
<entry>
<title>Adapt the package building scripts to use Python 3 (#231)</title>
<updated>2020-05-02T00:57:24+00:00</updated>
<author>
<name>Paride Legovini</name>
<email>paride.legovini@canonical.com</email>
</author>
<published>2020-05-02T00:57:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=4d2684848722cb2d469ad4fa60999bf81cf7056e'/>
<id>urn:sha1:4d2684848722cb2d469ad4fa60999bf81cf7056e</id>
<content type='text'>
Since upstream cloud-init has dropped python2 support,
adapt remaining package build scripts and tools to python3 only

Changes:

* Do not template debian/rules as python3 is the only supported version
* Drop six from requirements.txt
* Makefile: drop everything related to Python 2
* run-container: install the CI deps only on ubuntu|debian
* read-version: update the shebang to use Python 3
* brpm: read_dependencies(): drop unused argument
* read-dependencies: switch to Py3 and drop the --python-version option
* pkg-deps.json: drop the Python version field and update the redhat deps
* pkg-deps.json: drop the unittest2 and contextlib2 renames
* Update RPM the spec file to use Python 3 when building the RPM
* bddeb: drop support for Python 2</content>
</entry>
<entry>
<title>cloudinit: move to pytest for running tests (#211)</title>
<updated>2020-03-10T17:26:05+00:00</updated>
<author>
<name>Daniel Watkins</name>
<email>oddbloke@ubuntu.com</email>
</author>
<published>2020-03-10T17:26:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=986f37b017134ced5d9dd38b420350916297002b'/>
<id>urn:sha1:986f37b017134ced5d9dd38b420350916297002b</id>
<content type='text'>
As the nose docs[0] themselves note, it has been in maintenance mode for the past several years. pytest is an actively developed, featureful and popular alternative that the nose docs themselves recommend. See [1] for more details about the thinking here.

(This PR also removes stale tox definitions, instead of modifying them.)

[0] https://nose.readthedocs.io/en/latest/
[1] https://lists.launchpad.net/cloud-init/msg00245.html</content>
</entry>
<entry>
<title>tools: make clean now cleans the dev directory, not the system</title>
<updated>2019-09-18T10:31:35+00:00</updated>
<author>
<name>Chad Smith</name>
<email>chad.smith@canonical.com</email>
</author>
<published>2019-09-18T10:31:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=ac8ef3eed1ca78d779b9fc414439e5dc4153735c'/>
<id>urn:sha1:ac8ef3eed1ca78d779b9fc414439e5dc4153735c</id>
<content type='text'>
Remove pyc files, .tox directories and docs during make clean.
</content>
</entry>
<entry>
<title>doc: document doc, create makefile and tox target</title>
<updated>2019-09-07T02:27:45+00:00</updated>
<author>
<name>Joshua Powers</name>
<email>josh.powers@canonical.com</email>
</author>
<published>2019-09-07T02:27:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=385232dc8da6532b54342cd11e6d822ff7cd3e5a'/>
<id>urn:sha1:385232dc8da6532b54342cd11e6d822ff7cd3e5a</id>
<content type='text'>
* Create makefile and tox targets for documentation building and testing
to better replicate the live web docs using the same theme.
* Created docs.rst to explain how to build and contribute to documentation
with style guide and tips.
* doc/rtd/conf.py:
    * Add copyright to rtd config
    * Use Sphinx's RTD theme to replicate actual docs
</content>
</entry>
<entry>
<title>tests: Add cloudinit package to all test targets</title>
<updated>2017-09-20T22:41:31+00:00</updated>
<author>
<name>Chad Smith</name>
<email>chad.smith@canonical.com</email>
</author>
<published>2017-09-20T22:41:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=d3a8777244ebc107e1124c4fab441b5e0eb75f44'/>
<id>urn:sha1:d3a8777244ebc107e1124c4fab441b5e0eb75f44</id>
<content type='text'>
The package cloudinit was sparsely added to only the makefile's unittest
target and tox's py3 target. This branch adds cloudinit package to 'make
unittest3' and all tox environments. It tweaks one cloudinit unit test to
use mocked_object.call_count instead of mocked_object.assert_called_once
which is not defined in some python unittest versions.
</content>
</entry>
<entry>
<title>Makefile: No longer look for yaml files in obsolete ./bin/.</title>
<updated>2017-09-20T21:47:04+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@brickies.net</email>
</author>
<published>2017-09-20T21:47:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=82b2da3a56680b43df00ed31837b8650b5971656'/>
<id>urn:sha1:82b2da3a56680b43df00ed31837b8650b5971656</id>
<content type='text'>
The bin/ dir was deleted some time ago, but the Makefile was still
searching for files down it.  This didn't cause any problems other Than a
wierd looking error message in a build log.
</content>
</entry>
<entry>
<title>tools: Add tooling for basic cloud-init performance analysis.</title>
<updated>2017-08-21T19:46:23+00:00</updated>
<author>
<name>Chad Smith</name>
<email>chad.smith@canonical.com</email>
</author>
<published>2017-08-21T19:46:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=e74d7752f1761c3a8d3c19877de4707d00c49d08'/>
<id>urn:sha1:e74d7752f1761c3a8d3c19877de4707d00c49d08</id>
<content type='text'>
This branch adds cloudinit-analyze into cloud-init proper. It adds an
"analyze" subcommand to the cloud-init command line utility for quick
performance assessment of cloud-init stages and events.

On a cloud-init configured instance, running "cloud-init analyze blame"
will now report which cloud-init events cost the most wall time. This
allows for quick assessment of the most costly stages of cloud-init.

This functionality is pulled from Ryan Harper's analyze work.

The cloudinit-analyze main script itself has been refactored a bit for
inclusion as a subcommand of cloud-init CLI. There will be a followup
branch at some point which will optionally instrument detailed strace
profiling, but that approach needs a bit more discussion first.

This branch also adds:
 * additional debugging topic to the sphinx-generated docs describing
   cloud-init analyze, dump and show as well as cloud-init single usage.
 * Updates the Makefile unittests target to include cloudinit directory
   because we now have unittests within that package.

LP: #1709761
</content>
</entry>
<entry>
<title>makefile: fix ci-deps-ubuntu target</title>
<updated>2017-07-28T19:48:17+00:00</updated>
<author>
<name>Chad Smith</name>
<email>chad.smith@canonical.com</email>
</author>
<published>2017-07-28T19:48:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=664a22021ce278dc4120a5737b21bf6fe5448166'/>
<id>urn:sha1:664a22021ce278dc4120a5737b21bf6fe5448166</id>
<content type='text'>
Remove errant hyphen in read-dependencies --distro ubuntu parameter for ci-deps-ubuntu.
All system packages can now be installed for ubuntu with make ci-deps-ubuntu".
[author: powersj, review:blackboxsw]
</content>
</entry>
<entry>
<title>ci deps: Add --test-distro to read-dependencies to install all deps</title>
<updated>2017-06-14T23:11:43+00:00</updated>
<author>
<name>Chad Smith</name>
<email>chad.smith@canonical.com</email>
</author>
<published>2017-06-14T23:11:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=b23d9d7c5c112612dbaaf8c8371c9e735500b2eb'/>
<id>urn:sha1:b23d9d7c5c112612dbaaf8c8371c9e735500b2eb</id>
<content type='text'>
read-dependencies now takes --test-distro param to indicate we want to install
all system package depenencies to allow for testing and building for our
continous integration environment. It allows us to install all needed deps on
a fresh system with:
python3 ./tools/read-dependencies --distro ubuntu --test-distro [--dry-run].

Additionally read-dependencies now looks at what version of python is running
the script (py2 vs p3) and opts to install python 2 or 3 system deps
respectively. This behavior can still be overridden with
python3 ./tools/read-dependencies ... --python-version 2.

There are also some distro-specific packaging and test dependencies, like
devscripts, tox and libssl-dev on debian or ubuntu. Those pkg dependencies
have now been broken out from common pkg deps to avoid trying to install them
on centos/redhat/suse.
</content>
</entry>
<entry>
<title>pkg build ci: Add make ci-deps-&lt;distro&gt; target to install pkgs</title>
<updated>2017-06-14T02:13:34+00:00</updated>
<author>
<name>Chad Smith</name>
<email>chad.smith@canonical.com</email>
</author>
<published>2017-06-07T23:26:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=744e648eaf6325758282ef23bffcc4194faa6bac'/>
<id>urn:sha1:744e648eaf6325758282ef23bffcc4194faa6bac</id>
<content type='text'>
This change adds a couple of makefile targets for ci environments to
install all necessary dependencies for package builds and test runs.

It adds a number of arguments to ./tools/read-dependencies to facilitate
reading pip dependencies, translating pip deps to system package names and
optionally installing needed system-package dependencies on the local
system. This relocates all package dependency and translation logic into
./tools/read-dependencies instead of duplication found in packages/brpm
and packages/bddeb.

In this branch, we also define buildrequires as including all runtime
requires when rendering cloud-init.spec.in and debian/control files
because our package build infrastructure will also be running all unit
test during the package build process so we need runtime deps at build
time.

Additionally, this branch converts
packages/(redhat|suse)/cloud-init.spec.in from cheetah templates to jinja
to allow building python3 envs.
</content>
</entry>
</feed>
