Skip to content

Commit

Permalink
Merge pull request #30 from pelican-plugins/require-python-3.8
Browse files Browse the repository at this point in the history
Require Python 3.8+
  • Loading branch information
nandac authored Jul 3, 2023
2 parents 5a270ba + 8fafd09 commit 5e3359e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 22 deletions.
37 changes: 20 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -63,51 +63,54 @@ jobs:
runs-on: ubuntu-latest

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

- name: Validate links in Markdown files
uses: JustinBeckwith/linkinator-action@v1
with:
retry: true

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

- name: Set Poetry cache
uses: actions/cache@v2
id: poetry-cache
with:
path: ~/.cache/pypoetry/virtualenvs
key: poetry-${{ hashFiles('**/poetry.lock') }}
- name: Upgrade Pip
run: python -m pip install --upgrade pip

- name: Install Poetry
run: python -m pip install poetry

- name: Install dependencies
run: |
poetry run pip install --upgrade pip
poetry install
- name: Run linters
run: poetry run invoke lint
run: poetry install --no-interaction

- name: Run linters
run: poetry run invoke lint --diff

deploy:
name: Deploy
needs: [test, lint]
runs-on: ubuntu-latest
if: ${{ github.ref=='refs/heads/main' && github.event_name!='pull_request' }}
if: github.ref=='refs/heads/main' && github.event_name!='pull_request'

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

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

- name: Check release
id: check_release
run: |
python -m pip install --upgrade pip
python -m pip install poetry githubrelease httpx==0.16.1 autopub
echo "##[set-output name=release;]$(autopub check)"
python -m pip install poetry githubrelease httpx==0.18.2 autopub
echo "release=$(autopub check)" >> $GITHUB_OUTPUT
- name: Publish
if: ${{ steps.check_release.outputs.release=='' }}
env:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pandoc Reader: A Plugin for Pelican
===================================

[![Build Status](https://img.shields.io/github/workflow/status/pelican-plugins/pandoc-reader/build)](https://github.com/pelican-plugins/pandoc-reader/actions)
[![Build Status](https://img.shields.io/github/actions/workflow/status/pelican-plugins/pandoc-reader/main.yml?branch=main)](https://github.com/pelican-plugins/pandoc-reader/actions)
[![PyPI Version](https://img.shields.io/pypi/v/pelican-pandoc-reader)](https://pypi.org/project/pelican-pandoc-reader/)
![License](https://img.shields.io/pypi/l/pelican-pandoc-reader?color=blue)

Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ classifiers = [
"Issue Tracker" = "https://github.com/pelican-plugins/pandoc-reader/issues"

[tool.poetry.dependencies]
python = ">=3.6.2,<4.0"
python = ">=3.8.1,<4.0"
pelican = ">=4.5"
markdown = {version = "<=3.3.4", optional = true}
markdown-word-count = "^0.0.1"
Expand All @@ -37,11 +37,11 @@ beautifulsoup4 = "^4.9.3"
"ruamel.yaml" = "^0.17.21"

[tool.poetry.dev-dependencies]
black = {version = "*", allow-prereleases = true}
black = "^23"
flake8 = "^4.0.1"
flake8-black = "^0.2.0"
invoke = "^1.3"
isort = "^5.4"
invoke = "^2.0"
isort = "^5.12.0"
livereload = "^2.6"
markdown = "<=3.3.4"
pytest = "^6.0"
Expand Down

0 comments on commit 5e3359e

Please sign in to comment.