-
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ➕ Move to Poetry from Pipenv * 🚚 Centralize and reuse config and files * 🔧 Update configs and scripts * 👷 Add GitHub Actions for CI * 🔥 Disable Travis * 🔧 Add mypy configs * ✅ Update tests to use new setup * 📝 Update README
- Loading branch information
Showing
103 changed files
with
355 additions
and
700 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
image: | ||
- name: latest | ||
python_version: "3.7" | ||
- name: python3.7 | ||
python_version: "3.7" | ||
- name: python3.6 | ||
python_version: "3.6" | ||
- name: python2.7 | ||
python_version: "2.7" | ||
- name: python3.7-alpine3.8 | ||
python_version: "3.7" | ||
- name: python3.6-alpine3.8 | ||
python_version: "3.6" | ||
fail-fast: true | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: "3.7" | ||
- name: Install Dependencies | ||
run: python3.7 -m pip install docker pytest | ||
- name: Deploy Image | ||
run: bash scripts/build-push.sh | ||
env: | ||
NAME: ${{ matrix.image.name }} | ||
DOCKERFILE: ${{ matrix.image.dockerfile }} | ||
PYTHON_VERSION: ${{ matrix.image.python_version }} | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} |
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,21 @@ | ||
name: Issue Manager | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
jobs: | ||
issue-manager: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: tiangolo/issue-manager@master | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
config: > | ||
{ | ||
"answered": { | ||
"users": ["tiangolo"], | ||
"delay": 864000, | ||
"message": "Assuming the original issue was solved, it will be automatically closed now. But feel free to add more comments or create new issues." | ||
} | ||
} |
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,40 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
pull_request: | ||
types: [opened, synchronize] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
image: | ||
- name: latest | ||
python_version: "3.7" | ||
- name: python3.7 | ||
python_version: "3.7" | ||
- name: python3.6 | ||
python_version: "3.6" | ||
- name: python2.7 | ||
python_version: "2.7" | ||
- name: python3.7-alpine3.8 | ||
python_version: "3.7" | ||
- name: python3.6-alpine3.8 | ||
python_version: "3.6" | ||
fail-fast: true | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: "3.7" | ||
- name: Install Dependencies | ||
run: python3.7 -m pip install docker pytest | ||
- name: Test Image | ||
run: bash scripts/test.sh | ||
env: | ||
NAME: ${{ matrix.image.name }} | ||
DOCKERFILE: ${{ matrix.image.dockerfile }} | ||
PYTHON_VERSION: ${{ matrix.image.python_version }} |
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 |
---|---|---|
|
@@ -109,3 +109,4 @@ crashlytics-build.properties | |
|
||
# Custom | ||
Pipfile.lock | ||
poetry.lock |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,4 +1,5 @@ | ||
from __future__ import print_function | ||
|
||
import json | ||
import multiprocessing | ||
import os | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,3 @@ | ||
[mypy] | ||
disallow_untyped_defs = True | ||
ignore_missing_imports = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[tool.poetry] | ||
name = "meinheld-gunicorn-docker" | ||
version = "0.1.0" | ||
description = "Docker image with Meinheld managed by Gunicorn for high-performance web applications in Python 3.6 and above and Python 2.7, with performance auto-tuning. Optionally with Alpine Linux." | ||
authors = ["Sebastián Ramírez <[email protected]>"] | ||
license = "MIT" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.6" | ||
docker = "^4.2.0" | ||
pytest = "^5.4.1" | ||
|
||
[tool.poetry.dev-dependencies] | ||
black = "^19.10b0" | ||
isort = "^4.3.21" | ||
autoflake = "^1.3.1" | ||
mypy = "^0.770" | ||
|
||
[build-system] | ||
requires = ["poetry>=0.12"] | ||
build-backend = "poetry.masonry.api" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.