This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

# lambda-setuptools

####A Command extension to setuptools that builds an AWS Lambda compatible zip file

Use is simple:

  1. Add this setup_requires=[‘lambda_setuptools’] as an attribute to your _setup.py_ file
  2. Call python setup.py _ldist_
    • This will build (using bdist_wheel) and install your package, along with all of the dependencies in _install_requires_
    • Zip the result up into an AWS Lambda compatible format
      • The result will be in _dist/[your-package-name]-lambda-[version].zip_ (along with your wheel)

This extension also adds three new attributes to the setup() function:

  1. lambda_function
    • Usage: _lambda_function=<my_package>.<some_module>:<some_function>_
    • Effect: ldist will create a root-level python module named <package_name>_function.py where package_name is derived from the _name_ attribute. This created module will simply redefine your lambda handler function at the root-level.
  2. lambda_module
    • Usage: _lambda_module=<some_module>_
    • Effect: ldist adds the named module to the list of _py_modules_ to install, normally at the root level
  3. lambda_package
    • Usage: _lambda_package=<some_dir>_
    • Effect: ldist will copy the contents of the provided directory into the root level of the resulting lambda distribution. The provided directory MUST NOT have and __init__.py in it (e.g. - it can’t be a real package)

All ldist attributes can be used in the same setup() call. It is up to the user to ensure that you don’t step all over yourself…

Note that all other commands and attributes in setup.py will still work the way you expect them to.

Enjoy!

Release History

Release History

0.1.3

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
lambda_setuptools-0.1.3-py2.py3-none-any.whl (6.4 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Jun 29, 2016
lambda-setuptools-0.1.3.tar.gz (4.0 kB) Copy SHA256 Checksum SHA256 Source Jun 29, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting