Skip to content

Commit

Permalink
Merge pull request #3 from deresmos/release/0.3
Browse files Browse the repository at this point in the history
Release 0.3
  • Loading branch information
deresmos authored Oct 19, 2020
2 parents c306078 + e0c0540 commit c185e4f
Show file tree
Hide file tree
Showing 86 changed files with 3,926 additions and 1,646 deletions.
20 changes: 20 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
workflow:
- .github/*.yml
- .github/workflows/**/*
decorator:
- delogger/decorators/*
filter:
- delogger/filters/*
handler:
- delogger/handlers/*
logger:
- delogger/loggers/*
mode:
- delogger/modes/*
preset:
- delogger/presets/*
util:
- delogger/util/*
tests:
- tests/*
45 changes: 45 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# INFO
- name: ready-for-merge
color: 00ff00

# WARNING
- name: experimental
color: ffff00
- name: WIP
color: ffff00

# ALERT
- name: bug
color: dd0000

# PROGRAMING
- name: fix
color: a2eeef
- name: enhancement
color: a2eeef
- name: refactor
color: a2eeef

# Communication
- name: help wanted
color: ffccdd
- name: question
color: ffccdd
- name: documentation
color: ffccdd
- name: discussion
color: ffccdd

# etc
- name: release
color: dff4de
- name: workflow
color: dff4de

# invalid
- name: duplicate
color: dddddd
- name: wontfix
color: dddddd
- name: invalid
color: dddddd
22 changes: 22 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name-template: 'v$NEXT_PATCH_VERSION'
tag-template: 'v$NEXT_PATCH_VERSION'
exclude-labels:
- 'release'
categories:
- title: 'Features'
labels:
- 'feature'
- 'enhancement'
- title: 'Bug Fixes'
labels:
- 'fix'
- 'bug'
- 'bugfix'
- title: 'Maintenance'
labels:
- 'chore'
change-template: '- $TITLE (#$NUMBER) @$AUTHOR'
template: |
## Changes
$CHANGES
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ name: "CodeQL"

on:
push:
branches: [master]
branches: [main]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
branches: [main]
schedule:
- cron: '0 18 * * 6'

Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Labeler

on:
- pull_request

jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v2
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
configuration-path: '.github/labeler.yml'
31 changes: 31 additions & 0 deletions .github/workflows/python_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Upload Python Package

on:
push:
tags:
- v*.*.*

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.7'
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
pip install poetry
- name: Build and publish
env:
PYPI_USER: __token__
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
make upload
35 changes: 35 additions & 0 deletions .github/workflows/python_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Python Test

on: push

jobs:
build:
strategy:
matrix:
python: ['3.6', '3.7', '3.8', '3.9']
os: [ubuntu-latest, macOS-latest]

runs-on: ${{ matrix.os }}
name: Python ${{ matrix.python }} ( ${{ matrix.os }} )
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
architecture: x64
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ matrix.os }}-pip-${{ matrix.python }}-${{ hashFiles('**/requirements.txt') }}
- name: Install poetry
run: pip install poetry
- uses: actions/cache@v2
with:
path: ~/.cache/poetry
key: ${{ matrix.os }}-poetry-${{ matrix.python }}-${{ hashFiles('**/poetry.lock') }}
- name: Setup Python test
run: make install-dev
continue-on-error: true
- name: Run test
run: make test-detail
14 changes: 14 additions & 0 deletions .github/workflows/release_drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Release Draft

on:
push:
branches:
- master

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
- uses: release-drafter/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22 changes: 22 additions & 0 deletions .github/workflows/sync_labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Sync labels

on:
push:
branches:
- master
paths:
- '.github/labels.yml'
- '.github/workflows/label_sync.yml'

jobs:
labeler:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: crazy-max/[email protected]
with:
yaml_file: '.github/labels.yml'
skip_delete: true
dry_run: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
144 changes: 139 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,140 @@
.pytest_cache/
*.egg-info/
# Byte-compiled / optimized / DLL files
__pycache__/
*.pyc
/build/
/dist/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# Custom
log
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit c185e4f

Please sign in to comment.