Skip to content

Commit

Permalink
0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsubashi committed Nov 11, 2022
2 parents 465ad78 + 4c14b35 commit 6b8fb13
Show file tree
Hide file tree
Showing 32 changed files with 2,402 additions and 421 deletions.
20 changes: 20 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[flake8]
select = B,C,D,E,F,I,N,W,B902,B950
ignore = E501, D212, D100
exclude =
.tox,
.git,
__pycache__,
docs/source/conf.py,
build,
dist,
tests/fixtures/*,
*.pyc,
*.egg-info,
.cache,
.eggs
max-complexity = 10
import-order-style = google
docstring-convention = google
application-import-names = m4b_util
max-line-length = 120
5 changes: 5 additions & 0 deletions .git_archival.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node: $Format:%H$
node-date: $Format:%cI$
describe-name: $Format:%(describe:tags=true)$
ref-names: $Format:%D$

1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.git_archival.txt export-subst
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish

on:
push:
tags:
- '*'

jobs:
publish:
name: "Publish to PyPI"
runs-on: ubuntu-latest
steps:
- name: Setup python
uses: actions/setup-python@v2
- uses: actions/checkout@v2
- name: Install Build
run: python -m pip install --upgrade build
- name: Build Package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
35 changes: 35 additions & 0 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Run Tests

on:
- push
- pull_request

jobs:
test:
name: test ${{ matrix.py }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os:
- Ubuntu
- Windows
- MacOs
py:
- "3.10"
steps:
- name: Setup python for test ${{ matrix.py }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.py }}
- uses: actions/checkout@v2
- name: Install tox-gh-actions
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- uses: FedericoCarboni/setup-ffmpeg@v2
id: setup-ffmpeg
- name: Run tox
run: tox -vv
env:
PYTEST_ADDOPTS: "-vv --durations=10"
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Project Specific ##
version_generator/_my_version.py
__version__.py

## MacOS ##
# General
Expand Down
Loading

0 comments on commit 6b8fb13

Please sign in to comment.