summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-29 12:41:16 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-29 12:41:16 +0000
commitf63564c05c53e9d52548621d3bc80af2dd38ea9e (patch)
tree07b24f4ef2753226624da3bdf0673830d9405db8
parent271bfe872c3eb7cca189e5d415dc7a379113ce37 (diff)
automatic import of python-microgue
-rw-r--r--.gitignore1
-rw-r--r--python-microgue.spec389
-rw-r--r--sources1
3 files changed, 391 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..8444b87 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/microgue-2.0.9.tar.gz
diff --git a/python-microgue.spec b/python-microgue.spec
new file mode 100644
index 0000000..bb426ba
--- /dev/null
+++ b/python-microgue.spec
@@ -0,0 +1,389 @@
+%global _empty_manifest_terminate_build 0
+Name: python-microgue
+Version: 2.0.9
+Release: 1
+Summary: This project contains bootstrap code to speed up the development of AWS based microservices
+License: MIT
+URL: https://pypi.org/project/microgue/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/98/95/499e794cabfb9e4cb53a9815c4cebfd42228624c81653267c5a25f8319b5/microgue-2.0.9.tar.gz
+BuildArch: noarch
+
+Requires: python3-boto3
+Requires: python3-flask
+Requires: python3-flask-classful
+Requires: python3-redis
+Requires: python3-requests
+
+%description
+# AWS Microservice Bootstrap Code
+
+This project contains bootstrap code to speed up the development of AWS based microservices
+
+This includes:
+- Redis Cache
+- EventBridge
+- DynamoDB Models and Model Objects
+- SQS Queues
+- Secrets Manager
+- S3 Storage
+
+This project also includes base code for:
+- Logger Definitions
+- Object Definitions
+- Service Connections
+- Flask App Definitions
+- Additional Utilities
+
+
+### Working On Microgue
+
+Repo: https://bitbucket.org/michaelhudelson/microgue/src/master
+
+Clone: `git clone https://bitbucket.org/michaelhudelson/microgue/src/master`
+
+### Requirements
+
+- Python 3.6+
+
+### Pre-Setup
+
+- Make sure you have an IAM user created with correct permissions in your AWS account
+
+ - Create an Access Key on that user
+
+ - Install awscli `pip install awscli`
+
+ - Add that Access Key with `aws configure`
+
+ - Verify you are using the correct Access Key with `aws configure list`
+
+ - You can also verify by looking at the file `~/.aws/credentials`
+
+### Install Microgue
+
+```
+pip install microgue
+```
+
+### Flask Setup (Optional)
+
+- Put the following code in the app.py file in the root of the project
+
+```python
+import logging
+from microgue.abstract_app import AbstractApp
+
+logging.basicConfig()
+
+
+class App(AbstractApp):
+ pass
+
+
+app = App().app
+
+```
+
+- In the terminal run the following commands
+
+```
+export PYTHONUNBUFFERED=1
+export FLASK_DEBUG=1
+flask run
+```
+
+- GET http://127.0.0.1:5000
+
+### Distribution
+```
+# update version in setup.py
+
+# commit and push changes
+git add .
+git commit -m "v1.0.X"
+git push origin master
+
+# tag the commit and push
+git tag -a v1.0.X -m "Release v1.0.X"
+git push --tags
+
+# package with:
+python setup.py sdist bdist_wheel
+
+# https://pypi.org/project/microgue/
+# upload to pypi with:
+python -m twine upload dist/*
+
+# OPTIONAL
+# https://test.pypi.org/project/microgue/
+# upload to test pypi with:
+twine upload --repository-url https://test.pypi.org/legacy/ dist/*
+```
+
+
+%package -n python3-microgue
+Summary: This project contains bootstrap code to speed up the development of AWS based microservices
+Provides: python-microgue
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-microgue
+# AWS Microservice Bootstrap Code
+
+This project contains bootstrap code to speed up the development of AWS based microservices
+
+This includes:
+- Redis Cache
+- EventBridge
+- DynamoDB Models and Model Objects
+- SQS Queues
+- Secrets Manager
+- S3 Storage
+
+This project also includes base code for:
+- Logger Definitions
+- Object Definitions
+- Service Connections
+- Flask App Definitions
+- Additional Utilities
+
+
+### Working On Microgue
+
+Repo: https://bitbucket.org/michaelhudelson/microgue/src/master
+
+Clone: `git clone https://bitbucket.org/michaelhudelson/microgue/src/master`
+
+### Requirements
+
+- Python 3.6+
+
+### Pre-Setup
+
+- Make sure you have an IAM user created with correct permissions in your AWS account
+
+ - Create an Access Key on that user
+
+ - Install awscli `pip install awscli`
+
+ - Add that Access Key with `aws configure`
+
+ - Verify you are using the correct Access Key with `aws configure list`
+
+ - You can also verify by looking at the file `~/.aws/credentials`
+
+### Install Microgue
+
+```
+pip install microgue
+```
+
+### Flask Setup (Optional)
+
+- Put the following code in the app.py file in the root of the project
+
+```python
+import logging
+from microgue.abstract_app import AbstractApp
+
+logging.basicConfig()
+
+
+class App(AbstractApp):
+ pass
+
+
+app = App().app
+
+```
+
+- In the terminal run the following commands
+
+```
+export PYTHONUNBUFFERED=1
+export FLASK_DEBUG=1
+flask run
+```
+
+- GET http://127.0.0.1:5000
+
+### Distribution
+```
+# update version in setup.py
+
+# commit and push changes
+git add .
+git commit -m "v1.0.X"
+git push origin master
+
+# tag the commit and push
+git tag -a v1.0.X -m "Release v1.0.X"
+git push --tags
+
+# package with:
+python setup.py sdist bdist_wheel
+
+# https://pypi.org/project/microgue/
+# upload to pypi with:
+python -m twine upload dist/*
+
+# OPTIONAL
+# https://test.pypi.org/project/microgue/
+# upload to test pypi with:
+twine upload --repository-url https://test.pypi.org/legacy/ dist/*
+```
+
+
+%package help
+Summary: Development documents and examples for microgue
+Provides: python3-microgue-doc
+%description help
+# AWS Microservice Bootstrap Code
+
+This project contains bootstrap code to speed up the development of AWS based microservices
+
+This includes:
+- Redis Cache
+- EventBridge
+- DynamoDB Models and Model Objects
+- SQS Queues
+- Secrets Manager
+- S3 Storage
+
+This project also includes base code for:
+- Logger Definitions
+- Object Definitions
+- Service Connections
+- Flask App Definitions
+- Additional Utilities
+
+
+### Working On Microgue
+
+Repo: https://bitbucket.org/michaelhudelson/microgue/src/master
+
+Clone: `git clone https://bitbucket.org/michaelhudelson/microgue/src/master`
+
+### Requirements
+
+- Python 3.6+
+
+### Pre-Setup
+
+- Make sure you have an IAM user created with correct permissions in your AWS account
+
+ - Create an Access Key on that user
+
+ - Install awscli `pip install awscli`
+
+ - Add that Access Key with `aws configure`
+
+ - Verify you are using the correct Access Key with `aws configure list`
+
+ - You can also verify by looking at the file `~/.aws/credentials`
+
+### Install Microgue
+
+```
+pip install microgue
+```
+
+### Flask Setup (Optional)
+
+- Put the following code in the app.py file in the root of the project
+
+```python
+import logging
+from microgue.abstract_app import AbstractApp
+
+logging.basicConfig()
+
+
+class App(AbstractApp):
+ pass
+
+
+app = App().app
+
+```
+
+- In the terminal run the following commands
+
+```
+export PYTHONUNBUFFERED=1
+export FLASK_DEBUG=1
+flask run
+```
+
+- GET http://127.0.0.1:5000
+
+### Distribution
+```
+# update version in setup.py
+
+# commit and push changes
+git add .
+git commit -m "v1.0.X"
+git push origin master
+
+# tag the commit and push
+git tag -a v1.0.X -m "Release v1.0.X"
+git push --tags
+
+# package with:
+python setup.py sdist bdist_wheel
+
+# https://pypi.org/project/microgue/
+# upload to pypi with:
+python -m twine upload dist/*
+
+# OPTIONAL
+# https://test.pypi.org/project/microgue/
+# upload to test pypi with:
+twine upload --repository-url https://test.pypi.org/legacy/ dist/*
+```
+
+
+%prep
+%autosetup -n microgue-2.0.9
+
+%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-microgue -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 2.0.9-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..c3d468a
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+eaaf9014b74922a6c93f5449a26eb180 microgue-2.0.9.tar.gz