diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 14:06:28 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 14:06:28 +0000 |
| commit | 11fd11c6d69f4c1dbe3107ec57022515aaf4bccd (patch) | |
| tree | f9b429d6868058673a5f6e1cfd21c1b24e25310a /python-lambda-packages.spec | |
| parent | abafd9ee293f8d2362d9799463de1a9c26ac4137 (diff) | |
automatic import of python-lambda-packages
Diffstat (limited to 'python-lambda-packages.spec')
| -rw-r--r-- | python-lambda-packages.spec | 333 |
1 files changed, 333 insertions, 0 deletions
diff --git a/python-lambda-packages.spec b/python-lambda-packages.spec new file mode 100644 index 0000000..b76bc5a --- /dev/null +++ b/python-lambda-packages.spec @@ -0,0 +1,333 @@ +%global _empty_manifest_terminate_build 0 +Name: python-lambda_packages +Version: 0.20.0 +Release: 1 +Summary: AWS Lambda Packages +License: MIT License +URL: https://github.com/Miserlou/lambda-packages +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/0d/27/e588646a1c8c47b96862aafa66416142db5db857732594aafe19cbbf3fda/lambda_packages-0.20.0.tar.gz +BuildArch: noarch + + +%description + + +# lambda-packages +[](https://travis-ci.org/Miserlou/lambda-packages) +[](https://pypi.python.org/pypi/lambda-packages) +[](https://slack.zappa.io) + +Various popular libraries, pre-compiled to be compatible with AWS Lambda. + +Currently includes (at least Python 2.7) support for: + +* bcrypt +* cffi +* cryptography +* datrie_extended +* LXML +* misaka +* MySQL-Python +* mysqlclient +* numpy +* OpenCV +* Pillow (PIL) +* psycopg2 +* PyCrypto +* PyNaCl +* pyproj +* python-ldap +* python-Levenshtein +* regex +* SQLite +* xmlsec + +This project is intended for use by [Zappa](https://github.com/Miserlou/Zappa), but could also be used by any Python/Lambda project. + +## Installation + + pip install lambda-packages + +## Usage + +The best way to use these packages is with [Zappa](https://github.com/Miserlou/Zappa), which will automatically install the right packages during deployment, and do a million other useful things. Whatever you're currently trying to do on Lambda, it'll be way easier for you if you just use Zappa right now. Trust me. It's awesome. As a bonus, Zappa now also provides support for [manylinux wheels](https://blog.zappa.io/posts/zappa-adds-support-for-manylinux-wheels), which adds support for hundreds of other packages. + +But, if you want to use this project the other (wrong) way, just put the contents of the .tar.gz archive into your lambda .zip. + +**lambda-packages** also includes a manifest with information about the included packages and the paths to their binaries. + +```python +from lambda_packages import lambda_packages + +print lambda_packages['psycopg2'] + +#{ +# 'python2.7': { +# 'version': '2.6.1', +# 'path': '<absolute-local-path>/lambda_packages/psycopg2/python2.7-psycopg2-2.6.1.tar.gz' +# } +#} +``` + +## Contributing + +To add support for more packages, send a pull request containing a gzipped tarball (`tar -zcvf <package-name>.tar.gz <list-of-files>`) of the package (built on Amazon Linux and tested on AWS Lambda) in the appropriate directory, an updated manifest, and deterministic build instructions for creating the archive. + +You may find the [build.sh script](https://github.com/Miserlou/lambda-packages/blob/master/lambda_packages/cryptography/build.sh) useful as a starting point. + +Before contributing, you should also make sure that there is no `manylinux` wheel on PyPI for your package, as Zappa will automatically use those in addition to `lambda-packages`. + +You may also be interested in [this guide on deploying with Zappa and Docker](https://blog.zappa.io/posts/simplified-aws-lambda-deployments-with-docker-and-zappa). + +Useful targets which don't have manylinux wheels versions include: + +* MongoEngine + +## Support / Development / Training / Consulting + +Do you need help with.. + + * Porting existing Python applications to AWS Lambda? + * Building new applications and services that scale infinitely? + * Reducing your operations and hosting costs? + * Training your team to use AWS and other server-less paradigms? + +Good news! We're currently available for remote and on-site consulting for small, large and enterprise teams. Please contact <miserlou@gmail.com> with your needs and let's work together! + +<br /> +<p align="center"> + <a href="https://gun.io"><img src="http://i.imgur.com/M7wJipR.png" alt="Made by Gun.io"/></a> +</p> + +%package -n python3-lambda_packages +Summary: AWS Lambda Packages +Provides: python-lambda_packages +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-lambda_packages + + +# lambda-packages +[](https://travis-ci.org/Miserlou/lambda-packages) +[](https://pypi.python.org/pypi/lambda-packages) +[](https://slack.zappa.io) + +Various popular libraries, pre-compiled to be compatible with AWS Lambda. + +Currently includes (at least Python 2.7) support for: + +* bcrypt +* cffi +* cryptography +* datrie_extended +* LXML +* misaka +* MySQL-Python +* mysqlclient +* numpy +* OpenCV +* Pillow (PIL) +* psycopg2 +* PyCrypto +* PyNaCl +* pyproj +* python-ldap +* python-Levenshtein +* regex +* SQLite +* xmlsec + +This project is intended for use by [Zappa](https://github.com/Miserlou/Zappa), but could also be used by any Python/Lambda project. + +## Installation + + pip install lambda-packages + +## Usage + +The best way to use these packages is with [Zappa](https://github.com/Miserlou/Zappa), which will automatically install the right packages during deployment, and do a million other useful things. Whatever you're currently trying to do on Lambda, it'll be way easier for you if you just use Zappa right now. Trust me. It's awesome. As a bonus, Zappa now also provides support for [manylinux wheels](https://blog.zappa.io/posts/zappa-adds-support-for-manylinux-wheels), which adds support for hundreds of other packages. + +But, if you want to use this project the other (wrong) way, just put the contents of the .tar.gz archive into your lambda .zip. + +**lambda-packages** also includes a manifest with information about the included packages and the paths to their binaries. + +```python +from lambda_packages import lambda_packages + +print lambda_packages['psycopg2'] + +#{ +# 'python2.7': { +# 'version': '2.6.1', +# 'path': '<absolute-local-path>/lambda_packages/psycopg2/python2.7-psycopg2-2.6.1.tar.gz' +# } +#} +``` + +## Contributing + +To add support for more packages, send a pull request containing a gzipped tarball (`tar -zcvf <package-name>.tar.gz <list-of-files>`) of the package (built on Amazon Linux and tested on AWS Lambda) in the appropriate directory, an updated manifest, and deterministic build instructions for creating the archive. + +You may find the [build.sh script](https://github.com/Miserlou/lambda-packages/blob/master/lambda_packages/cryptography/build.sh) useful as a starting point. + +Before contributing, you should also make sure that there is no `manylinux` wheel on PyPI for your package, as Zappa will automatically use those in addition to `lambda-packages`. + +You may also be interested in [this guide on deploying with Zappa and Docker](https://blog.zappa.io/posts/simplified-aws-lambda-deployments-with-docker-and-zappa). + +Useful targets which don't have manylinux wheels versions include: + +* MongoEngine + +## Support / Development / Training / Consulting + +Do you need help with.. + + * Porting existing Python applications to AWS Lambda? + * Building new applications and services that scale infinitely? + * Reducing your operations and hosting costs? + * Training your team to use AWS and other server-less paradigms? + +Good news! We're currently available for remote and on-site consulting for small, large and enterprise teams. Please contact <miserlou@gmail.com> with your needs and let's work together! + +<br /> +<p align="center"> + <a href="https://gun.io"><img src="http://i.imgur.com/M7wJipR.png" alt="Made by Gun.io"/></a> +</p> + +%package help +Summary: Development documents and examples for lambda_packages +Provides: python3-lambda_packages-doc +%description help + + +# lambda-packages +[](https://travis-ci.org/Miserlou/lambda-packages) +[](https://pypi.python.org/pypi/lambda-packages) +[](https://slack.zappa.io) + +Various popular libraries, pre-compiled to be compatible with AWS Lambda. + +Currently includes (at least Python 2.7) support for: + +* bcrypt +* cffi +* cryptography +* datrie_extended +* LXML +* misaka +* MySQL-Python +* mysqlclient +* numpy +* OpenCV +* Pillow (PIL) +* psycopg2 +* PyCrypto +* PyNaCl +* pyproj +* python-ldap +* python-Levenshtein +* regex +* SQLite +* xmlsec + +This project is intended for use by [Zappa](https://github.com/Miserlou/Zappa), but could also be used by any Python/Lambda project. + +## Installation + + pip install lambda-packages + +## Usage + +The best way to use these packages is with [Zappa](https://github.com/Miserlou/Zappa), which will automatically install the right packages during deployment, and do a million other useful things. Whatever you're currently trying to do on Lambda, it'll be way easier for you if you just use Zappa right now. Trust me. It's awesome. As a bonus, Zappa now also provides support for [manylinux wheels](https://blog.zappa.io/posts/zappa-adds-support-for-manylinux-wheels), which adds support for hundreds of other packages. + +But, if you want to use this project the other (wrong) way, just put the contents of the .tar.gz archive into your lambda .zip. + +**lambda-packages** also includes a manifest with information about the included packages and the paths to their binaries. + +```python +from lambda_packages import lambda_packages + +print lambda_packages['psycopg2'] + +#{ +# 'python2.7': { +# 'version': '2.6.1', +# 'path': '<absolute-local-path>/lambda_packages/psycopg2/python2.7-psycopg2-2.6.1.tar.gz' +# } +#} +``` + +## Contributing + +To add support for more packages, send a pull request containing a gzipped tarball (`tar -zcvf <package-name>.tar.gz <list-of-files>`) of the package (built on Amazon Linux and tested on AWS Lambda) in the appropriate directory, an updated manifest, and deterministic build instructions for creating the archive. + +You may find the [build.sh script](https://github.com/Miserlou/lambda-packages/blob/master/lambda_packages/cryptography/build.sh) useful as a starting point. + +Before contributing, you should also make sure that there is no `manylinux` wheel on PyPI for your package, as Zappa will automatically use those in addition to `lambda-packages`. + +You may also be interested in [this guide on deploying with Zappa and Docker](https://blog.zappa.io/posts/simplified-aws-lambda-deployments-with-docker-and-zappa). + +Useful targets which don't have manylinux wheels versions include: + +* MongoEngine + +## Support / Development / Training / Consulting + +Do you need help with.. + + * Porting existing Python applications to AWS Lambda? + * Building new applications and services that scale infinitely? + * Reducing your operations and hosting costs? + * Training your team to use AWS and other server-less paradigms? + +Good news! We're currently available for remote and on-site consulting for small, large and enterprise teams. Please contact <miserlou@gmail.com> with your needs and let's work together! + +<br /> +<p align="center"> + <a href="https://gun.io"><img src="http://i.imgur.com/M7wJipR.png" alt="Made by Gun.io"/></a> +</p> + +%prep +%autosetup -n lambda_packages-0.20.0 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-lambda_packages -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.20.0-1 +- Package Spec generated |
