summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-20 08:47:14 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-20 08:47:14 +0000
commitfad58663ee4487f7c665418c00bf49acc157048b (patch)
tree2d1e5fda7afa49400243b637ae2bdc587c7852d8
parent8f0ad7b9eecd4256facc5fdfd21d51a95b52112a (diff)
automatic import of python-madeiraopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-madeira.spec191
-rw-r--r--sources1
3 files changed, 193 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..ff11146 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/madeira-1.0.24.tar.gz
diff --git a/python-madeira.spec b/python-madeira.spec
new file mode 100644
index 0000000..3e8da3b
--- /dev/null
+++ b/python-madeira.spec
@@ -0,0 +1,191 @@
+%global _empty_manifest_terminate_build 0
+Name: python-madeira
+Version: 1.0.24
+Release: 1
+Summary: Common AWS operation wrappers
+License: MIT
+URL: https://github.com/mxmader/madeira
+Source0: https://mirrors.aliyun.com/pypi/web/packages/76/81/3e11e8ea136fd07faece4dd356b0f9527701cea006327549f25d948705fc/madeira-1.0.24.tar.gz
+BuildArch: noarch
+
+Requires: python3-boto3
+Requires: python3-madeira-utils
+
+%description
+# Madeira
+
+This is a python package which provides wrapper classes and convenience methods for the
+Amazon Web Servces (AWS) python deployment SDK (`boto3`).
+
+In several deployment automation projects I've built over the years, I've found that
+"bare metal control" over interaction with AWS services allows me to leverage features
+released by AWS into `boto3` the moment they're available, rather than waiting on 3rd
+party CM tool authors/vendors to wrap *all* required functionality. Concurrently, this
+reduces the footprint of project external dependencies.
+
+Given that most projects I work on are "pure python", this approach requires less mental
+context switching compared to using template-driven CM tools.
+
+## Installation
+
+This package is hosted on [PyPI](pypi.org), so you may simply:
+
+```
+pip install --user madeira
+```
+
+## Support
+
+Intended for use with Python 3.7 or later.
+
+## Limitations
+
+Not all AWS services are represented; similarly, not all features of AWS services
+that are represented here are "wrapped".
+
+## Package name origins
+
+Since the AWS python SDK is called `boto`, which refers to Amazon River dolphins,
+I figured I'd attempt to follow the pattern and name this after a tributary of the
+Amazon River, given that the point of these wrappers is to deploy objects into AWS,
+The analogy seemed to solve the problem of developer naming creativity...
+:stuck_out_tongue_winking_eye:
+
+
+
+%package -n python3-madeira
+Summary: Common AWS operation wrappers
+Provides: python-madeira
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-madeira
+# Madeira
+
+This is a python package which provides wrapper classes and convenience methods for the
+Amazon Web Servces (AWS) python deployment SDK (`boto3`).
+
+In several deployment automation projects I've built over the years, I've found that
+"bare metal control" over interaction with AWS services allows me to leverage features
+released by AWS into `boto3` the moment they're available, rather than waiting on 3rd
+party CM tool authors/vendors to wrap *all* required functionality. Concurrently, this
+reduces the footprint of project external dependencies.
+
+Given that most projects I work on are "pure python", this approach requires less mental
+context switching compared to using template-driven CM tools.
+
+## Installation
+
+This package is hosted on [PyPI](pypi.org), so you may simply:
+
+```
+pip install --user madeira
+```
+
+## Support
+
+Intended for use with Python 3.7 or later.
+
+## Limitations
+
+Not all AWS services are represented; similarly, not all features of AWS services
+that are represented here are "wrapped".
+
+## Package name origins
+
+Since the AWS python SDK is called `boto`, which refers to Amazon River dolphins,
+I figured I'd attempt to follow the pattern and name this after a tributary of the
+Amazon River, given that the point of these wrappers is to deploy objects into AWS,
+The analogy seemed to solve the problem of developer naming creativity...
+:stuck_out_tongue_winking_eye:
+
+
+
+%package help
+Summary: Development documents and examples for madeira
+Provides: python3-madeira-doc
+%description help
+# Madeira
+
+This is a python package which provides wrapper classes and convenience methods for the
+Amazon Web Servces (AWS) python deployment SDK (`boto3`).
+
+In several deployment automation projects I've built over the years, I've found that
+"bare metal control" over interaction with AWS services allows me to leverage features
+released by AWS into `boto3` the moment they're available, rather than waiting on 3rd
+party CM tool authors/vendors to wrap *all* required functionality. Concurrently, this
+reduces the footprint of project external dependencies.
+
+Given that most projects I work on are "pure python", this approach requires less mental
+context switching compared to using template-driven CM tools.
+
+## Installation
+
+This package is hosted on [PyPI](pypi.org), so you may simply:
+
+```
+pip install --user madeira
+```
+
+## Support
+
+Intended for use with Python 3.7 or later.
+
+## Limitations
+
+Not all AWS services are represented; similarly, not all features of AWS services
+that are represented here are "wrapped".
+
+## Package name origins
+
+Since the AWS python SDK is called `boto`, which refers to Amazon River dolphins,
+I figured I'd attempt to follow the pattern and name this after a tributary of the
+Amazon River, given that the point of these wrappers is to deploy objects into AWS,
+The analogy seemed to solve the problem of developer naming creativity...
+:stuck_out_tongue_winking_eye:
+
+
+
+%prep
+%autosetup -n madeira-1.0.24
+
+%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-madeira -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.24-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..bad0e96
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+76d2cd1de545b255b9036b0126c716bf madeira-1.0.24.tar.gz