diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-pulumi-random.spec | 294 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 296 insertions, 0 deletions
@@ -0,0 +1 @@ +/pulumi_random-4.12.1.tar.gz diff --git a/python-pulumi-random.spec b/python-pulumi-random.spec new file mode 100644 index 0000000..b15baa4 --- /dev/null +++ b/python-pulumi-random.spec @@ -0,0 +1,294 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pulumi-random +Version: 4.12.1 +Release: 1 +Summary: A Pulumi package to safely use randomness in Pulumi programs. +License: Apache-2.0 +URL: https://pulumi.io +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/bf/84/cf1728a39f74620cad10033a1b5380d52d3b862e95d0cc33b12967e584c9/pulumi_random-4.12.1.tar.gz +BuildArch: noarch + + +%description +[](https://github.com/pulumi/pulumi-random/actions) +[](https://slack.pulumi.com) +[](https://npmjs.com/package/@pulumi/random) +[](https://badge.fury.io/nu/pulumi.random) +[](https://pypi.org/project/pulumi-random) +[](https://pkg.go.dev/github.com/pulumi/pulumi-random/sdk/v4/go) +[](https://github.com/pulumi/pulumi-random/blob/master/LICENSE) + +# Random Provider + +The random provider allows the safe use of randomness in a Pulumi program. This allows you to generate resource +properties, such as names, that contain randomness in a way that works with Pulumi's goal state oriented approach. +Using randomness as usual would not work well with Pulumi, because by definition, each time the program is evaluated, +a new random state would be produced, necessitating re-convergence on the goal state. This provider understands +how to work with the Pulumi resource lifecycle to accomplish randomness safely and in a way that works as desired. + +## Example + +For example, to generate a random password, allocate a `RandomPassword` resource +and then use its `result` output property (of type `Output<string>`) to pass +to another resource. + +```typescript +import * as pulumi from "@pulumi/pulumi"; +import * as aws from "@pulumi/aws"; +import * as random from "@pulumi/random"; + +const password = new random.RandomPassword("password", { + length: 16, + overrideSpecial: "_%@", + special: true, +}); +const example = new aws.rds.Instance("example", { + password: password.result, +}); +``` + +## Installing + +This package is available in many languages in the standard packaging formats. + +### Node.js (Java/TypeScript) + +To use from JavaScript or TypeScript in Node.js, install using either `npm`: + + $ npm install @pulumi/random + +or `yarn`: + + $ yarn add @pulumi/random + +### Python + +To use from Python, install using `pip`: + + $ pip install pulumi_random + +### Go + +To use from Go, use `go get` to grab the latest version of the library + + $ go get github.com/pulumi/pulumi-random/sdk/v4/go/... + +### .NET + +To use from .NET, install using `dotnet add package`: + + $ dotnet add package Pulumi.Random + +## Reference + +For further information, please visit [the random provider docs](https://www.pulumi.com/docs/intro/cloud-providers/random) or for detailed reference documentation, please visit [the API docs](https://www.pulumi.com/docs/reference/pkg/random). + + + + +%package -n python3-pulumi-random +Summary: A Pulumi package to safely use randomness in Pulumi programs. +Provides: python-pulumi-random +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pulumi-random +[](https://github.com/pulumi/pulumi-random/actions) +[](https://slack.pulumi.com) +[](https://npmjs.com/package/@pulumi/random) +[](https://badge.fury.io/nu/pulumi.random) +[](https://pypi.org/project/pulumi-random) +[](https://pkg.go.dev/github.com/pulumi/pulumi-random/sdk/v4/go) +[](https://github.com/pulumi/pulumi-random/blob/master/LICENSE) + +# Random Provider + +The random provider allows the safe use of randomness in a Pulumi program. This allows you to generate resource +properties, such as names, that contain randomness in a way that works with Pulumi's goal state oriented approach. +Using randomness as usual would not work well with Pulumi, because by definition, each time the program is evaluated, +a new random state would be produced, necessitating re-convergence on the goal state. This provider understands +how to work with the Pulumi resource lifecycle to accomplish randomness safely and in a way that works as desired. + +## Example + +For example, to generate a random password, allocate a `RandomPassword` resource +and then use its `result` output property (of type `Output<string>`) to pass +to another resource. + +```typescript +import * as pulumi from "@pulumi/pulumi"; +import * as aws from "@pulumi/aws"; +import * as random from "@pulumi/random"; + +const password = new random.RandomPassword("password", { + length: 16, + overrideSpecial: "_%@", + special: true, +}); +const example = new aws.rds.Instance("example", { + password: password.result, +}); +``` + +## Installing + +This package is available in many languages in the standard packaging formats. + +### Node.js (Java/TypeScript) + +To use from JavaScript or TypeScript in Node.js, install using either `npm`: + + $ npm install @pulumi/random + +or `yarn`: + + $ yarn add @pulumi/random + +### Python + +To use from Python, install using `pip`: + + $ pip install pulumi_random + +### Go + +To use from Go, use `go get` to grab the latest version of the library + + $ go get github.com/pulumi/pulumi-random/sdk/v4/go/... + +### .NET + +To use from .NET, install using `dotnet add package`: + + $ dotnet add package Pulumi.Random + +## Reference + +For further information, please visit [the random provider docs](https://www.pulumi.com/docs/intro/cloud-providers/random) or for detailed reference documentation, please visit [the API docs](https://www.pulumi.com/docs/reference/pkg/random). + + + + +%package help +Summary: Development documents and examples for pulumi-random +Provides: python3-pulumi-random-doc +%description help +[](https://github.com/pulumi/pulumi-random/actions) +[](https://slack.pulumi.com) +[](https://npmjs.com/package/@pulumi/random) +[](https://badge.fury.io/nu/pulumi.random) +[](https://pypi.org/project/pulumi-random) +[](https://pkg.go.dev/github.com/pulumi/pulumi-random/sdk/v4/go) +[](https://github.com/pulumi/pulumi-random/blob/master/LICENSE) + +# Random Provider + +The random provider allows the safe use of randomness in a Pulumi program. This allows you to generate resource +properties, such as names, that contain randomness in a way that works with Pulumi's goal state oriented approach. +Using randomness as usual would not work well with Pulumi, because by definition, each time the program is evaluated, +a new random state would be produced, necessitating re-convergence on the goal state. This provider understands +how to work with the Pulumi resource lifecycle to accomplish randomness safely and in a way that works as desired. + +## Example + +For example, to generate a random password, allocate a `RandomPassword` resource +and then use its `result` output property (of type `Output<string>`) to pass +to another resource. + +```typescript +import * as pulumi from "@pulumi/pulumi"; +import * as aws from "@pulumi/aws"; +import * as random from "@pulumi/random"; + +const password = new random.RandomPassword("password", { + length: 16, + overrideSpecial: "_%@", + special: true, +}); +const example = new aws.rds.Instance("example", { + password: password.result, +}); +``` + +## Installing + +This package is available in many languages in the standard packaging formats. + +### Node.js (Java/TypeScript) + +To use from JavaScript or TypeScript in Node.js, install using either `npm`: + + $ npm install @pulumi/random + +or `yarn`: + + $ yarn add @pulumi/random + +### Python + +To use from Python, install using `pip`: + + $ pip install pulumi_random + +### Go + +To use from Go, use `go get` to grab the latest version of the library + + $ go get github.com/pulumi/pulumi-random/sdk/v4/go/... + +### .NET + +To use from .NET, install using `dotnet add package`: + + $ dotnet add package Pulumi.Random + +## Reference + +For further information, please visit [the random provider docs](https://www.pulumi.com/docs/intro/cloud-providers/random) or for detailed reference documentation, please visit [the API docs](https://www.pulumi.com/docs/reference/pkg/random). + + + + +%prep +%autosetup -n pulumi-random-4.12.1 + +%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-pulumi-random -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 4.12.1-1 +- Package Spec generated @@ -0,0 +1 @@ +b44b2f7ff4f662ed9437ac76580930b7 pulumi_random-4.12.1.tar.gz |
