pulumi/sdk/python/lib/setup.py
James Forcier bf84a3482b Add py.typed to Python package for PEP 561 compliance (#3704)
PEP 561 specifies that packages which contain either inline type hints
or type stubs should indicate their support for type hints via
including a file named `py.typed` in the root of the package. Since
Pulumi already includes inline type hints, adding `py.typed` to the
Python SDK simply allows these hints to be used by mypy.
2020-01-17 15:01:36 -08:00

42 lines
1.3 KiB
Python

# Copyright 2016-2018, Pulumi Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""The Pulumi Python SDK."""
from setuptools import setup, find_packages
def readme():
with open('README.md', encoding='utf-8') as f:
return f.read()
setup(name='pulumi',
version='${VERSION}',
description='Pulumi\'s Python SDK',
long_description=readme(),
long_description_content_type='text/markdown',
url='https://github.com/pulumi/pulumi',
license='Apache 2.0',
packages=find_packages(exclude=("test*",)),
package_data={
'pulumi': [
'py.typed'
]
},
install_requires=[
'protobuf>=3.6.0',
'dill>=0.3.0',
'grpcio>=1.9.1'
],
zip_safe=False)