From a4aa0239fbbf72dd1f0c0c29feeeb75da0acb694 Mon Sep 17 00:00:00 2001 From: Sergio Sanchez Date: Wed, 7 Oct 2020 17:50:53 -0700 Subject: [PATCH] prepara repo de github --- .github/FUNDING.yml | 4 ++ .github/ISSUE_TEMPLATE/bug_report.md | 42 -------------- .github/ISSUE_TEMPLATE/es_pregunta.md | 25 +++++++++ .github/ISSUE_TEMPLATE/feature_request.md | 23 -------- .github/ISSUE_TEMPLATE/question.md | 25 --------- .github/ISSUE_TEMPLATE/reporta_un_bug.md | 42 ++++++++++++++ .../ISSUE_TEMPLATE/solicitud_de_funcion.md | 23 ++++++++ .github/workflows/publish.yml | 55 +++++++++++++++++++ 8 files changed, 149 insertions(+), 90 deletions(-) create mode 100644 .github/FUNDING.yml delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/es_pregunta.md delete mode 100644 .github/ISSUE_TEMPLATE/feature_request.md delete mode 100644 .github/ISSUE_TEMPLATE/question.md create mode 100644 .github/ISSUE_TEMPLATE/reporta_un_bug.md create mode 100644 .github/ISSUE_TEMPLATE/solicitud_de_funcion.md create mode 100644 .github/workflows/publish.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..ebbacf2 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,4 @@ +# These are supported funding model platforms + +github: [chekos, tacosdedatos] +patreon: tacosdedatos diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index bdd7677..0000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,42 +0,0 @@ ---- -name: 🐛 Bug report -about: If something isn't working 🔧 -title: '' -labels: bug -assignees: ---- - -## 🐛 Bug Report - - - -## 🔬 How To Reproduce - -Steps to reproduce the behavior: - -1. ... - -### Code sample - - - -### Environment - -* OS: [e.g. Linux / Windows / macOS] -* Python version, get it with: - -```bash -python --version -``` - -### Screenshots - - - -## 📈 Expected behavior - - - -## 📎 Additional context - - diff --git a/.github/ISSUE_TEMPLATE/es_pregunta.md b/.github/ISSUE_TEMPLATE/es_pregunta.md new file mode 100644 index 0000000..2e91935 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/es_pregunta.md @@ -0,0 +1,25 @@ +--- +name: ❓ Es pregunta +about: Pregunta sobre este proyecto 🎓 +title: '' +labels: "es pregunta" +assignees: +--- + +## Lista + + + +- [ ] Ya revise los [`issues`](https://github.com/tacosdedatos/tacosdedatos-utils/issues?q=is%3Aissue) del proyecto. + +## ❓Pregunta + + + +¿Cómo puedo [...]? + +¿Es posible hacer [...]? + +## 📎 Contexto adicional + + diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index c387120..0000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -name: 🚀 Feature request -about: Suggest an idea for this project 🏖 -title: '' -labels: enhancement -assignees: ---- - -## 🚀 Feature Request - - - -## 🔈 Motivation - - - -## 🛰 Alternatives - - - -## 📎 Additional context - - diff --git a/.github/ISSUE_TEMPLATE/question.md b/.github/ISSUE_TEMPLATE/question.md deleted file mode 100644 index 7fe5340..0000000 --- a/.github/ISSUE_TEMPLATE/question.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -name: ❓ Question -about: Ask a question about this project 🎓 -title: '' -labels: question -assignees: ---- - -## Checklist - - - -- [ ] I've searched the project's [`issues`](https://github.com/tacosdedatos/latam/issues?q=is%3Aissue). - -## ❓ Question - - - -How can I [...]? - -Is it possible to [...]? - -## 📎 Additional context - - diff --git a/.github/ISSUE_TEMPLATE/reporta_un_bug.md b/.github/ISSUE_TEMPLATE/reporta_un_bug.md new file mode 100644 index 0000000..bd48b37 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/reporta_un_bug.md @@ -0,0 +1,42 @@ +--- +name: 🐛 Reporta un bug +about: Algo no esta funcionando 🔧 +title: '' +labels: bug +assignees: +--- + +## 🐛 Reporta un bug + + + +## 🔬 Como reproducirlo + +Pasos para reproducir el comportamiento: + +1. ... + +### Código + + + +### Entorno + +* Sistema Operativo: [e.g. Linux / Windows / macOS] +* Versión de python, (la puedes obtener ejecutando el siguiente código desde tu terminal): + +```bash +python --version +``` + +### Capturas de pantalla + + + +## 📈 Comportamiento esperado + + + +## 📎 Contexto adicional + + diff --git a/.github/ISSUE_TEMPLATE/solicitud_de_funcion.md b/.github/ISSUE_TEMPLATE/solicitud_de_funcion.md new file mode 100644 index 0000000..fd91bd0 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/solicitud_de_funcion.md @@ -0,0 +1,23 @@ +--- +name: 🚀 Solicitud de función +about: Sugiere una idea para este proyecto 🏖 +title: '' +labels: propuesta +assignees: +--- + +## 🚀 Solicitud de función + + + +## 🔈 Motivación + + + +## 🛰 Alternativas + + + +## 📎 Contexto adicional + + diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..fc416f0 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,55 @@ +name: Publish package to PyPI + +on: + release: + types: [published] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8"] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + + - name: Install poetry + run: make download-poetry + + - name: Set up cache + uses: actions/cache@v1 + with: + path: .venv + key: venv-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('poetry.lock') }} + - name: Install dependencies + run: | + source "$HOME/.poetry/env" + poetry config virtualenvs.in-project true + poetry install + + - name: Run safety checks + run: | + source "$HOME/.poetry/env" + STRICT=1 make check-safety + + - name: Run style checks + run: | + source "$HOME/.poetry/env" + STRICT=1 make check-style + + - name: Run tests + run: | + source "$HOME/.poetry/env" + make test + + - name: Publish to PyPI + run: | + make download-poetry + source "$HOME/.poetry/env" + poetry config virtualenvs.in-project true + poetry publish --build --username ${{ secrets.PYPI_USERNAME }} --password ${{ secrets.PYPI_PASSWORD }}