Skip to content

Commit 25d1dbc

Browse files
committed
review changes, bump version
1 parent 477d058 commit 25d1dbc

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Requirements
4242
Getting Started
4343
===============
4444

45-
Using this library is intended to be as straightforward as possible. We Code for a very simple lambda used in the tests is reproduced below.
45+
Using this library is intended to be as straightforward as possible. Code for a very simple lambda used in the tests is reproduced below.
4646

4747
.. code:: python
4848

aws_lambda/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
"""Version information."""
22

33
# The following line *must* be the last in the module, exactly as formatted:
4-
__version__ = "0.12.3"
4+
__version__ = "1.0.0"

aws_lambda/aws_lambda.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -163,24 +163,24 @@ def pip_install_to_target(path, requirements=False, local_package=None):
163163
not set.
164164
local_package (str):
165165
The path to a local package with should be included in the deploy as
166-
well (and/or is not available on PyPi)
166+
well
167167
168168
Returns:
169169
None
170170
"""
171171
packages = []
172-
if requirements:
173-
if os.path.exists(requirements):
174-
log.info('Gathering requirement from %s' % requirements)
175-
data = read_file(requirements)
176-
packages.extend(data.splitlines())
177-
178-
if not packages:
179-
log.info('No dependency packages installed!')
180-
172+
if requirements and os.path.exists(requirements):
173+
log.info('Gathering requirement from %s' % requirements)
174+
data = read_file(requirements)
175+
packages.extend(data.splitlines())
176+
else:
177+
log.error('Could not load requirements from: %s (does it exist?)' % requirements)
181178
if local_package is not None:
182179
packages.append(local_package)
183-
_install_packages(path, packages)
180+
if packages:
181+
_install_packages(path, packages)
182+
else:
183+
log.info('No dependency packages installed!')
184184

185185

186186
def get_role_name(account_id, role):

0 commit comments

Comments
 (0)