summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 05:28:53 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 05:28:53 +0000
commit7ee33106ae673330f3b62ae26e6ab49672cc6222 (patch)
treeb304535814c87a5ff7639732763c84e136f53f91
parent149543baaf50e8d5208ddca2af9527bf9caa0dac (diff)
automatic import of python-cdk-s3bucket-ngopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-cdk-s3bucket-ng.spec332
-rw-r--r--sources1
3 files changed, 334 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..8da16a1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/cdk-s3bucket-ng-2.0.238.tar.gz
diff --git a/python-cdk-s3bucket-ng.spec b/python-cdk-s3bucket-ng.spec
new file mode 100644
index 0000000..cda3726
--- /dev/null
+++ b/python-cdk-s3bucket-ng.spec
@@ -0,0 +1,332 @@
+%global _empty_manifest_terminate_build 0
+Name: python-cdk-s3bucket-ng
+Version: 2.0.238
+Release: 1
+Summary: cdk-s3bucket-ng is an AWS CDK construct library that provides a drop-in replacement for the Bucket construct with the capability to remove non-empty S3 buckets.
+License: Apache-2.0
+URL: https://github.com/neilkuan/cdk-s3bucket.git
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ec/e7/ecee55c6852fe22e9d861bac2c56d9d4200a3aab82ec71689bc1cc91cb8d/cdk-s3bucket-ng-2.0.238.tar.gz
+BuildArch: noarch
+
+Requires: python3-aws-cdk-lib
+Requires: python3-constructs
+Requires: python3-jsii
+Requires: python3-publication
+Requires: python3-typeguard
+
+%description
+[![NPM version](https://badge.fury.io/js/cdk-s3bucket-ng.svg)](https://badge.fury.io/js/cdk-s3bucket-ng)
+[![PyPI version](https://badge.fury.io/py/cdk-s3bucket-ng.svg)](https://badge.fury.io/py/cdk-s3bucket-ng)
+![Release](https://github.com/neilkuan/cdk-s3bucket/workflows/release/badge.svg)
+
+![Downloads](https://img.shields.io/badge/-DOWNLOADS:-brightgreen?color=gray)
+![npm](https://img.shields.io/npm/dt/cdk-s3bucket-ng?label=npm&color=orange)
+![PyPI](https://img.shields.io/pypi/dm/cdk-s3bucket-ng?label=pypi&color=blue)
+
+# cdk-s3bucket-ng
+
+cdk-s3bucket-ng is an AWS CDK construct library that provides a drop-in replacement for the Bucket construct with the capability to remove non-empty S3 buckets.
+
+## Install
+
+```bash
+Use the npm dist tag to opt in CDKv1 or CDKv2:
+
+// for CDKv2
+npm install cdk-s3bucket-ng
+or
+npm install cdk-s3bucket-ng@latest
+
+// for CDKv1
+npm install cdk-s3bucket-ng@cdkv1
+```
+
+💡💡💡 please click [here](https://github.com/neilkuan/cdk-s3bucket/tree/cdkv1#readme), if you are using aws-cdk v1.x.x version.💡💡💡
+
+# Why
+
+Sometime we just do some lab , create a S3 Bucket.
+Want to destroy resource , after Lab finished.
+But We forget delete Object in S3 Bucket first , so destroy will fail.
+
+`cdk-s3bucket-ng` can help delete object when cdk destroy , just add `removalPolicy: RemovalPolicy.DESTROY` property .
+
+You never have to delete objects yourself, and the usage is almost the same as the native @aws-cdk/aws-s3.Bucket
+
+## Now Try It !!!
+
+# Sample
+
+```python
+import { App, Stack, CfnOutput, RemovalPolicy } from 'aws-cdk-lib';
+import { BucketNg } from 'cdk-s3bucket-ng';
+import * as s3deploy from 'aws-cdk-lib/aws-s3-deployment';
+
+// Create a S3 , add props "removalPolicy: RemovalPolicy.DESTROY".
+const bucket = new BucketNg(stack, 'Bucket',{
+ removalPolicy: RemovalPolicy.DESTROY,
+});
+
+//Upload temp file .
+new s3deploy.BucketDeployment(stack, 'addResource', {
+ sources: [s3deploy.Source.asset('./testdir')],
+ destinationBucket: bucket,
+ });
+// Get S3 Resource via bucket.s3Bucket ...
+new CfnOutput(stack, 'BucketName', { value: bucket.bucketName });
+```
+
+```bash
+# create temp file .
+mkdir ./testdir
+touch ./testdir/{a.txt,b.txt,c.txt}
+ls ./testdir
+a.txt b.txt c.txt
+```
+
+### To deploy
+
+```bash
+cdk deploy
+```
+
+### To destroy
+
+```bash
+# will delete object in S3 , and delete S3 Bucket
+cdk destroy
+```
+
+## :clap: Supporters
+
+[![Stargazers repo roster for @neilkuan/cdk-s3bucket](https://reporoster.com/stars/neilkuan/cdk-s3bucket)](https://github.com/neilkuan/cdk-s3bucket/stargazers)
+
+
+%package -n python3-cdk-s3bucket-ng
+Summary: cdk-s3bucket-ng is an AWS CDK construct library that provides a drop-in replacement for the Bucket construct with the capability to remove non-empty S3 buckets.
+Provides: python-cdk-s3bucket-ng
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-cdk-s3bucket-ng
+[![NPM version](https://badge.fury.io/js/cdk-s3bucket-ng.svg)](https://badge.fury.io/js/cdk-s3bucket-ng)
+[![PyPI version](https://badge.fury.io/py/cdk-s3bucket-ng.svg)](https://badge.fury.io/py/cdk-s3bucket-ng)
+![Release](https://github.com/neilkuan/cdk-s3bucket/workflows/release/badge.svg)
+
+![Downloads](https://img.shields.io/badge/-DOWNLOADS:-brightgreen?color=gray)
+![npm](https://img.shields.io/npm/dt/cdk-s3bucket-ng?label=npm&color=orange)
+![PyPI](https://img.shields.io/pypi/dm/cdk-s3bucket-ng?label=pypi&color=blue)
+
+# cdk-s3bucket-ng
+
+cdk-s3bucket-ng is an AWS CDK construct library that provides a drop-in replacement for the Bucket construct with the capability to remove non-empty S3 buckets.
+
+## Install
+
+```bash
+Use the npm dist tag to opt in CDKv1 or CDKv2:
+
+// for CDKv2
+npm install cdk-s3bucket-ng
+or
+npm install cdk-s3bucket-ng@latest
+
+// for CDKv1
+npm install cdk-s3bucket-ng@cdkv1
+```
+
+💡💡💡 please click [here](https://github.com/neilkuan/cdk-s3bucket/tree/cdkv1#readme), if you are using aws-cdk v1.x.x version.💡💡💡
+
+# Why
+
+Sometime we just do some lab , create a S3 Bucket.
+Want to destroy resource , after Lab finished.
+But We forget delete Object in S3 Bucket first , so destroy will fail.
+
+`cdk-s3bucket-ng` can help delete object when cdk destroy , just add `removalPolicy: RemovalPolicy.DESTROY` property .
+
+You never have to delete objects yourself, and the usage is almost the same as the native @aws-cdk/aws-s3.Bucket
+
+## Now Try It !!!
+
+# Sample
+
+```python
+import { App, Stack, CfnOutput, RemovalPolicy } from 'aws-cdk-lib';
+import { BucketNg } from 'cdk-s3bucket-ng';
+import * as s3deploy from 'aws-cdk-lib/aws-s3-deployment';
+
+// Create a S3 , add props "removalPolicy: RemovalPolicy.DESTROY".
+const bucket = new BucketNg(stack, 'Bucket',{
+ removalPolicy: RemovalPolicy.DESTROY,
+});
+
+//Upload temp file .
+new s3deploy.BucketDeployment(stack, 'addResource', {
+ sources: [s3deploy.Source.asset('./testdir')],
+ destinationBucket: bucket,
+ });
+// Get S3 Resource via bucket.s3Bucket ...
+new CfnOutput(stack, 'BucketName', { value: bucket.bucketName });
+```
+
+```bash
+# create temp file .
+mkdir ./testdir
+touch ./testdir/{a.txt,b.txt,c.txt}
+ls ./testdir
+a.txt b.txt c.txt
+```
+
+### To deploy
+
+```bash
+cdk deploy
+```
+
+### To destroy
+
+```bash
+# will delete object in S3 , and delete S3 Bucket
+cdk destroy
+```
+
+## :clap: Supporters
+
+[![Stargazers repo roster for @neilkuan/cdk-s3bucket](https://reporoster.com/stars/neilkuan/cdk-s3bucket)](https://github.com/neilkuan/cdk-s3bucket/stargazers)
+
+
+%package help
+Summary: Development documents and examples for cdk-s3bucket-ng
+Provides: python3-cdk-s3bucket-ng-doc
+%description help
+[![NPM version](https://badge.fury.io/js/cdk-s3bucket-ng.svg)](https://badge.fury.io/js/cdk-s3bucket-ng)
+[![PyPI version](https://badge.fury.io/py/cdk-s3bucket-ng.svg)](https://badge.fury.io/py/cdk-s3bucket-ng)
+![Release](https://github.com/neilkuan/cdk-s3bucket/workflows/release/badge.svg)
+
+![Downloads](https://img.shields.io/badge/-DOWNLOADS:-brightgreen?color=gray)
+![npm](https://img.shields.io/npm/dt/cdk-s3bucket-ng?label=npm&color=orange)
+![PyPI](https://img.shields.io/pypi/dm/cdk-s3bucket-ng?label=pypi&color=blue)
+
+# cdk-s3bucket-ng
+
+cdk-s3bucket-ng is an AWS CDK construct library that provides a drop-in replacement for the Bucket construct with the capability to remove non-empty S3 buckets.
+
+## Install
+
+```bash
+Use the npm dist tag to opt in CDKv1 or CDKv2:
+
+// for CDKv2
+npm install cdk-s3bucket-ng
+or
+npm install cdk-s3bucket-ng@latest
+
+// for CDKv1
+npm install cdk-s3bucket-ng@cdkv1
+```
+
+💡💡💡 please click [here](https://github.com/neilkuan/cdk-s3bucket/tree/cdkv1#readme), if you are using aws-cdk v1.x.x version.💡💡💡
+
+# Why
+
+Sometime we just do some lab , create a S3 Bucket.
+Want to destroy resource , after Lab finished.
+But We forget delete Object in S3 Bucket first , so destroy will fail.
+
+`cdk-s3bucket-ng` can help delete object when cdk destroy , just add `removalPolicy: RemovalPolicy.DESTROY` property .
+
+You never have to delete objects yourself, and the usage is almost the same as the native @aws-cdk/aws-s3.Bucket
+
+## Now Try It !!!
+
+# Sample
+
+```python
+import { App, Stack, CfnOutput, RemovalPolicy } from 'aws-cdk-lib';
+import { BucketNg } from 'cdk-s3bucket-ng';
+import * as s3deploy from 'aws-cdk-lib/aws-s3-deployment';
+
+// Create a S3 , add props "removalPolicy: RemovalPolicy.DESTROY".
+const bucket = new BucketNg(stack, 'Bucket',{
+ removalPolicy: RemovalPolicy.DESTROY,
+});
+
+//Upload temp file .
+new s3deploy.BucketDeployment(stack, 'addResource', {
+ sources: [s3deploy.Source.asset('./testdir')],
+ destinationBucket: bucket,
+ });
+// Get S3 Resource via bucket.s3Bucket ...
+new CfnOutput(stack, 'BucketName', { value: bucket.bucketName });
+```
+
+```bash
+# create temp file .
+mkdir ./testdir
+touch ./testdir/{a.txt,b.txt,c.txt}
+ls ./testdir
+a.txt b.txt c.txt
+```
+
+### To deploy
+
+```bash
+cdk deploy
+```
+
+### To destroy
+
+```bash
+# will delete object in S3 , and delete S3 Bucket
+cdk destroy
+```
+
+## :clap: Supporters
+
+[![Stargazers repo roster for @neilkuan/cdk-s3bucket](https://reporoster.com/stars/neilkuan/cdk-s3bucket)](https://github.com/neilkuan/cdk-s3bucket/stargazers)
+
+
+%prep
+%autosetup -n cdk-s3bucket-ng-2.0.238
+
+%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-cdk-s3bucket-ng -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 2.0.238-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..db1337c
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+83d3a7f98c8f92593914b29818a5e046 cdk-s3bucket-ng-2.0.238.tar.gz