forked from zappa/Zappa
-
Notifications
You must be signed in to change notification settings - Fork 0
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/zappagh-879-add-url-decoding-for-qu…
…ery-string
- Loading branch information
Showing
49 changed files
with
1,249 additions
and
2,179 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: CI | ||
|
||
on: # yamllint disable-line rule:truthy | ||
pull_request: | ||
branches: ["master"] | ||
push: | ||
branches: ["master"] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
python: [3.7, 3.8, 3.9] | ||
steps: | ||
- name: Checkout Code Repository | ||
uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip${{ matrix.python }}-${{ hashFiles('Pipfile') }} | ||
restore-keys: ${{ runner.os }}-pip${{ matrix.python }}- | ||
- name: make sure we have version tags | ||
run: git fetch --unshallow --tags | ||
- name: Setup Virtualenv | ||
run: python -m venv .venv | ||
- name: Install | ||
run: source .venv/bin/activate && make requirements && python setup.py install | ||
- name: Lint | ||
run: source .venv/bin/activate && make flake black-check isort-check | ||
- name: Test | ||
run: source .venv/bin/activate && make tests | ||
- name: Upload Coverage | ||
run: .venv/bin/coveralls --service=github | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
COVERALLS_FLAG_NAME: py${{ matrix.python }} | ||
COVERALLS_PARALLEL: true | ||
|
||
coverage: | ||
needs: test | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
- name: Finalise Coverage | ||
run: pip3 install --upgrade coveralls && coveralls --service=github --finish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_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
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 was deleted.
Oops, something went wrong.
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 @@ | ||
# Contributing to Zappa | ||
We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's: | ||
|
||
- Reporting a bug | ||
- Discussing the current state of the code | ||
- Submitting a fix | ||
- Proposing new features | ||
- Becoming a maintainer | ||
|
||
## We Develop with Github | ||
We use github to host code, to track issues and feature requests, as well as accept pull requests. | ||
We actively welcome your pull requests: | ||
|
||
1. Fork the repo and create your branch from `master`. | ||
2. If you've added code that should be tested, add tests. | ||
3. If you've changed APIs, update the documentation. | ||
4. Ensure the test suite passes. | ||
5. Issue that pull request! | ||
|
||
## Any contributions you make will be under the MIT Software License | ||
In short, when you submit code changes, your submissions are understood to be under the same [MIT License](http://choosealicense.com/licenses/mit/) that covers the project. Feel free to contact the maintainers if that's a concern. | ||
|
||
## Report bugs using Github's [issues](https://github.com/zappa/Zappa/issues) | ||
We use GitHub issues to track public bugs. Report a bug by [opening a new issue](https://github.com/zappa/Zappa/issues/new); it's that easy! | ||
|
||
## Write bug reports with detail, background, and sample code | ||
Here are two great examples: | ||
- [http://stackoverflow.com/q/12488905/180626](http://stackoverflow.com/q/12488905/180626) | ||
- [http://www.openradar.me/11905408](http://www.openradar.me/11905408) | ||
|
||
**Great Bug Reports** tend to have: | ||
|
||
- A quick summary and/or background | ||
- Steps to reproduce | ||
- Be specific! | ||
- Give sample code if you can | ||
- What you expected would happen | ||
- What actually happens | ||
- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work) | ||
|
||
People *love* thorough bug reports, not even kidding. | ||
|
||
## License | ||
By contributing, you agree that your contributions will be licensed under its MIT License. | ||
|
||
## References | ||
This document was adapted from the basic template for contributing guideliens by @briandk | ||
[Contributing to Transcriptase](https://gist.github.com/briandk/3d2e8b3ec8daf5a27a62). The template itself is based on the open-source contribution guidelines for [Facebook's Draft](https://github.com/facebook/draft-js/blob/a9316a723f9e918afde44dea68b5f9f39b7d9b00/CONTRIBUTING.md) |
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 |
Oops, something went wrong.