Skip to content

Commit ad509e5

Browse files
author
Eric Diven
committed
Update the version number for version 1.2
Prepare for upcoming release
1 parent b61a12d commit ad509e5

File tree

6 files changed

+16
-11
lines changed

6 files changed

+16
-11
lines changed

docs/installation/advanced-installation-options.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Advanced Installation Options
77
Online vs Offline Installer
88
---------------------------
99
The installer has two different versions: the offline installer --
10-
``prestoadmin-1.1-offline.tar.bz2``-- and the online installer --
11-
``prestoadmin-1.1-online.tar.bz2``. The offline installer includes all of the
10+
``prestoadmin-1.2-offline.tar.bz2``-- and the online installer --
11+
``prestoadmin-1.2-online.tar.bz2``. The offline installer includes all of the
1212
dependencies for ``presto-admin``, so it can be used on a cluster without an
1313
outside network connection. The offline installer is recommended because it is faster.
1414

docs/installation/presto-admin-installation.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ Presto Admin Installation
77

88

99
To install ``presto-admin``, first copy the installer
10-
``prestoadmin-1.1-offline.tar.bz2`` to the location where you want
10+
``prestoadmin-1.2-offline.tar.bz2`` to the location where you want
1111
``presto-admin`` to run. The recommended installation location is ``/opt``.
1212
Note that ``presto-admin`` does not have to be on same node(s) where Presto
1313
will run, though it does need to have SSH access to all of them. Next, extract
1414
and sudo run the installation script from within the ``prestoadmin`` directory.
1515
::
1616

17-
$ tar xvf prestoadmin-1.1-offline.tar.bz2
17+
$ tar xvf prestoadmin-1.2-offline.tar.bz2
1818
$ cd prestoadmin
1919
$ sudo ./install-prestoadmin.sh
2020

prestoadmin/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
"""Presto-Admin tool for deploying and managing Presto clusters"""
1717

18-
__version__ = '1.1' # Make sure to update setup.py too
18+
__version__ = '1.2' # Make sure to update setup.py too
1919

2020
import os
2121

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def get_custom_rc_file(self):
7575

7676
setup(
7777
name='prestoadmin',
78-
version='1.1', # Make sure to update version in prestoadmin/__init__.py
78+
version='1.2', # Make sure to update version in prestoadmin/__init__.py
7979
description="Presto-admin installs, configures, and manages Presto installations.",
8080
long_description=readme + '\n\n' + history,
8181
author="Teradata Coporation",

tests/product/standalone/test_installation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def test_install_from_different_dir(self):
8383
self.assertRaisesRegexp(
8484
OSError,
8585
r'IOError: \[Errno 2\] No such file or directory: '
86-
r'\'/opt/prestoadmin-1.1-py2-none-any.whl\'',
86+
r'\'/opt/prestoadmin-1.2-py2-none-any.whl\'',
8787
self.cluster.run_script_on_host,
8888
script,
8989
self.cluster.master

tests/unit/test_bdist_prestoadmin.py

+9-4
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,18 @@
2828
from distutils.dist import Distribution
2929

3030

31+
# Hello future maintainer! Several tests in here include a version number in a
32+
# path. It is by pure coincidence that these happen to match the current
33+
# version number, if in fact they still do. We set the version number for the
34+
# tests in self.attrs, and it can be anything as long as the other version
35+
# numbers in the file match.
3136
class TestBDistPrestoAdmin(BaseTestCase):
3237
def setUp(self):
3338
super(TestBDistPrestoAdmin, self).setUp()
3439
self.attrs = {
3540
'name': 'prestoadmin',
3641
'cmdclass': {'bdist_prestoadmin': bdist_prestoadmin},
37-
'version': '1.1',
42+
'version': '1.2',
3843
'packages': ['prestoadmin'],
3944
'package_dir': {'prestoadmin': 'prestoadmin'},
4045
'install_requires': ['fabric']
@@ -88,7 +93,7 @@ def test_finalize_argvs(self):
8893

8994
@patch('distutils.core.Command.run_command')
9095
def test_build_wheel(self, run_command_mock):
91-
self.assertEquals('prestoadmin-1.1-py2-none-any',
96+
self.assertEquals('prestoadmin-1.2-py2-none-any',
9297
self.bdist.build_wheel('build'))
9398

9499
@patch('packaging.bdist_prestoadmin.urllib.urlretrieve')
@@ -209,7 +214,7 @@ def test_archive_dist_offline(self):
209214
mkpath(build_path)
210215
self.bdist.archive_dist(build_path, 'dist')
211216

212-
archive = os.path.join('dist', 'prestoadmin-1.1-offline.tar.bz2')
217+
archive = os.path.join('dist', 'prestoadmin-1.2-offline.tar.bz2')
213218
self.assertTrue(os.path.exists(archive))
214219
finally:
215220
remove_tree(os.path.dirname(build_path))
@@ -222,7 +227,7 @@ def test_archive_dist_online(self):
222227
self.bdist.online_install = True
223228
self.bdist.archive_dist(build_path, 'dist')
224229

225-
archive = os.path.join('dist', 'prestoadmin-1.1-online.tar.bz2')
230+
archive = os.path.join('dist', 'prestoadmin-1.2-online.tar.bz2')
226231
self.assertTrue(os.path.exists(archive))
227232
finally:
228233
remove_tree(os.path.dirname(build_path))

0 commit comments

Comments
 (0)