-
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.
Updated build. Dropped Python 3.7 support.
- Loading branch information
1 parent
de035c6
commit 06ee298
Showing
22 changed files
with
773 additions
and
831 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 |
---|---|---|
@@ -1,10 +1,21 @@ | ||
# Check http://editorconfig.org for more information | ||
# Useful: https://ukupat.github.io/tabs-or-spaces/ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
end_of_line = lf | ||
indent_style = space | ||
charset = utf-8 | ||
indent_size = 4 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
indent_style = space | ||
|
||
[*.{yml,yaml,json,scala,coffee,css,js,sh,sql,tex,xml,html,htm,hs,ml,pp,R,rb}] | ||
indent_size = 2 | ||
|
||
[*.md] | ||
indent_size = 2 | ||
trim_trailing_whitespace = false | ||
|
||
[*.{go,lua,vala,v}] | ||
indent_style = tab |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Build & test | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 1 | ||
matrix: | ||
python-version: | ||
# from tyrannosaurus "pymetaversion"; actual versions are handled in Tox | ||
- 3.9 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: 'Set up Python ${{ matrix.python-version }}' | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '${{ matrix.python-version }}' | ||
- name: Install build dependencies | ||
run: | | ||
pip install poetry tox | ||
- name: Test with tox | ||
run: | | ||
tox -v | ||
- name: Build the Docker image | ||
run: | | ||
docker build . | ||
- name: Update coveralls/codecov | ||
run: | | ||
pip install coveralls codecov | ||
coveralls || true | ||
codecov || 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 |
---|---|---|
@@ -1,18 +1,17 @@ | ||
name: Create Github labels | ||
on: | ||
push: | ||
branches: | ||
- master | ||
name: Generate labels | ||
push: | ||
branches: | ||
- master | ||
- main | ||
jobs: | ||
labels: | ||
name: DefaultLabelsActions | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2 | ||
- | ||
name: Create labels | ||
uses: lannonbr/issue-label-manager-action@2.0.0 | ||
env: | ||
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' | ||
labels: | ||
name: DefaultLabelsActions | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Create labels | ||
uses: lannonbr/issue-label-manager-action@2.0.0 | ||
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,45 +1,38 @@ | ||
name: Publish | ||
name: Publish on release creation | ||
on: | ||
release: | ||
types: | ||
- published | ||
repository_dispatch: | ||
types: | ||
- release-made | ||
release: | ||
types: | ||
- published | ||
repository_dispatch: | ||
types: | ||
- release-made | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2 | ||
- | ||
name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
- | ||
name: Install build dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install poetry tox | ||
- | ||
name: Build and install with Poetry | ||
run: | | ||
poetry build | ||
poetry install | ||
- | ||
name: Build the Docker image | ||
run: | | ||
docker build . | ||
- | ||
name: Upload the artifacts | ||
uses: skx/github-action-publish-binaries@master | ||
with: | ||
args: 'dist/*' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- | ||
name: Publish on PyPi | ||
run: | | ||
poetry publish -vv --username __token__ --password ${{ secrets.PYPI_TOKEN }} | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
# from tyrannosaurus "pymetaversion"; actual versions are handled in Tox | ||
python-version: 3.9 | ||
- name: Install build meta-dependencies | ||
run: | | ||
pip install poetry | ||
- name: Build sdists and wheels with Poetry | ||
run: | | ||
poetry build | ||
poetry install | ||
- name: Build the Docker image | ||
run: | | ||
docker build . | ||
- name: Attach artifacts to the Github release | ||
uses: skx/github-action-publish-binaries@master | ||
with: | ||
args: 'dist/*' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Publish to PyPi | ||
run: | | ||
poetry publish -vv --username __token__ --password ${{ secrets.PYPI_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,25 @@ | ||
name: Test on pull request | ||
on: | ||
pull_request: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 1 | ||
matrix: | ||
python-version: | ||
# from tyrannosaurus "pymetaversion"; actual versions are handled in Tox | ||
- 3.9 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: 'Set up Python ${{ matrix.python-version }}' | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '${{ matrix.python-version }}' | ||
- name: Install build meta-dependencies | ||
run: | | ||
pip install tox poetry | ||
- name: Test with tox | ||
run: | | ||
tox -v |
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,51 +1,24 @@ | ||
minimum_pre_commit_version: 2.5.0 | ||
minimum_pre_commit_version: 2.9.0 | ||
|
||
repos: | ||
- | ||
repo: meta | ||
hooks: | ||
- id: check-hooks-apply | ||
- id: check-useless-excludes | ||
- | ||
repo: 'https://github.com/psf/black' | ||
rev: stable | ||
hooks: | ||
- | ||
id: black | ||
- | ||
repo: 'https://github.com/pre-commit/pre-commit-hooks' | ||
rev: v3.2.0 | ||
hooks: | ||
- | ||
id: trailing-whitespace | ||
- | ||
id: end-of-file-fixer | ||
- | ||
id: debug-statements | ||
- | ||
id: check-builtin-literals | ||
- | ||
id: check-toml | ||
name: Check Toml | ||
description: Toml file syntax errors | ||
entry: check-toml | ||
language: python | ||
types: | ||
- toml | ||
- | ||
id: check-yaml | ||
name: Check Yaml | ||
description: Yaml file syntax errors | ||
entry: check-yaml | ||
language: python | ||
types: | ||
- yaml | ||
exclude: ^recipes/.* | ||
- | ||
id: check-json | ||
name: Check JSON | ||
description: JSON file syntax errors | ||
entry: check-json | ||
language: python | ||
types: | ||
- json | ||
- repo: meta | ||
hooks: | ||
- id: check-hooks-apply | ||
# this is useful but problematic | ||
# e.g. excluding recipes/*.yml, if they exist | ||
# - id: check-useless-excludes | ||
- repo: 'https://github.com/psf/black' | ||
rev: 20.8b1 | ||
hooks: | ||
- id: black | ||
- repo: 'https://github.com/pre-commit/pre-commit-hooks' | ||
rev: v3.4.0 | ||
hooks: | ||
- id: fix-byte-order-marker | ||
- id: end-of-file-fixer | ||
- id: debug-statements | ||
- id: check-builtin-literals | ||
- id: check-toml | ||
- id: check-json | ||
- id: check-yaml | ||
exclude: ^recipes/.* |
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
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.