Skip to content
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
130 changes: 55 additions & 75 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,106 +7,86 @@ on:
- main
- "[0-9].[0-9]+-branch"
tags:
- "*"
# Build pull requests
pull_request:

jobs:
test:
strategy:
# See https://github.com/actions/runner-images
matrix:
py:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "pypy-3.8"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
- "3.15"
- "pypy-3.11"
os:
- "ubuntu-latest"
- "windows-latest"
- "macos-latest"
architecture:
- x64
- x86
- "ubuntu-24.04" # x64
- "windows-2025" # x64
- "macos-15" # arm64
- "macos-15-intel" # x64

exclude:
# Linux and macOS don't have x86 python
- os: "ubuntu-latest"
architecture: x86
- os: "macos-latest"
architecture: x86

name: "Python: ${{ matrix.py }}-${{ matrix.architecture }} on ${{ matrix.os }}"
name: "Python: ${{ matrix.py }} on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
- uses: actions/checkout@v7
- name: Setup uv
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.py }}
architecture: ${{ matrix.architecture }}
- run: pip install tox
- name: Running tox
run: tox -e py
test-py37-pyramid15:
runs-on: ubuntu-latest
name: "Python: 3.7-x64 on ubuntu-latest with Pyramid 1.5"
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: "3.7"
architecture: x64
- run: pip install tox
- name: Running tox
run: tox -e py37-pyramid15
test-py37-pyramid110:
runs-on: ubuntu-latest
name: "Python: 3.7-x64 on ubuntu-latest with Pyramid 1.10"
- name: Running tox for current python version
run: uvx --with tox-uv tox -e py

old-pyramid:
strategy:
matrix:
include:
- py: "3.11"
toxenv: "py311-pyramid15"
- py: "3.11"
toxenv: "py311-pyramid110"
- py: "3.15"
toxenv: "py315-pyramid20"
name: "Pyramid: ${{ matrix.toxenv }}"
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
- uses: actions/checkout@v7
- name: Setup uv
uses: astral-sh/setup-uv@v7
with:
python-version: "3.7"
architecture: x64
- run: pip install tox
- name: Running tox
run: tox -e py37-pyramid110
python-version: ${{ matrix.py }}
- run: uvx --with tox-uv tox -e ${{ matrix.toxenv }}

coverage:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
name: Validate coverage
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
- uses: actions/checkout@v7
- name: Setup uv
uses: astral-sh/setup-uv@v7
with:
python-version: "3.10"
architecture: x64

- run: pip install tox
- run: tox -e py310,coverage
python-version: "3.14"
- run: uvx --with tox-uv tox -e py314-cover,coverage
docs:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
name: Build the documentation
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
- uses: actions/checkout@v7
- name: Setup uv
uses: astral-sh/setup-uv@v7
with:
python-version: "3.10"
architecture: x64
- run: pip install tox
- run: tox -e docs
python-version: "3.14"
- run: uvx --with tox-uv tox -e docs
lint:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
name: Lint the package
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
- uses: actions/checkout@v7
- name: Setup uv
uses: astral-sh/setup-uv@v7
with:
python-version: "3.10"
architecture: x64
- run: pip install tox
- run: tox -e lint
python-version: "3.14"
- run: uvx --with tox-uv tox -e lint
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ env26/
env27/
env32/
coverage.xml
uv.lock
12 changes: 12 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# https://docs.readthedocs.io/en/stable/config-file/v2.html
version: 2
build:
os: ubuntu-24.04
tools:
python: '3.14'
jobs:
install:
- pip install --upgrade pip
- pip install --group docs .
sphinx:
configuration: docs/conf.py
17 changes: 15 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
Unreleased (2022-11-15)
-----------------------
unreleased
----------

- Rename "master" to "main"

- Drop support for Python 3.7, 3.8, 3.9, and 3.10.

- Add support for Python 3.11, 3.12, 3.13, 3.14, and 3.15.

- Avoid deprecation warnings by using the public api for
``pyramid.path.DottedNameResolver``.

- Stop using the deprecated ``pkg_resources`` api in the docs.

- Switch packaging metadata from ``setup.cfg`` to ``pyproject.toml`` and use
an SPDX license expression. The ``testing`` and ``docs`` extras are replaced
by dependency groups.

1.1 (2022-03-12)
----------------

Expand Down
7 changes: 3 additions & 4 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
graft src/pyramid_tm
graft src/pyramid_exclog
graft tests
graft docs
graft .github

include README.rst
include CHANGES.rst
include LICENSE.txt
include CONTRIBUTORS.txt
include COPYRIGHT.txt
include CHANGES.rst

include setup.cfg pyproject.toml
include pyproject.toml
include .coveragerc .flake8
include .mailmap
include tox.ini rtd.txt
include tox.ini .readthedocs.yaml

recursive-exclude * __pycache__ *.py[cod]
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
# other places throughout the built documents.
#
# The short X.Y version.
import pkg_resources
version = pkg_resources.get_distribution(project).version
import importlib.metadata
version = importlib.metadata.version(project)
# The full version, including alpha/beta/rc tags.
release = version

Expand Down
83 changes: 81 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,77 @@
[project]
name = "pyramid_exclog"
version = "1.1"
description = "A package which logs to a Python logger when an exception is raised by a Pyramid application"
dynamic = ["readme"]

license = "LicenseRef-Repoze-BSD-derived"
license-files = ["LICENSE.txt"]
authors = [
{ name = "Chris McDonough", email = "pylons-discuss@googlegroups.com" },
]
maintainers = [
{ name = "Pylons Project", email = "pylons-discuss@googlegroups.com" },
]

requires-python = ">=3.11"
dependencies = [
"pyramid >= 1.5",
]

keywords = ["exception", "handler", "pylons", "pyramid", "tween", "wsgi"]
classifiers = [
"Development Status :: 6 - Mature",
"Framework :: Pyramid",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Internet :: WWW/HTTP :: WSGI",
]

[project.urls]
Changelog = "https://docs.pylonsproject.org/projects/pyramid-exclog/en/latest/changes.html"
Documentation = "https://docs.pylonsproject.org/projects/pyramid-exclog/en/latest/index.html"
Homepage = "https://github.com/Pylons/pyramid_exclog"
"Issue Tracker" = "https://github.com/Pylons/pyramid_exclog/issues"

[dependency-groups]
docs = [
"Sphinx >= 1.8.1",
"docutils",
"pylons-sphinx-themes >= 1.0.9",
]
lint = [
"black ~= 26.10.0",
"build",
"check-manifest",
"flake8",
"flake8-bugbear",
"isort",
"readme_renderer",
"twine",
]
testing = [
"coverage >= 5.0",
"pytest",
"pytest-cov",
]

[build-system]
requires = ["setuptools >= 41", "wheel"]
requires = ["setuptools >= 77"] # SPDX license expressions
build-backend = "setuptools.build_meta"

[tool.black]
line-length = 79
skip-string-normalization = true
target-version = ['py37', 'py38', 'py39', 'py310']
target-version = ["py311", "py312", "py313", "py314", "py315"]
exclude = '''
/(
\.git
Expand All @@ -27,3 +93,16 @@ line_length = 79
force_sort_within_sections = true
sections = "FUTURE,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
known_first_party = "pyramid_exclog"

[tool.pytest.ini_options]
addopts = "-W always"
python_files = "test_*.py"
testpaths = [
"tests",
]

[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools.dynamic]
readme = { file = ["README.rst", "CHANGES.rst"], content-type = "text/x-rst" }
1 change: 0 additions & 1 deletion rtd.txt

This file was deleted.

61 changes: 0 additions & 61 deletions setup.cfg

This file was deleted.

Loading
Loading