Skip to content

Commit

Permalink
review changes, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
willronchetti committed Nov 7, 2019
1 parent 477d058 commit 25d1dbc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Requirements
Getting Started
===============

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.
Using this library is intended to be as straightforward as possible. Code for a very simple lambda used in the tests is reproduced below.

.. code:: python
Expand Down
2 changes: 1 addition & 1 deletion aws_lambda/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Version information."""

# The following line *must* be the last in the module, exactly as formatted:
__version__ = "0.12.3"
__version__ = "1.0.0"
22 changes: 11 additions & 11 deletions aws_lambda/aws_lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,24 +163,24 @@ def pip_install_to_target(path, requirements=False, local_package=None):
not set.
local_package (str):
The path to a local package with should be included in the deploy as
well (and/or is not available on PyPi)
well
Returns:
None
"""
packages = []
if requirements:
if os.path.exists(requirements):
log.info('Gathering requirement from %s' % requirements)
data = read_file(requirements)
packages.extend(data.splitlines())

if not packages:
log.info('No dependency packages installed!')

if requirements and os.path.exists(requirements):
log.info('Gathering requirement from %s' % requirements)
data = read_file(requirements)
packages.extend(data.splitlines())
else:
log.error('Could not load requirements from: %s (does it exist?)' % requirements)
if local_package is not None:
packages.append(local_package)
_install_packages(path, packages)
if packages:
_install_packages(path, packages)
else:
log.info('No dependency packages installed!')


def get_role_name(account_id, role):
Expand Down

0 comments on commit 25d1dbc

Please sign in to comment.