-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into bugfix/422-update-exclude-docs
- Loading branch information
Showing
41 changed files
with
1,082 additions
and
2,074 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: CD | ||
|
||
on: # yamllint disable-line rule:truthy | ||
# From documentation: | ||
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onpushbranchestagsbranches-ignoretags-ignore | ||
# on.push.tags: If you define only tags/tags-ignore or only branches/branches-ignore, the workflow won't run for events affecting the undefined Git ref. | ||
# | ||
# This workflow will only run when a tag matching the criteria is pushed | ||
push: | ||
tags: ["v?[0-9]+.[0-9]+.[0-9]+"] | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout Code Repository | ||
uses: actions/checkout@v2 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- name: Install `pypa/build` | ||
run: python -m pip install build | ||
- name: Build sdist and wheel | ||
run: python -m build --sdist --wheel --outdir ./dist/ | ||
- name: Publish package to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
*~ | ||
*.zip | ||
Pipfile.lock | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
[[source]] | ||
name = "pypi" | ||
url = "https://pypi.org/simple" | ||
verify_ssl = true | ||
|
||
[dev-packages] | ||
black = "*" | ||
boto3-stubs = "*" | ||
coveralls = "*" | ||
Django = "<4" | ||
django-stubs = "*" | ||
flake8 = "*" | ||
Flask = "*" | ||
isort = "*" | ||
mock = "*" | ||
mypy = "*" | ||
nose = "*" | ||
nose-timer = "*" | ||
pipenv = ">2021.11.15" | ||
packaging = "*" | ||
|
||
[packages] | ||
argcomplete = "*" | ||
boto3 = ">=1.17.28" | ||
durationpy = "*" | ||
hjson = "*" | ||
jmespath = "*" | ||
kappa = "==0.6.0" | ||
pip = ">=9.0.1" | ||
# Workaround until tests are updated to work with 'placebo' 0.10 | ||
# Move to 'dev-packages' when unpinned | ||
placebo = "<0.10" | ||
python-dateutil = "*" | ||
python-slugify = "*" | ||
PyYAML = "*" | ||
# previous versions don't work with urllib3 1.24 | ||
requests = ">=2.20.0" | ||
six = "*" | ||
toml = "*" | ||
tqdm = "*" | ||
troposphere = ">=3.0" | ||
Werkzeug = "*" | ||
wheel = "*" | ||
wsgi-request-logger = "*" | ||
|
||
[pipenv] | ||
# Required for 'black' since all of its release tags contain 'b' | ||
allow_prereleases = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
import logging | ||
|
||
from flask import Flask | ||
|
||
app = Flask(__name__) | ||
logging.basicConfig() | ||
logger = logging.getLogger(__name__) | ||
logger.setLevel(logging.DEBUG) | ||
|
||
@app.route('/', methods=['GET', 'POST']) | ||
|
||
@app.route("/", methods=["GET", "POST"]) | ||
def lambda_handler(event=None, context=None): | ||
logger.info('Lambda function invoked index()') | ||
logger.info("Lambda function invoked index()") | ||
|
||
return "Flask says Hello!!" | ||
|
||
return 'Flask says Hello!!' | ||
|
||
if __name__ == '__main__': | ||
if __name__ == "__main__": | ||
app.run(debug=True) |
Oops, something went wrong.