summaryrefslogtreecommitdiff
path: root/python-aws-configure.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-aws-configure.spec')
-rw-r--r--python-aws-configure.spec254
1 files changed, 254 insertions, 0 deletions
diff --git a/python-aws-configure.spec b/python-aws-configure.spec
new file mode 100644
index 0000000..d530c64
--- /dev/null
+++ b/python-aws-configure.spec
@@ -0,0 +1,254 @@
+%global _empty_manifest_terminate_build 0
+Name: python-aws-configure
+Version: 2.1.8
+Release: 1
+Summary: A CLI to configure AWS named profiles in ~/.aws/config and ~/.aws/credentials files
+License: MIT License
+URL: https://github.com/qoomon/aws-configure
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ad/61/4eb25fd3c0dd16ff72464c46d71ec8a3d1f25fa4612e90c4b7566452ba58/aws-configure-2.1.8.tar.gz
+BuildArch: noarch
+
+Requires: python3-awscli
+Requires: python3-botocore
+
+%description
+# aws-configure
+
+[![PyPI](https://img.shields.io/pypi/v/aws-configure?)](https://pypi.org/project/aws-configure/)
+
+A CLI to configure AWS named profiles in `~/.aws/config` and `~/.aws/credentials files`
+
+## Usage
+```
+list profiles:
+
+ aws-configure list
+
+
+ set profile options:
+
+ aws-configure set [--profile/-p <profile_name>] [--clean/-c] [<config_options...>]
+
+ --profile/-p <profile_name> : select profile ['default']
+ <config_options> : key=value pairs e.g. 'region=eu-central-1' 'source_profile=default'
+ --empty/-e : empty all profile options before setting new options
+ --empty-config : empty profile config options before setting
+ --empty-credentials : empty profile credentials options before setting
+
+ get profile options:
+
+ aws-configure get [--profile/-p <profile_name>] [<config_options...>]
+
+ --profile/-p <profile_name> : select profile ['default']
+ <config_options> : option key e.g. 'region' 'source_profile'
+
+ delete profile:
+
+ aws-configure delete [--profile/-p <profile_name>] [--config] [--credentials]
+
+ --profile/-p <profile_name> : select profile ['default']
+ --config : delete only profile config in '~/.aws/config'
+ --credentials : delete only profile credentials in '~/.aws/credentials'
+
+ print help
+
+ aws-configure help
+```
+
+## Setup dev environment
+
+#### Install Dev Dependencies
+`pip3 install -r requirements.txt`
+
+`pip3 install -r requirements-dev.txt`
+
+#### Create Package
+`python3 setup.py sdist bdist_wheel`
+
+#### Local Install
+`pip3 install --force-reinstall --no-deps dist/aws_configure-*-py3-none-any.whl`
+
+#### Deploy to PiPy
+`twine upload dist/*`
+
+
+
+
+%package -n python3-aws-configure
+Summary: A CLI to configure AWS named profiles in ~/.aws/config and ~/.aws/credentials files
+Provides: python-aws-configure
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-aws-configure
+# aws-configure
+
+[![PyPI](https://img.shields.io/pypi/v/aws-configure?)](https://pypi.org/project/aws-configure/)
+
+A CLI to configure AWS named profiles in `~/.aws/config` and `~/.aws/credentials files`
+
+## Usage
+```
+list profiles:
+
+ aws-configure list
+
+
+ set profile options:
+
+ aws-configure set [--profile/-p <profile_name>] [--clean/-c] [<config_options...>]
+
+ --profile/-p <profile_name> : select profile ['default']
+ <config_options> : key=value pairs e.g. 'region=eu-central-1' 'source_profile=default'
+ --empty/-e : empty all profile options before setting new options
+ --empty-config : empty profile config options before setting
+ --empty-credentials : empty profile credentials options before setting
+
+ get profile options:
+
+ aws-configure get [--profile/-p <profile_name>] [<config_options...>]
+
+ --profile/-p <profile_name> : select profile ['default']
+ <config_options> : option key e.g. 'region' 'source_profile'
+
+ delete profile:
+
+ aws-configure delete [--profile/-p <profile_name>] [--config] [--credentials]
+
+ --profile/-p <profile_name> : select profile ['default']
+ --config : delete only profile config in '~/.aws/config'
+ --credentials : delete only profile credentials in '~/.aws/credentials'
+
+ print help
+
+ aws-configure help
+```
+
+## Setup dev environment
+
+#### Install Dev Dependencies
+`pip3 install -r requirements.txt`
+
+`pip3 install -r requirements-dev.txt`
+
+#### Create Package
+`python3 setup.py sdist bdist_wheel`
+
+#### Local Install
+`pip3 install --force-reinstall --no-deps dist/aws_configure-*-py3-none-any.whl`
+
+#### Deploy to PiPy
+`twine upload dist/*`
+
+
+
+
+%package help
+Summary: Development documents and examples for aws-configure
+Provides: python3-aws-configure-doc
+%description help
+# aws-configure
+
+[![PyPI](https://img.shields.io/pypi/v/aws-configure?)](https://pypi.org/project/aws-configure/)
+
+A CLI to configure AWS named profiles in `~/.aws/config` and `~/.aws/credentials files`
+
+## Usage
+```
+list profiles:
+
+ aws-configure list
+
+
+ set profile options:
+
+ aws-configure set [--profile/-p <profile_name>] [--clean/-c] [<config_options...>]
+
+ --profile/-p <profile_name> : select profile ['default']
+ <config_options> : key=value pairs e.g. 'region=eu-central-1' 'source_profile=default'
+ --empty/-e : empty all profile options before setting new options
+ --empty-config : empty profile config options before setting
+ --empty-credentials : empty profile credentials options before setting
+
+ get profile options:
+
+ aws-configure get [--profile/-p <profile_name>] [<config_options...>]
+
+ --profile/-p <profile_name> : select profile ['default']
+ <config_options> : option key e.g. 'region' 'source_profile'
+
+ delete profile:
+
+ aws-configure delete [--profile/-p <profile_name>] [--config] [--credentials]
+
+ --profile/-p <profile_name> : select profile ['default']
+ --config : delete only profile config in '~/.aws/config'
+ --credentials : delete only profile credentials in '~/.aws/credentials'
+
+ print help
+
+ aws-configure help
+```
+
+## Setup dev environment
+
+#### Install Dev Dependencies
+`pip3 install -r requirements.txt`
+
+`pip3 install -r requirements-dev.txt`
+
+#### Create Package
+`python3 setup.py sdist bdist_wheel`
+
+#### Local Install
+`pip3 install --force-reinstall --no-deps dist/aws_configure-*-py3-none-any.whl`
+
+#### Deploy to PiPy
+`twine upload dist/*`
+
+
+
+
+%prep
+%autosetup -n aws-configure-2.1.8
+
+%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-aws-configure -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 2.1.8-1
+- Package Spec generated