summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-15 06:14:08 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-15 06:14:08 +0000
commitf5e2327a404f8ac3c943549e1d218acfaecc87c2 (patch)
treeb63d7b0525feea4ddbec247cda597dee687741d9
parent0fd61fadbae93415bf18cb4c1e370fa891e50833 (diff)
automatic import of python-a9s
-rw-r--r--.gitignore1
-rw-r--r--python-a9s.spec295
-rw-r--r--sources1
3 files changed, 297 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..91d1134 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/a9s-0.7.0.tar.gz
diff --git a/python-a9s.spec b/python-a9s.spec
new file mode 100644
index 0000000..7b8d275
--- /dev/null
+++ b/python-a9s.spec
@@ -0,0 +1,295 @@
+%global _empty_manifest_terminate_build 0
+Name: python-a9s
+Version: 0.7.0
+Release: 1
+Summary: Cli tool for navigation in Amazon AWS services. Highly inspired from k9s
+License: MIT
+URL: https://github.com/IamShobe/a9s
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/1e/5c/8dc199edb2ca40e7aaed48d1f1d23ba9b22970229c2ac2dfa853a19c8142/a9s-0.7.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-blessed
+Requires: python3-colored
+Requires: python3-pyperclip
+Requires: python3-cached-property
+Requires: python3-boto3
+Requires: python3-attrdict
+Requires: python3-pydash
+
+%description
+# a9s
+
+![](https://img.shields.io/github/v/release/IamShobe/a9s) ![](https://img.shields.io/github/workflow/status/IamShobe/a9s/Create%20and%20publish%20a%20Python%20package?label=pypi%20build) ![](https://img.shields.io/github/workflow/status/IamShobe/a9s/Create%20and%20publish%20a%20Docker%20image?label=docker%20build)
+Cli tool for easily navigating in AWS services.
+Highly inspired from [k9s](https://github.com/derailed/k9s).
+
+
+## How to install
+
+```shell
+pip install a9s
+```
+
+### Docker build
+
+```shell
+docker build . -t a9s
+docker run -v ~/.aws/:/root/.aws -it --rm a9s
+```
+
+### Running docker from cloud
+
+```shell
+docker run -v ~/.aws/:/root/.aws -it --rm ghcr.io/iamshobe/a9s
+```
+
+
+### How to develop
+
+#### Running mock server
+Install poetry env:
+```bash
+poetry install
+```
+Start dev server:
+```bash
+poetry run moto_server -p 54321
+```
+Run mock data:
+```bash
+poetry run python -m mocked_env.main
+```
+
+#### Running mock server with docker-compose
+```bash
+docker-compose -f mocked_env/docker-compose.yaml up --build
+```
+
+#### Running a9s in with mocked server
+Run a9s in local mode (connects to mock server on port 54321):
+```bash
+LOCAL=true poetry run a9s
+```
+
+## Goals
+
+### Services
+- [X] s3 support
+- [X] route53 support
+- [ ] EC2 support
+- [ ] ELB support
+- [ ] Cloudfront support
+
+
+### Features
+- [X] responsive tables
+- [X] allow to easily switch between services
+- [X] auto-complete commands
+- [X] vim shortcuts support
+- [X] opening files in S3
+- [X] quick yank
+- [ ] smart navigation between services - route53 pointing to ELB etc..
+
+
+%package -n python3-a9s
+Summary: Cli tool for navigation in Amazon AWS services. Highly inspired from k9s
+Provides: python-a9s
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-a9s
+# a9s
+
+![](https://img.shields.io/github/v/release/IamShobe/a9s) ![](https://img.shields.io/github/workflow/status/IamShobe/a9s/Create%20and%20publish%20a%20Python%20package?label=pypi%20build) ![](https://img.shields.io/github/workflow/status/IamShobe/a9s/Create%20and%20publish%20a%20Docker%20image?label=docker%20build)
+Cli tool for easily navigating in AWS services.
+Highly inspired from [k9s](https://github.com/derailed/k9s).
+
+
+## How to install
+
+```shell
+pip install a9s
+```
+
+### Docker build
+
+```shell
+docker build . -t a9s
+docker run -v ~/.aws/:/root/.aws -it --rm a9s
+```
+
+### Running docker from cloud
+
+```shell
+docker run -v ~/.aws/:/root/.aws -it --rm ghcr.io/iamshobe/a9s
+```
+
+
+### How to develop
+
+#### Running mock server
+Install poetry env:
+```bash
+poetry install
+```
+Start dev server:
+```bash
+poetry run moto_server -p 54321
+```
+Run mock data:
+```bash
+poetry run python -m mocked_env.main
+```
+
+#### Running mock server with docker-compose
+```bash
+docker-compose -f mocked_env/docker-compose.yaml up --build
+```
+
+#### Running a9s in with mocked server
+Run a9s in local mode (connects to mock server on port 54321):
+```bash
+LOCAL=true poetry run a9s
+```
+
+## Goals
+
+### Services
+- [X] s3 support
+- [X] route53 support
+- [ ] EC2 support
+- [ ] ELB support
+- [ ] Cloudfront support
+
+
+### Features
+- [X] responsive tables
+- [X] allow to easily switch between services
+- [X] auto-complete commands
+- [X] vim shortcuts support
+- [X] opening files in S3
+- [X] quick yank
+- [ ] smart navigation between services - route53 pointing to ELB etc..
+
+
+%package help
+Summary: Development documents and examples for a9s
+Provides: python3-a9s-doc
+%description help
+# a9s
+
+![](https://img.shields.io/github/v/release/IamShobe/a9s) ![](https://img.shields.io/github/workflow/status/IamShobe/a9s/Create%20and%20publish%20a%20Python%20package?label=pypi%20build) ![](https://img.shields.io/github/workflow/status/IamShobe/a9s/Create%20and%20publish%20a%20Docker%20image?label=docker%20build)
+Cli tool for easily navigating in AWS services.
+Highly inspired from [k9s](https://github.com/derailed/k9s).
+
+
+## How to install
+
+```shell
+pip install a9s
+```
+
+### Docker build
+
+```shell
+docker build . -t a9s
+docker run -v ~/.aws/:/root/.aws -it --rm a9s
+```
+
+### Running docker from cloud
+
+```shell
+docker run -v ~/.aws/:/root/.aws -it --rm ghcr.io/iamshobe/a9s
+```
+
+
+### How to develop
+
+#### Running mock server
+Install poetry env:
+```bash
+poetry install
+```
+Start dev server:
+```bash
+poetry run moto_server -p 54321
+```
+Run mock data:
+```bash
+poetry run python -m mocked_env.main
+```
+
+#### Running mock server with docker-compose
+```bash
+docker-compose -f mocked_env/docker-compose.yaml up --build
+```
+
+#### Running a9s in with mocked server
+Run a9s in local mode (connects to mock server on port 54321):
+```bash
+LOCAL=true poetry run a9s
+```
+
+## Goals
+
+### Services
+- [X] s3 support
+- [X] route53 support
+- [ ] EC2 support
+- [ ] ELB support
+- [ ] Cloudfront support
+
+
+### Features
+- [X] responsive tables
+- [X] allow to easily switch between services
+- [X] auto-complete commands
+- [X] vim shortcuts support
+- [X] opening files in S3
+- [X] quick yank
+- [ ] smart navigation between services - route53 pointing to ELB etc..
+
+
+%prep
+%autosetup -n a9s-0.7.0
+
+%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-a9s -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.7.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..85a7916
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+5c82edde622f6b2d09de35a52c5d72d9 a9s-0.7.0.tar.gz