Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop Python 3.6 support and housekeeping #135

Merged
merged 6 commits into from
Nov 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
38 changes: 20 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,25 @@ jobs:
matrix:
python-version:
[
"pypy-3.6",
"pypy-3.7",
"pypy-3.8",
"pypy-3.9",
"3.6",
"3.7",
"3.8",
"3.9",
"3.10",
"3.11-dev",
"3.11",
"3.12-dev",
]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'

- name: Install needed dependencies
run: |
Expand All @@ -49,15 +49,16 @@ jobs:
TARGETS: src tests

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install Poetry
run: pipx install poetry

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.9"

- name: Install Poetry
run: pip install poetry
python-version: "3.7"
cache: "poetry"

- name: Install dependencies
run: |
Expand All @@ -80,15 +81,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install Poetry
run: pipx install poetry

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.9"

- name: Install Poetry
run: pip install poetry
python-version: "3.7"
cache: "poetry"

- name: Install dependencies
run: |
Expand All @@ -99,4 +101,4 @@ jobs:
run: poetry run python setup.py build_sphinx -W --keep-going -n -b man --build-dir build/sphinx

- name: Build docs with Mkdocs
run: poetry run mkdocs build --strict
run: poetry run make docs
15 changes: 8 additions & 7 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install Poetry
run: pipx install poetry

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.9"

- name: Install Poetry
run: pip install poetry
python-version: "3.7"
cache: "poetry"

- name: Install dependencies
run: |
Expand All @@ -38,4 +39,4 @@ jobs:
poetry run coverage xml

- name: Upload report to Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ dist/
poetry.toml
.tox
_trial_temp
site
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ Types of changes:
- **Infrastructure**: Changes in build or deployment infrastructure.
- **Documentation**: Changes in documentation.

## Unreleased

### Added

- Add Python 3.12 support.

### Removed

- Drop Python 3.6 support.

## Release 0.11.3

### Added
Expand Down
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,16 @@ pylint:
@printf '*****************\n'
pylint ${TARGETS}

.PHONY: docs
docs:
@printf '\n\n*****************\n'
@printf '$(color)Test building docs$(off)\n'
@printf '*****************\n'
mkdocs build --strict

.PHONY: requirements
requirements:
@printf '\n\n****************************\n'
@printf '$(color)Generating docs requirements$(off)\n'
@printf '****************************\n'
poetry export --without-hashes --dev -f requirements.txt --output docs/requirements.txt
poetry export --without-hashes --with dev -f requirements.txt --output docs/requirements.txt
189 changes: 95 additions & 94 deletions docs/requirements.txt

Large diffs are not rendered by default.

9 changes: 4 additions & 5 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,12 @@ plugins:
- mkdocstrings:
handlers:
python:
selection:
options:
filters:
- "!^_" # exlude all members starting with _
rendering:
show_source: false
show_root_heading: true
show_root_full_path: false
show_source: false
show_root_heading: true
show_root_full_path: false

markdown_extensions:
- admonition
Expand Down