|
| 1 | +# Copyright 2020 Google LLC |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +from io import open |
| 16 | +from os import path |
| 17 | + |
| 18 | +from setuptools import find_packages, setup |
| 19 | + |
| 20 | +here = path.abspath(path.dirname(__file__)) |
| 21 | + |
| 22 | +# Get the long description from the README file |
| 23 | +with open(path.join(here, "README.md"), encoding="utf-8") as f: |
| 24 | + long_description = f.read() |
| 25 | + |
| 26 | +setup( |
| 27 | + name="functions-framework", |
| 28 | + version="3.8.2", |
| 29 | + description="An open source FaaS (Function as a service) framework for writing portable Python functions -- brought to you by the Google Cloud Functions team.", |
| 30 | + long_description=long_description, |
| 31 | + long_description_content_type="text/markdown", |
| 32 | + url="https://github.com/googlecloudplatform/functions-framework-python", |
| 33 | + author="Google LLC", |
| 34 | + |
| 35 | + classifiers=[ |
| 36 | + "Development Status :: 5 - Production/Stable ", |
| 37 | + "Intended Audience :: Developers", |
| 38 | + "License :: OSI Approved :: Apache Software License", |
| 39 | + "Programming Language :: Python :: 3.7", |
| 40 | + "Programming Language :: Python :: 3.8", |
| 41 | + "Programming Language :: Python :: 3.9", |
| 42 | + "Programming Language :: Python :: 3.10", |
| 43 | + "Programming Language :: Python :: 3.11", |
| 44 | + "Programming Language :: Python :: 3.12", |
| 45 | + ], |
| 46 | + keywords="functions-framework", |
| 47 | + packages=find_packages(where="src"), |
| 48 | + package_data={"functions_framework": ["py.typed"]}, |
| 49 | + namespace_packages=["google", "google.cloud"], |
| 50 | + package_dir={"": "src"}, |
| 51 | + python_requires=">=3.5, <4", |
| 52 | + install_requires=[ |
| 53 | + "flask>=1.0,<4.0", |
| 54 | + "click>=7.0,<9.0", |
| 55 | + "watchdog>=1.0.0", |
| 56 | + "gunicorn>=22.0.0; platform_system!='Windows'", |
| 57 | + "cloudevents>=1.2.0,<2.0.0", |
| 58 | + "Werkzeug>=0.14,<4.0.0", |
| 59 | + ], |
| 60 | + extras_require={ |
| 61 | + "async": ["starlette>=0.37.0,<1.0.0"], |
| 62 | + }, |
| 63 | + entry_points={ |
| 64 | + "console_scripts": [ |
| 65 | + "ff=functions_framework._cli:_cli", |
| 66 | + "functions-framework=functions_framework._cli:_cli", |
| 67 | + "functions_framework=functions_framework._cli:_cli", |
| 68 | + "functions-framework-python=functions_framework._cli:_cli", |
| 69 | + "functions_framework_python=functions_framework._cli:_cli", |
| 70 | + ] |
| 71 | + }, |
| 72 | +) |
0 commit comments