596.1.1
by James Page
Relicense project as Apache 2.0 |
1 |
# Copyright 2016 Canonical Ltd
|
2 |
#
|
|
3 |
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4 |
# you may not use this file except in compliance with the License.
|
|
5 |
# You may obtain a copy of the License at
|
|
6 |
#
|
|
7 |
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8 |
#
|
|
9 |
# Unless required by applicable law or agreed to in writing, software
|
|
10 |
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12 |
# See the License for the specific language governing permissions and
|
|
13 |
# limitations under the License.
|
|
14 |
||
3
by Matthew Wedgwood
Initial import of charmsupport |
15 |
import os |
16 |
||
624
by Marco Ceppi
Fix setuptools |
17 |
from setuptools import setup, find_packages |
18 |
||
3
by Matthew Wedgwood
Initial import of charmsupport |
19 |
|
20 |
version_file = os.path.abspath(os.path.join(os.path.dirname(__file__), |
|
21 |
'VERSION')) |
|
22 |
with open(version_file) as v: |
|
23 |
VERSION = v.read().strip() |
|
24 |
||
25 |
||
26 |
SETUP = { |
|
4
by Matthew Wedgwood
Fixup for charmsupport, adopt package infrastructure |
27 |
'name': "charmhelpers", |
3
by Matthew Wedgwood
Initial import of charmsupport |
28 |
'version': VERSION, |
4
by Matthew Wedgwood
Fixup for charmsupport, adopt package infrastructure |
29 |
'author': "Ubuntu Developers", |
30 |
'author_email': "ubuntu-devel-discuss@lists.ubuntu.com", |
|
31 |
'url': "https://code.launchpad.net/charm-helpers", |
|
419.2.2
by Cory Johns
Added install_requires section to setup.py to ensure dependencies are met when installing from pypi |
32 |
'install_requires': [ |
419.2.3
by Cory Johns
Removed version pins and netifaces to ensure that it installs properly on new trusty and precise images |
33 |
'netaddr', |
34 |
'PyYAML', |
|
35 |
'Tempita', |
|
36 |
'Jinja2', |
|
37 |
'six', |
|
419.2.2
by Cory Johns
Added install_requires section to setup.py to ensure dependencies are met when installing from pypi |
38 |
],
|
624
by Marco Ceppi
Fix setuptools |
39 |
'packages': find_packages(), |
24.2.10
by Michael Nelson
Add salt-call wrapper. |
40 |
'scripts': [ |
20.8.10
by Matthew Wedgwood
Include CLI when charmhelpers is installed |
41 |
"bin/chlp", |
24.2.10
by Michael Nelson
Add salt-call wrapper. |
42 |
"bin/contrib/charmsupport/charmsupport", |
43 |
"bin/contrib/saltstack/salt-call", |
|
44 |
],
|
|
596.1.1
by James Page
Relicense project as Apache 2.0 |
45 |
'license': "Apache 2.0 (ASL)", |
3
by Matthew Wedgwood
Initial import of charmsupport |
46 |
'long_description': open('README.txt').read(), |
158.1.2
by Tim Van Steenburgh
Update description; remove cli from docs for now |
47 |
'description': 'Helpers for Juju Charm development', |
3
by Matthew Wedgwood
Initial import of charmsupport |
48 |
}
|
49 |
||
158.1.1
by Tim Van Steenburgh
Add docs skeleton |
50 |
try: |
51 |
from sphinx_pypi_upload import UploadDoc |
|
52 |
SETUP['cmdclass'] = {'upload_sphinx': UploadDoc} |
|
53 |
except ImportError: |
|
54 |
pass
|
|
3
by Matthew Wedgwood
Initial import of charmsupport |
55 |
|
56 |
if __name__ == '__main__': |
|
57 |
setup(**SETUP) |