Merge lp:~michael.nelson/charm-helpers/include-sub-packages into lp:charm-helpers

Proposed by Michael Nelson
Status: Merged
Approved by: Matthew Wedgwood
Approved revision: 14
Merge reported by: Matthew Wedgwood
Merged at revision: not available
Proposed branch: lp:~michael.nelson/charm-helpers/include-sub-packages
Merge into: lp:charm-helpers
Diff against target: 60 lines (+27/-2)
3 files modified
Makefile (+2/-1)
setup.py (+7/-1)
test_requirements.txt (+18/-0)
To merge this branch: bzr merge lp:~michael.nelson/charm-helpers/include-sub-packages
Reviewer Review Type Date Requested Status
Matthew Wedgwood (community) Approve
Review via email: mp+165028@code.launchpad.net

Commit message

Include contrib subpackages in setup.py

Description of the change

Include contrib subpackages in setup.py

I noticed while trying to install charmhelpers locally that it wouldn't include the contrib packages [1]. AFAICT, it's simply that they were missing from the setup.py.

Feel free to just take the diff of setup.py (assuming it's OK). The rest of the changes were just to enable me to use `make test` without installing a bunch of packages system-wide (there might be a better way to do this... my setup.py-fu isn't strong).

Also, I was going to file a bug instead, but bug tracking wasn't enabled for charm-helpers.

Thanks!

[1] https://pastebin.canonical.com/91421/

To post a comment you must log in.
Revision history for this message
Matthew Wedgwood (mew) wrote :

Thanks michael!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'Makefile'
--- Makefile 2013-05-11 20:24:29 +0000
+++ Makefile 2013-05-22 08:14:30 +0000
@@ -1,4 +1,5 @@
1PROJECT=charmhelpers1PROJECT=charmhelpers
2PYTHON := /usr/bin/env python
2SUITE=unstable3SUITE=unstable
3TESTS=tests/4TESTS=tests/
45
@@ -32,7 +33,7 @@
3233
33test:34test:
34 @echo Starting tests...35 @echo Starting tests...
35 @nosetests --nologcapture tests/36 @$(PYTHON) /usr/bin/nosetests --nologcapture tests/
3637
37lint:38lint:
38 @echo Checking for Python syntax...39 @echo Checking for Python syntax...
3940
=== modified file 'setup.py'
--- setup.py 2013-05-11 20:24:29 +0000
+++ setup.py 2013-05-22 08:14:30 +0000
@@ -14,7 +14,13 @@
14 'author': "Ubuntu Developers",14 'author': "Ubuntu Developers",
15 'author_email': "ubuntu-devel-discuss@lists.ubuntu.com",15 'author_email': "ubuntu-devel-discuss@lists.ubuntu.com",
16 'url': "https://code.launchpad.net/charm-helpers",16 'url': "https://code.launchpad.net/charm-helpers",
17 'packages': ["charmhelpers"],17 'packages': [
18 "charmhelpers",
19 "charmhelpers.contrib.charmhelpers",
20 "charmhelpers.contrib.charmsupport",
21 "charmhelpers.contrib.hahelpers",
22 "charmhelpers.contrib.jujugui",
23 ],
18 'scripts': ["bin/contrib/charmsupport/charmsupport"],24 'scripts': ["bin/contrib/charmsupport/charmsupport"],
19 'license': "Affero GNU Public License v3",25 'license': "Affero GNU Public License v3",
20 'long_description': open('README.txt').read(),26 'long_description': open('README.txt').read(),
2127
=== added file 'test_requirements.txt'
--- test_requirements.txt 1970-01-01 00:00:00 +0000
+++ test_requirements.txt 2013-05-22 08:14:30 +0000
@@ -0,0 +1,18 @@
1# If you don't have the required packages on your system and prefer
2# to keep your system clean, you can do the following to run the
3# charm-helper test suite:
4# $ virtualenv .env
5# $ . .env/bin/activate
6# $ pip install -r test_requirements.txt
7# Then `make test` should find all its dependencies.
8coverage==3.6
9launchpadlib==1.10.2
10mock==1.0.1
11nose==1.1.2
12PyYAML==3.10
13# Note: This is compiled and will require libapt-pkg-dev for headers.
14python-apt
15simplejson==3.3.0
16testtools==0.9.31
17Tempita==0.5.1
18bzr+http://bazaar.launchpad.net/~yellow/python-shelltoolbox/trunk@17#egg=shelltoolbox

Subscribers

People subscribed via source and target branches