From c67032749eddfb3dd59fed49c6ed74bee9f4e83f Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Sat, 8 Oct 2022 10:00:52 -0400 Subject: [PATCH] chore: include Python 3.11 classifier & testing (#655) * chore: include Python 3.11 classifier * fixup! chore: include Python 3.11 classifier * ci: skip mamba on 3.11 Signed-off-by: Henry Schreiner * fixup! ci: skip mamba on 3.11 * fixup! fixup! ci: skip mamba on 3.11 Signed-off-by: Henry Schreiner --- setup.cfg => .flake8 | 0 .github/workflows/ci.yml | 7 ++++++- .pre-commit-config.yaml | 6 ------ MANIFEST.in | 3 --- noxfile.py | 2 +- pyproject.toml | 13 +------------ 6 files changed, 8 insertions(+), 23 deletions(-) rename setup.cfg => .flake8 (100%) delete mode 100644 MANIFEST.in diff --git a/setup.cfg b/.flake8 similarity index 100% rename from setup.cfg rename to .flake8 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3cfd2f00..1ab9834c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] - python-version: ["3.7", "3.8", "3.9", "3.10"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11-dev"] steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} @@ -18,6 +18,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Set up Miniconda uses: conda-incubator/setup-miniconda@v2 + if: matrix.python-version != '3.11-dev' with: auto-update-conda: true python-version: ${{ matrix.python-version }} @@ -26,6 +27,10 @@ jobs: python -m pip install --disable-pip-version-check . - name: Run tests on ${{ matrix.os }} run: nox --non-interactive --error-on-missing-interpreter --session "tests-${{ matrix.python-version }}" -- --full-trace + if: matrix.python-version != '3.11-dev' + - name: Run tests on ${{ matrix.os }} + if: matrix.python-version == '3.11-dev' + run: nox --non-interactive --error-on-missing-interpreter --session "tests-3.11" -- --full-trace lint: runs-on: ubuntu-latest steps: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3f34694e..a95eb611 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -91,9 +91,3 @@ repos: - id: rst-backticks - id: rst-directive-colons - id: rst-inline-touching-normal - - - repo: https://github.com/mgedmin/check-manifest - rev: "0.48" - hooks: - - id: check-manifest - stages: [manual] diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index e147a272..00000000 --- a/MANIFEST.in +++ /dev/null @@ -1,3 +0,0 @@ -recursive-include nox *.jinja2 -include nox/py.typed .github/action_helper.py -recursive-include tests *.py diff --git a/noxfile.py b/noxfile.py index 154a1002..fc4f71b6 100644 --- a/noxfile.py +++ b/noxfile.py @@ -31,7 +31,7 @@ nox.options.sessions.append("conda_tests") -@nox.session(python=["3.7", "3.8", "3.9", "3.10"]) +@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11"]) def tests(session: nox.Session) -> None: """Run test suite with pytest.""" session.create_tmp() # Fixes permission errors on Windows diff --git a/pyproject.toml b/pyproject.toml index ce206ea5..cfdb1476 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,6 +44,7 @@ classifiers = [ "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "Topic :: Software Development :: Testing", ] [project.optional-dependencies] @@ -97,15 +98,3 @@ enable_error_code = [ "ignore-without-code", "redundant-expr", "truthy-bool" ] [[tool.mypy.overrides]] module = [ "argcomplete", "colorlog.*", "py", "tox.*" ] ignore_missing_imports = true - -[tool.check-manifest] -ignore = [ - "action.yml", - "docs/**", - "noxfile.py", - "requirements-conda-test.txt", - "requirements-dev.txt", - "requirements-test.txt", - "*.md", - ".*", -]