Skip to content
This repository was archived by the owner on Jan 21, 2021. It is now read-only.

Commit 6a4c91c

Browse files
author
Thiago C. D'Ávila
authored
Merge pull request #236 from staticdev/nox-poetry
Add Python 3.9 support
2 parents 4779838 + dd7438d commit 6a4c91c

5 files changed

Lines changed: 257 additions & 279 deletions

File tree

.github/workflows/tests.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,16 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
include:
15-
- { python-version: 3.8, os: ubuntu-latest, session: "pre-commit" }
16-
- { python-version: 3.8, os: ubuntu-latest, session: "safety" }
15+
- { python-version: 3.9, os: ubuntu-latest, session: "pre-commit" }
16+
- { python-version: 3.9, os: ubuntu-latest, session: "safety" }
17+
- { python-version: 3.9, os: ubuntu-latest, session: "mypy" }
1718
- { python-version: 3.8, os: ubuntu-latest, session: "mypy" }
19+
- { python-version: 3.9, os: ubuntu-latest, session: "tests" }
1820
- { python-version: 3.8, os: ubuntu-latest, session: "tests" }
19-
- { python-version: 3.8, os: windows-latest, session: "tests" }
20-
- { python-version: 3.8, os: macos-latest, session: "tests" }
21-
- { python-version: 3.8, os: ubuntu-latest, session: "typeguard" }
22-
- { python-version: 3.8, os: ubuntu-latest, session: "docs-build" }
21+
- { python-version: 3.9, os: windows-latest, session: "tests" }
22+
- { python-version: 3.9, os: macos-latest, session: "tests" }
23+
- { python-version: 3.9, os: ubuntu-latest, session: "typeguard" }
24+
- { python-version: 3.9, os: ubuntu-latest, session: "docs-build" }
2325

2426
env:
2527
NOXSESSION: ${{ matrix.session }}

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ Features
3737
--------
3838

3939
* Cross-platform: Windows, Mac, and Linux are officially supported.
40-
* Works with Python 3.6.1+, 3.7 and 3.8.
40+
* Works with Python 3.8 and 3.9.
4141
* Splits documents by max size.
4242
* Checks for high-resolution PDFs before splitting.
4343

4444

4545
Requirements
4646
------------
4747

48-
You need Python 3.6.1 or above (3.8 recommended) installed on your machine.
48+
You need Python 3.8 or above (3.9 recommended) installed on your machine.
4949

5050
Windows users should download `Windows x86-64 executable installer` and in the installer screen be ensure the option `Add Python 3.8 to PATH` is checked:
5151

noxfile.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
package = "pdf_split_tool"
13-
python_versions = ["3.8"]
13+
python_versions = ["3.9", "3.8"]
1414
nox.options.sessions = (
1515
"pre-commit",
1616
"safety",
@@ -72,7 +72,7 @@ def activate_virtualenv_in_precommit_hooks(session: Session) -> None:
7272
hook.write_text("\n".join(lines))
7373

7474

75-
@nox.session(name="pre-commit", python="3.8")
75+
@nox.session(name="pre-commit", python="3.9")
7676
def precommit(session: Session) -> None:
7777
"""Lint using pre-commit."""
7878
args = session.posargs or ["run", "--all-files", "--show-diff-on-failure"]
@@ -94,7 +94,7 @@ def precommit(session: Session) -> None:
9494
activate_virtualenv_in_precommit_hooks(session)
9595

9696

97-
@nox.session(python="3.8")
97+
@nox.session(python="3.9")
9898
def safety(session: Session) -> None:
9999
"""Scan dependencies for insecure packages."""
100100
requirements = nox_poetry.export_requirements(session)
@@ -157,7 +157,7 @@ def xdoctest(session: Session) -> None:
157157
session.run("python", "-m", "xdoctest", package, *args)
158158

159159

160-
@nox.session(name="docs-build", python="3.8")
160+
@nox.session(name="docs-build", python="3.9")
161161
def docs_build(session: Session) -> None:
162162
"""Build the documentation."""
163163
args = session.posargs or ["docs", "docs/_build"]
@@ -171,7 +171,7 @@ def docs_build(session: Session) -> None:
171171
session.run("sphinx-build", *args)
172172

173173

174-
@nox.session(python="3.8")
174+
@nox.session(python="3.9")
175175
def docs(session: Session) -> None:
176176
"""Build and serve the documentation with live reloading on file changes."""
177177
args = session.posargs or ["--open-browser", "docs", "docs/_build"]

0 commit comments

Comments
 (0)