pulumi/sdk/python/lib/setup.py
Pat Gavlin ef6da5709d
Update Python resource ref deserialization. (#5805)
There are two significant changes in this commit: one to the way
resource packages/modules are stored and retrieved, and one to resource
ref deserialization in the face of missing resource packages/modules.

Resource packages and modules no longer require an exact version match
during deserialization. Instead, the newest compatible version of the
package or module is selected. If no version was specified, the newest
version of the package or module will be chosen. As a special case, a
package or module that has no version will always be treated as the best
version for that package or module.

If a resource package or module is not found when attempting to
deserialize a resource reference, the SDK no longer emits an error, and
instead deserializes the reference as its URN or ID (if present). This
accommodates providers that have not yet been updated to include the
appropriate factory registrations.
2020-11-23 15:37:44 -08:00

44 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,!=1.30.0',
'six>=1.12.0',
'semver>=2.8.1'
],
zip_safe=False)