diff options
author | Michael Howitz <mh@gocept.com> | 2022-02-11 08:20:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-11 08:20:05 +0100 |
commit | 24593ab09e4e895f455958a8869fcbbc9548ed6a (patch) | |
tree | 3fe51b0cd492c2ae66de006ffdcc5e79dded9fe7 | |
parent | 3c35575c4bcf89f84568a87bb875b4af1df1d61a (diff) | |
parent | cb2d21400c95b73909b1145674c08fed31b8759a (diff) | |
download | zope-exceptions-24593ab09e4e895f455958a8869fcbbc9548ed6a.tar.gz |
Merge pull request #24 from zopefoundation/config-with-pure-python
Add support for Python 3.10.
-rw-r--r-- | .editorconfig | 2 | ||||
-rw-r--r-- | .github/workflows/tests.yml | 11 | ||||
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | .meta.toml | 5 | ||||
-rw-r--r-- | CHANGES.rst | 2 | ||||
-rw-r--r-- | CONTRIBUTING.md | 23 | ||||
-rw-r--r-- | MANIFEST.in | 1 | ||||
-rw-r--r-- | setup.py | 1 | ||||
-rw-r--r-- | src/zope/exceptions/tests/test_exceptionformatter.py | 3 | ||||
-rw-r--r-- | tox.ini | 14 |
10 files changed, 44 insertions, 20 deletions
diff --git a/.editorconfig b/.editorconfig index f3e46f5..c5508b9 100644 --- a/.editorconfig +++ b/.editorconfig @@ -28,7 +28,7 @@ max_line_length = off # 4 space indentation indent_size = 4 -[*.{yml,zpt,pt,dtml}] +[*.{yml,zpt,pt,dtml,zcml}] # 2 space indentation indent_size = 2 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 38cb0de..d31f648 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,21 +16,24 @@ jobs: # We want to see all failures: fail-fast: false matrix: + os: + - ubuntu config: # [Python version, tox env] - - ["3.8", "lint"] + - ["3.9", "lint"] - ["2.7", "py27"] - ["3.5", "py35"] - ["3.6", "py36"] - ["3.7", "py37"] - ["3.8", "py38"] - ["3.9", "py39"] + - ["3.10", "py310"] - ["pypy2", "pypy"] - ["pypy3", "pypy3"] - - ["3.8", "docs"] - - ["3.8", "coverage"] + - ["3.9", "docs"] + - ["3.9", "coverage"] - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }}-latest name: ${{ matrix.config[1] }} steps: - uses: actions/checkout@v2 @@ -1,9 +1,11 @@ # Generated from: # https://github.com/zopefoundation/meta/tree/master/config/pure-python +*.dll *.egg-info/ *.profraw *.pyc *.pyo +*.so .coverage .coverage.* .eggs/ @@ -2,14 +2,15 @@ # https://github.com/zopefoundation/meta/tree/master/config/pure-python [meta] template = "pure-python" -commit-id = "d38d4a51cd2453eb800866e6e01bfb0fd4e80019" +commit-id = "121e74bd9c9718abd9a1a079e6ede252c1a0ba7d" [python] -with-appveyor = false with-pypy = true with-legacy-python = true with-docs = true with-sphinx-doctests = true +with-windows = false +with-future-python = false [tox] use-flake8 = true diff --git a/CHANGES.rst b/CHANGES.rst index c797466..9e66eb1 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,7 +5,7 @@ 4.5 (unreleased) ================ -- Add official support for Python 3.9. +- Add official support for Python 3.9 and 3.10. - Undo dropping support for Python 3.5. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..31d95f0 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,23 @@ +<!-- +Generated from: +https://github.com/zopefoundation/meta/tree/master/config/pure-python +--> +# Contributing to zopefoundation projects + +The projects under the zopefoundation GitHub organization are open source and +welcome contributions in different forms: + +* bug reports +* code improvements and bug fixes +* documentation improvements +* pull request reviews + +For any changes in the repository besides trivial typo fixes you are required +to sign the contributor agreement. See +https://www.zope.dev/developer/becoming-a-committer.html for details. + +Please visit our [Developer +Guidelines](https://www.zope.dev/developer/guidelines.html) if you'd like to +contribute code changes and our [guidelines for reporting +bugs](https://www.zope.dev/developer/reporting-bugs.html) if you want to file a +bug report. diff --git a/MANIFEST.in b/MANIFEST.in index 421aed6..24cc0f4 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,5 +1,6 @@ # Generated from: # https://github.com/zopefoundation/meta/tree/master/config/pure-python +include *.md include *.rst include *.txt include buildout.cfg @@ -49,6 +49,7 @@ setup( 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', 'Natural Language :: English', diff --git a/src/zope/exceptions/tests/test_exceptionformatter.py b/src/zope/exceptions/tests/test_exceptionformatter.py index b65e10c..cf4ea9b 100644 --- a/src/zope/exceptions/tests/test_exceptionformatter.py +++ b/src/zope/exceptions/tests/test_exceptionformatter.py @@ -666,8 +666,7 @@ class Test_format_exception(unittest.TestCase): s = self._callFUT(False) lines = s.splitlines()[-3:] self.assertEqual(lines[0], ' syntax error') - # PyPy has a shorter prefix - self.assertTrue(lines[1].endswith(' ^')) + self.assertIn(' ^', lines[1]) self.assertTrue(lines[2].startswith('SyntaxError: invalid syntax'), lines[2]) @@ -10,6 +10,7 @@ envlist = py37 py38 py39 + py310 pypy pypy3 docs @@ -18,9 +19,6 @@ envlist = [testenv] usedevelop = true deps = - zope.testrunner - # Until repoze.sphinx.autointerface supports Sphinx 4.x we cannot use it: - Sphinx < 4 commands = zope-testrunner --test-path=src {posargs:-vc} !py27-!pypy: sphinx-build -b doctest -d {envdir}/.cache/doctrees docs {envdir}/.cache/doctest @@ -34,7 +32,8 @@ skip_install = true deps = flake8 check-manifest - check-python-versions + check-python-versions >= 0.19.1 + wheel commands = flake8 src setup.py check-manifest @@ -43,8 +42,6 @@ commands = [testenv:docs] basepython = python3 skip_install = false -# Until repoze.sphinx.autointerface supports Sphinx 4.x we cannot use it: -deps = Sphinx < 4 commands_pre = commands = sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html @@ -57,9 +54,6 @@ allowlist_externals = deps = coverage coverage-python-version - # Until repoze.sphinx.autointerface supports Sphinx 4.x we cannot use it: - Sphinx < 4 - zope.testrunner commands = mkdir -p {toxinidir}/parts/htmlcov coverage run -m zope.testrunner --test-path=src {posargs:-vc} @@ -70,7 +64,7 @@ commands = [coverage:run] branch = True plugins = coverage_python_version -source = src +source = zope.exceptions [coverage:report] precision = 2 |