Merge lp:~johnsca/charm-helpers/contrib-setup-pypi into lp:charm-helpers

Proposed by Cory Johns
Status: Merged
Merged at revision: 421
Proposed branch: lp:~johnsca/charm-helpers/contrib-setup-pypi
Merge into: lp:charm-helpers
Diff against target: 46 lines (+22/-1)
1 file modified
setup.py (+22/-1)
To merge this branch: bzr merge lp:~johnsca/charm-helpers/contrib-setup-pypi
Reviewer Review Type Date Requested Status
Matt Bruzek Approve
Review via email: mp+266903@code.launchpad.net

Description of the change

Several contrib packages were missing from setup.py, meaning they would not be included in a pypi release.

To post a comment you must log in.
421. By Cory Johns

Added install_requires section to setup.py to ensure dependencies are met when installing from pypi

422. By Cory Johns

Removed version pins and netifaces to ensure that it installs properly on new trusty and precise images

Revision history for this message
Matt Bruzek (mbruzek) wrote :

Cory and I had a discussion on IRC about the version numbers in revision 421. I am glad he removed the specific version numbers.

I juju deployed both a precise and trusty Ubuntu charm. I was able to verify the old incorrect behavior of not being able to resolve: from charmhelpers.contrib import ssl.

When I branched this code and pip installed the current directory I was able to successfully import the missing package! Thanks Cory for this fix.

+1

review: Approve
Revision history for this message
Matt Bruzek (mbruzek) wrote :

I also tested with a python virtual environment, and was able to resolve: from charmhelpers.cli import cmdline - which required six and pyyaml installed before the import would resolve.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'setup.py'
2--- setup.py 2015-03-04 16:15:18 +0000
3+++ setup.py 2015-08-04 17:57:09 +0000
4@@ -14,6 +14,13 @@
5 'author': "Ubuntu Developers",
6 'author_email': "ubuntu-devel-discuss@lists.ubuntu.com",
7 'url': "https://code.launchpad.net/charm-helpers",
8+ 'install_requires': [
9+ 'netaddr',
10+ 'PyYAML',
11+ 'Tempita',
12+ 'Jinja2',
13+ 'six',
14+ ],
15 'packages': [
16 "charmhelpers",
17 "charmhelpers.cli",
18@@ -22,13 +29,27 @@
19 "charmhelpers.fetch",
20 "charmhelpers.payload",
21 "charmhelpers.contrib",
22+ "charmhelpers.contrib.amulet",
23 "charmhelpers.contrib.ansible",
24 "charmhelpers.contrib.benchmark",
25 "charmhelpers.contrib.charmhelpers",
26 "charmhelpers.contrib.charmsupport",
27+ "charmhelpers.contrib.database",
28+ "charmhelpers.contrib.hahelpers",
29+ "charmhelpers.contrib.network",
30+ "charmhelpers.contrib.network.ovs",
31+ "charmhelpers.contrib.openstack",
32+ "charmhelpers.contrib.openstack.amulet",
33+ "charmhelpers.contrib.openstack.files",
34+ "charmhelpers.contrib.openstack.templates",
35+ "charmhelpers.contrib.peerstorage",
36+ "charmhelpers.contrib.python",
37 "charmhelpers.contrib.saltstack",
38- "charmhelpers.contrib.hahelpers",
39+ "charmhelpers.contrib.ssl",
40+ "charmhelpers.contrib.storage",
41+ "charmhelpers.contrib.storage.linux",
42 "charmhelpers.contrib.templating",
43+ "charmhelpers.contrib.unison",
44 ],
45 'scripts': [
46 "bin/chlp",

Subscribers

People subscribed via source and target branches