mirror of
https://github.com/jazzband/contextlib2.git
synced 2026-04-11 18:11:04 +00:00
CI config cleanup, fix author name
* Update pre-commit hooks * Drop 3.6 from CI matrix (no longer available on GH actions) * Ensure 3.10 pass actually runs on Python 3.10 * Disable typechecking CI until it works again * Update old references to my birth name
This commit is contained in:
commit
defc103aae
7 changed files with 49 additions and 13 deletions
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
|
@ -8,7 +8,7 @@ jobs:
|
|||
strategy:
|
||||
max-parallel: 5
|
||||
matrix:
|
||||
python-version: [3.6, 3.7, 3.8, 3.9, '3.10', 'pypy-3.8']
|
||||
python-version: [3.7, 3.8, 3.9, '3.10', 'pypy-3.8']
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
repos:
|
||||
- repo: https://github.com/pre-commit/pygrep-hooks
|
||||
rev: v1.9.0
|
||||
rev: v1.10.0
|
||||
hooks:
|
||||
- id: python-check-blanket-noqa
|
||||
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.0.1
|
||||
rev: v4.6.0
|
||||
hooks:
|
||||
- id: check-merge-conflict
|
||||
- id: check-yaml
|
||||
|
|
|
|||
35
.readthedocs.yaml
Normal file
35
.readthedocs.yaml
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
# Read the Docs configuration file for Sphinx projects
|
||||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
|
||||
|
||||
# Required
|
||||
version: 2
|
||||
|
||||
# Set the OS, Python version and other tools you might need
|
||||
build:
|
||||
os: ubuntu-22.04
|
||||
tools:
|
||||
python: "3.12"
|
||||
# You can also specify other tool versions:
|
||||
# nodejs: "20"
|
||||
# rust: "1.70"
|
||||
# golang: "1.20"
|
||||
|
||||
# Build documentation in the "docs/" directory with Sphinx
|
||||
sphinx:
|
||||
configuration: docs/conf.py
|
||||
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
|
||||
# builder: "dirhtml"
|
||||
# Fail on all warnings to avoid broken references
|
||||
# fail_on_warning: true
|
||||
|
||||
# Optionally build your docs in additional formats such as PDF and ePub
|
||||
# formats:
|
||||
# - pdf
|
||||
# - epub
|
||||
|
||||
# Optional but recommended, declare the Python requirements required
|
||||
# to build your documentation
|
||||
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
|
||||
# python:
|
||||
# install:
|
||||
# - requirements: docs/requirements.txt
|
||||
2
NEWS.rst
2
NEWS.rst
|
|
@ -64,7 +64,7 @@ Release History
|
|||
^^^^^^^^^^^^^^^^^^
|
||||
|
||||
* Thanks to the welcome efforts of Jannis Leidel, contextlib2 is now a
|
||||
[Jazzband](https://jazzband.co/) project! This means that I (Nick Coghlan)
|
||||
[Jazzband](https://jazzband.co/) project! This means that I (Alyssa Coghlan)
|
||||
am no longer a single point of failure for backports of future contextlib
|
||||
updates to earlier Python versions.
|
||||
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ master_doc = 'index'
|
|||
|
||||
# General information about the project.
|
||||
project = u'contextlib2'
|
||||
copyright = u'2021, Nick Coghlan'
|
||||
copyright = u'2024, Alyssa Coghlan'
|
||||
|
||||
# The version info for the project you're documenting, acts as replacement for
|
||||
# |version| and |release|, also used in various other places throughout the
|
||||
|
|
@ -180,7 +180,7 @@ htmlhelp_basename = 'contextlib2doc'
|
|||
# (source start file, target name, title, author, documentclass [howto/manual]).
|
||||
latex_documents = [
|
||||
('index', 'contextlib2.tex', u'contextlib2 Documentation',
|
||||
u'Nick Coghlan', 'manual'),
|
||||
u'Alyssa Coghlan', 'manual'),
|
||||
]
|
||||
|
||||
# The name of an image file (relative to this directory) to place at the top of
|
||||
|
|
@ -213,7 +213,7 @@ latex_documents = [
|
|||
# (source start file, name, description, authors, manual section).
|
||||
man_pages = [
|
||||
('index', 'contextlib2', u'contextlib2 Documentation',
|
||||
[u'Nick Coghlan'], 1)
|
||||
[u'Alyssa Coghlan'], 1)
|
||||
]
|
||||
|
||||
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -13,7 +13,7 @@ setup(
|
|||
license='PSF License',
|
||||
description='Backports and enhancements for the contextlib module',
|
||||
long_description=open('README.rst').read(),
|
||||
author='Nick Coghlan',
|
||||
author='Alyssa Coghlan',
|
||||
author_email='ncoghlan@gmail.com',
|
||||
url='http://contextlib2.readthedocs.org',
|
||||
classifiers=[
|
||||
|
|
|
|||
11
tox.ini
11
tox.ini
|
|
@ -1,5 +1,6 @@
|
|||
[tox]
|
||||
envlist = py{36,37,38,39,3_10,py3}
|
||||
# No Python 3.6 available on current generation GitHub test runners
|
||||
envlist = py{37,38,39,3.10,py3}
|
||||
skip_missing_interpreters = True
|
||||
|
||||
[testenv]
|
||||
|
|
@ -8,16 +9,16 @@ commands =
|
|||
coverage report
|
||||
coverage xml
|
||||
# mypy won't install on PyPy, so only run the typechecking on CPython
|
||||
!pypy3: python -m mypy.stubtest --allowlist dev/mypy.allowlist contextlib2
|
||||
# Typechecking is currently failing: https://github.com/jazzband/contextlib2/issues/54
|
||||
# !pypy3: python -m mypy.stubtest --allowlist dev/mypy.allowlist contextlib2
|
||||
deps =
|
||||
coverage
|
||||
!pypy3: mypy
|
||||
|
||||
[gh-actions]
|
||||
python =
|
||||
3.6: py36
|
||||
3.7: py37
|
||||
3.8: py38
|
||||
3.9: py39
|
||||
3.10: py3_10
|
||||
pypy3: pypy3
|
||||
3.10: py3.10
|
||||
pypy-3.8: pypy3
|
||||
|
|
|
|||
Loading…
Reference in a new issue