-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
28 changed files
with
336 additions
and
203 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,32 @@ | ||
# This workflow will upload a Python Package using Twine when a release is created | ||
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries | ||
|
||
name: Publish Python Package Documentation | ||
|
||
on: | ||
release: | ||
types: [ created ] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
container: python:3.9-buster | ||
|
||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Poetry | ||
uses: snok/[email protected] | ||
|
||
- name: Install dependencies | ||
run: make install | ||
|
||
- name: Generate documentation | ||
run: make docs | ||
|
||
- name: Deploy documentation | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: docs/_build/html |
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 |
---|---|---|
|
@@ -4,26 +4,27 @@ | |
name: Upload Python Package | ||
|
||
on: | ||
release: | ||
types: [created] | ||
release: | ||
types: [ created ] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/* | ||
deploy: | ||
runs-on: ubuntu-latest | ||
container: python:3.9-buster | ||
|
||
steps: | ||
|
||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Poetry | ||
uses: snok/[email protected] | ||
|
||
- name: Install dependencies | ||
run: make install | ||
|
||
- name: Publish package | ||
run: make release | ||
env: | ||
POETRY_HTTP_BASIC_PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_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 |
---|---|---|
@@ -1,36 +1,35 @@ | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
on: push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.9] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
if [ -f requirements_dev.txt ]; then pip install -r requirements_dev.txt; fi | ||
python setup.py install | ||
- name: Test with pytest | ||
run: | | ||
make test | ||
- name: Generate coverage report | ||
run: | | ||
make coverage | ||
- name: Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: ./coverage.xml | ||
fail_ci_if_error: true | ||
build: | ||
runs-on: ubuntu-latest | ||
container: python:3.9-buster | ||
|
||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Poetry | ||
uses: snok/[email protected] | ||
|
||
- name: Install dependencies | ||
run: make install | ||
|
||
- name: Lint package | ||
run: make lint | ||
|
||
- name: Test package with coverage | ||
run: make coverage | ||
|
||
- name: Publish coverage | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: ./coverage.xml | ||
fail_ci_if_error: true | ||
|
||
- name: Generate documentation | ||
run: make docs | ||
|
||
- name: Generate build | ||
run: make dist |
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 |
---|---|---|
|
@@ -104,4 +104,5 @@ ENV/ | |
# IDE settings | ||
.vscode/ | ||
|
||
# Intellij IDEa / PyCharm / etc. | ||
.idea |
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,39 @@ | ||
default_stages: [ commit ] | ||
repos: | ||
- repo: local | ||
hooks: | ||
- id: install | ||
pass_filenames: false | ||
name: Install depencies | ||
entry: make install | ||
language: system | ||
|
||
- id: reformat | ||
pass_filenames: false | ||
name: Reformat package | ||
entry: make reformat | ||
language: system | ||
|
||
- id: lint | ||
pass_filenames: false | ||
name: Lint package | ||
entry: make lint | ||
language: system | ||
|
||
- id: test | ||
pass_filenames: false | ||
name: Test package | ||
entry: make test | ||
language: system | ||
|
||
- id: docs | ||
pass_filenames: false | ||
name: Generate documentation | ||
entry: make docs | ||
language: system | ||
|
||
- id: build | ||
pass_filenames: false | ||
entry: make dist | ||
name: Generate build | ||
language: system |
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,28 @@ | ||
--- | ||
enabled: true | ||
exclude: | ||
- "**/*.md" | ||
- ".idea/**/*" | ||
- "docs/**/*" | ||
- "**/*.in" | ||
- "Makefile" | ||
- ".github/workflows/**/*" | ||
restylers: | ||
- name: black | ||
image: restyled/restyler-black:v19.10b0 | ||
command: | ||
- black | ||
arguments: ["--line-length", "120"] | ||
include: | ||
- "**/*.py" | ||
interpreters: | ||
- python | ||
- name: isort | ||
image: restyled/restyler-isort:v5.8.0 | ||
command: | ||
- isort | ||
arguments: [] | ||
include: | ||
- "**/*.py" | ||
interpreters: | ||
- python |
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,13 +1,13 @@ | ||
Credits | ||
======= | ||
# Credits | ||
|
||
Development Lead | ||
---------------- | ||
## Development Lead | ||
|
||
* Andrea Mucci <[email protected]> | ||
|
||
Contributors | ||
------------ | ||
## Core Devs | ||
|
||
* Sergio Garcia Prado <[email protected]> | ||
* Vladyslav Fenchak <[email protected]> | ||
|
||
## Contributors | ||
None yet. Why not be the first? |
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,7 +1,5 @@ | ||
History | ||
======= | ||
# History | ||
|
||
0.0.1 (2021-05-13) | ||
------------------ | ||
## 0.0.1 (2021-05-19) | ||
|
||
* First release on PyPI. |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
API Gateway | ||
=========== | ||
# Minos Api Gateway | ||
|
||
## Description | ||
|
||
Minos Boilerplate contains all the boilerplate you need to create a Minos Python package. | ||
|
||
Credits | ||
------- | ||
## Credits | ||
|
||
This package was created with [Cookiecutter](https://github.com/audreyr/cookiecutter) and the [Minos Package](https://github.com/Clariteia/minos-pypackage) project template. |
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,7 @@ | ||
coverage: | ||
status: | ||
project: | ||
default: | ||
threshold: 1% | ||
if_not_found: failure | ||
comment: false |
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
Oops, something went wrong.