Skip to content

Commit 8ffbbd7

Browse files
committed
Add changes for version 6.0.0
1 parent 22fc4b7 commit 8ffbbd7

28 files changed

+1324
-1294
lines changed

.github/workflows/build.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Build
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
push:
6+
branches: [ main, dev ]
7+
pull_request:
8+
branches: [ main, dev ]
9+
jobs:
10+
build:
11+
name: Test
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ ubuntu-latest, macos-latest, windows-latest ]
16+
python-version: [ 3.6, 3.7, 3.8, 3.9 ]
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Fetch complete history for all tags and branches
20+
run: git fetch --prune --unshallow
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v2
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
- name: Setup pip
26+
run: python -m pip install --upgrade pip setuptools wheel
27+
- name: Install package
28+
run: pip install .[dev]
29+
- name: Run black
30+
run: black --check .
31+
- name: Run flake8
32+
run: flake8 .
33+
- name: Run isort
34+
run: isort --check --profile=black .
35+
- name: Run mypy
36+
run: mypy .
37+
- name: Run pytest
38+
run: py.test --cov=./ --cov-report=xml
39+
- name: Run Sphinx doctest
40+
run: python -m sphinx -b doctest docs docs/_build
41+
- name: Run Sphinx HTML
42+
run: python -m sphinx -b html -W docs docs/_build
43+
- name: Upload coverge to Codecov
44+
uses: codecov/codecov-action@v1
45+
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8'
46+
with:
47+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/codeql.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: CodeQL
2+
on:
3+
push:
4+
branches: [ main, dev ]
5+
pull_request:
6+
branches: [ main, dev ]
7+
schedule:
8+
- cron: '21 2 * * 3'
9+
10+
jobs:
11+
analyze:
12+
name: Analyze
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v2
17+
- name: Initialize CodeQL
18+
uses: github/codeql-action/init@v1
19+
with:
20+
languages: 'python'
21+
- name: Perform CodeQL Analysis
22+
uses: github/codeql-action/analyze@v1

.github/workflows/pypi.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Upload to PyPI
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
upload:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Fetch complete history for all tags and branches
11+
run: git fetch --prune --unshallow
12+
- name: Set up Python
13+
uses: actions/setup-python@v2
14+
with:
15+
python-version: '3.x'
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install --upgrade pip
19+
pip install setuptools wheel twine setuptools_scm[toml]
20+
- name: Build distribution
21+
run: python setup.py sdist bdist_wheel
22+
- name: Publish to PyPI Test
23+
env:
24+
TWINE_USERNAME: __token__
25+
TWINE_PASSWORD: ${{ secrets.PYPI_TEST_TOKEN }}
26+
run: twine upload --repository testpypi dist/*
27+
- name: Publish to PyPI
28+
env:
29+
TWINE_USERNAME: __token__
30+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
31+
run: twine upload --repository pypi dist/*

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,9 @@ ENV/
8787

8888
# Rope project settings
8989
.ropeproject
90+
91+
# PyCharm
9092
.idea/
93+
94+
# setuptools-scm
95+
binarytree/version.py

.pre-commit-config.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v3.4.0
4+
hooks:
5+
- id: check-case-conflict
6+
- id: check-executables-have-shebangs
7+
- id: check-json
8+
- id: check-merge-conflict
9+
- id: check-symlinks
10+
- id: check-toml
11+
- id: check-yaml
12+
- id: end-of-file-fixer
13+
- id: mixed-line-ending
14+
- repo: https://github.com/psf/black
15+
rev: 20.8b1
16+
hooks:
17+
- id: black
18+
- repo: https://github.com/timothycrosley/isort
19+
rev: 5.7.0
20+
hooks:
21+
- id: isort
22+
args: [ --profile, black ]
23+
- repo: https://github.com/pre-commit/mirrors-mypy
24+
rev: v0.790
25+
hooks:
26+
- id: mypy
27+
args: [ --ignore-missing-imports ]
28+
- repo: https://gitlab.com/pycqa/flake8
29+
rev: 3.8.4
30+
hooks:
31+
- id: flake8

.travis.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2016 Joohwan Oh
3+
Copyright (c) 2016,2017,2018,2019,2020,2021 Joohwan Oh
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

MANIFEST.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
include README.rst LICENSE
1+
include README.md LICENSE
22
prune tests
3+
recursive-include gifs

0 commit comments

Comments
 (0)