diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d3e00a9..fe23878 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,6 +26,7 @@ jobs: - "3.9" - "3.10" - "3.11" + - "3.12" - "pypy-3.7" vcs: - bzr @@ -41,10 +42,10 @@ jobs: # ubuntu-18.04 and ubuntu20.04. - name: Git clone - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 + uses: actions/setup-python@v4 with: python-version: "${{ matrix.python-version }}" @@ -61,7 +62,7 @@ jobs: run: | python -m pip install -U pip python -m pip install -U setuptools wheel - python -m pip install -U coverage coveralls pytest flake8 + python -m pip install -U coverage pytest flake8 python -m pip install -e .[test] - name: Run tests @@ -71,17 +72,17 @@ jobs: FORCE_TEST_VCS: ${{ matrix.vcs }} - name: Check test coverage - run: coverage report -m --fail-under=${{ matrix.vcs == 'bzr' && 99 || 100 }} + run: | + coverage report -m --fail-under=${{ matrix.vcs == 'bzr' && 99 || 100 }} + coverage xml - name: Run check-manifest on itself run: python check_manifest.py - name: Report to coveralls - run: coveralls - continue-on-error: true - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COVERALLS_SERVICE_NAME: github + uses: coverallsapp/github-action@v2 + with: + file: coverage.xml lint: name: ${{ matrix.toxenv }} @@ -98,10 +99,10 @@ jobs: steps: - name: Git clone - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Python ${{ env.default_python || '3.9' }} - uses: actions/setup-python@v3 + uses: actions/setup-python@v4 with: python-version: "${{ env.default_python || '3.9' }}" diff --git a/CHANGES.rst b/CHANGES.rst index 92fd57f..c794e36 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,7 +5,7 @@ Changelog 0.50 (unreleased) ----------------- -- Nothing changed yet. +- Add Python 3.12 support. 0.49 (2022-12-05) diff --git a/appveyor.yml b/appveyor.yml index 73a0f48..3ac23e8 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -9,6 +9,7 @@ environment: - PYTHON: "C:\\Python39" - PYTHON: "C:\\Python310" - PYTHON: "C:\\Python311" + - PYTHON: "C:\\Python312" init: - "echo %PYTHON%" @@ -23,7 +24,7 @@ install: - "set PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" - python --version - pip install -U virtualenv # upgrade pip in tox's virtualenvs - - pip install tox + - pip install tox setuptools - choco install bzr - "set PATH=C:\\Program Files (x86)\\Bazaar;%PATH%" - bzr --version diff --git a/setup.py b/setup.py index 3f05593..9dd35b4 100755 --- a/setup.py +++ b/setup.py @@ -49,6 +49,7 @@ 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', ], diff --git a/tox.ini b/tox.ini index def27bf..a94ace2 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = - py37,py38,py39,py310,py311,pypy3,flake8 + py37,py38,py39,py310,py311,py312,pypy3,flake8 [testenv] passenv =