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

Update for Python 3.12 & 3.13 #31

Merged
merged 5 commits into from
Dec 12, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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