-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/v2.0.0_release'
* origin/v2.0.0_release: Bump version and update changelog for version 2.0.0 Fixes #20. Add doc note aobut combining diactrical marks. add fullwidth full stop. fixes #30 remove python2 support fix copy/paste error and update docs link for pypi update docs links and status images fix remaining flake8 warnings. Also addresses #34 run black on all files formatting fixes from black Switch to using hatch for development and upgrade to latest Sphinx for documentation. Bump wheel from 0.29.0 to 0.38.1 Update __init__.py Update __init__.py Use new string format in docs. Add 3.6 and remove 3.3 from setup.py. Lint fixes. Add tests and Makefile to manifest. Move tests to separate directory. Update travis/tox tests. Update requirements file.
- Loading branch information
Showing
35 changed files
with
1,624 additions
and
1,119 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[flake8] | ||
ignore = E731, P101 | ||
exclude = src/zhon/cedict/* | ||
max-line-length = 100 |
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,54 @@ | ||
name: CI | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] | ||
os: [ubuntu-latest, macos-latest] | ||
include: | ||
- python-version: 3.7 | ||
py: py37 | ||
- python-version: 3.8 | ||
py: py38 | ||
- python-version: 3.9 | ||
py: py39 | ||
- python-version: '3.10' | ||
py: py310 | ||
- python-version: '3.11' | ||
py: py311 | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade hatch | ||
- name: Run tests | ||
run: | | ||
hatch run test.py${{ matrix.python-version }}:run | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
- name: Install Python dependencies | ||
run: | | ||
python -m pip install --upgrade hatch | ||
- name: Check with black | ||
if: always() | ||
run: hatch run style:format && git diff --exit-code | ||
- name: Check with flake8 | ||
if: always() | ||
run: hatch run style:check |
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,50 @@ | ||
name: docs | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
- name: Install Python dependencies | ||
run: | | ||
python -m pip install --upgrade hatch | ||
- name: Build docs | ||
if: always() | ||
run: hatch run docs:generate | ||
- name: Check docs | ||
if: always() | ||
run: hatch run docs:check | ||
- name: Upload docs | ||
uses: actions/upload-pages-artifact@v1 | ||
with: | ||
path: docs/_build/html | ||
|
||
deploy: | ||
needs: build | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v1 |
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,28 @@ | ||
name: publish | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
pypi: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
- name: Install Hatch | ||
run: | | ||
python -m pip install -U hatch | ||
- name: Build package | ||
run: | | ||
hatch build | ||
- name: Publish | ||
run: | | ||
hatch publish | ||
env: | ||
HATCH_INDEX_USER: __token__ | ||
HATCH_INDEX_AUTH: ${{ secrets.PYPI_API_TOKEN }} |
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
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
Oops, something went wrong.