Skip to content

Commit

Permalink
Merge pull request #31 from alvaro-crespo/update-for-python-3.13
Browse files Browse the repository at this point in the history
Update for Python 3.12 & 3.13
  • Loading branch information
bakert authored Dec 12, 2024
2 parents 99e24f9 + c13c727 commit c03907d
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-latest, windows-latest]
python-version: ['3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- name: Set git crlf/eol
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-latest, windows-latest]
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13']

steps:
- name: Set git crlf/eol
Expand Down
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repos:
- id: check-useless-excludes
- id: check-hooks-apply
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -21,15 +21,15 @@ repos:
exclude: '(conda/meta.yaml|.pep8speaks.yml)'

- repo: https://github.com/ambv/black
rev: 23.7.0
rev: 24.10.0
hooks:
- id: black
name: "Format code"
exclude: '(.*tests/.*|.*test.py$|^setup.py$|^test_.*.py$)'
language_version: python3

- repo: "https://github.com/asottile/blacken-docs"
rev: "1.16.0"
rev: "1.19.1"
hooks:
- id: "blacken-docs"
name: "Format docs (blacken-docs)"
Expand All @@ -38,7 +38,7 @@ repos:
- "black==23.1.0"

- repo: https://github.com/PyCQA/doc8
rev: v1.1.1
rev: v1.1.2
hooks:
- id: doc8
args:
Expand All @@ -54,7 +54,7 @@ repos:
- id: rst-inline-touching-normal

- repo: https://github.com/myint/autoflake
rev: v2.2.0
rev: v2.3.1
hooks:
- id: autoflake
exclude: '(.*tests/.*|.*test.py$|^setup.py$|^test_.*.py$)'
Expand All @@ -65,14 +65,14 @@ repos:
- --remove-unused-variables

- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
rev: 7.1.1
hooks:
- id: flake8
exclude: '(.*tests/.*|.*test.py$|^setup.py$|^test_.*.py$)'
additional_dependencies: ["flake8-bugbear"]

- repo: https://github.com/PyCQA/bandit
rev: 1.7.5
rev: 1.8.0
hooks:
- id: bandit
args: ["-ll", "-x", "pystache/tests"]
Expand Down
13 changes: 3 additions & 10 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Pystache


This updated fork of Pystache is currently tested on Python 3.8+ and in
Conda, on Linux, Macos, and Windows (Python 2.7 is no longer supported).
Conda, on Linux, Macos, and Windows.

|logo|

Expand Down Expand Up @@ -40,6 +40,8 @@ Pystache is tested with:
- Python 3.9
- Python 3.10
- Python 3.11
- Python 3.12
- Python 3.13
- Conda (py38 and py310)

JSON support is needed only for the command-line interface and to run
Expand Down Expand Up @@ -277,15 +279,6 @@ It's usually a good idea to update the hooks to the latest version::
.. _pre-commit: https://pre-commit.com/


Mailing List (old)
------------------

There is(was) a `mailing list`_. Note that there is a bit of a delay
between posting a message and seeing it appear in the mailing list archive.


.. _mailing list: https://librelist.com/browser/pystache/

Credits
=======

Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries",
]

Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py3{8,9,10,11}-{linux,macos,windows}
envlist = py3{8,9,10,11,12,13}-{linux,macos,windows}
skip_missing_interpreters = true
isolated_build = true
skipsdist = true
Expand All @@ -10,6 +10,8 @@ python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312
3.13: py313

[gh-actions:env]
PLATFORM =
Expand Down

0 comments on commit c03907d

Please sign in to comment.