Skip to content

Commit

Permalink
Merge pull request #78 from mgedmin/py312
Browse files Browse the repository at this point in the history
Add support for Python 3.12
  • Loading branch information
mgedmin authored Oct 4, 2023
2 parents 1b0c5bd + d77357b commit 94b1ca6
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 16 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,22 @@ jobs:
- "3.9"
- "3.10"
- "3.11"
- "3.12"

steps:
- name: Install OS dependencies
run: sudo apt-get update && sudo apt-get install -y graphviz

- name: Git clone
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python-version }}"

- name: Pip cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.py') }}
Expand All @@ -51,22 +52,21 @@ jobs:
run: |
python -m pip install -U pip
python -m pip install -U setuptools wheel
python -m pip install -U coverage coveralls
python -m pip install -U coverage
python -m pip install -e .[test]
- name: Run tests
run: coverage run tests.py

- name: Check test coverage
run: coverage report -m --fail-under=100
run: |
coverage report -m --fail-under=100
coverage xml
- name: Report to coveralls
run: coveralls
continue-on-error: true
if: "matrix.python-version != '2.7' && matrix.python-version != 'pypy2'"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_SERVICE_NAME: github
uses: coverallsapp/github-action@v2
with:
file: coverage.xml

lint:
name: ${{ matrix.toxenv }}
Expand All @@ -82,15 +82,15 @@ jobs:

steps:
- name: Git clone
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Python ${{ env.default_python || '3.9' }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "${{ env.default_python || '3.9' }}"

- name: Pip cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.toxenv }}-${{ hashFiles('tox.ini') }}
Expand Down
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Changes
3.6.1 (unreleased)
------------------

- Nothing changed yet.
- Add support for Python 3.12.


3.6.0 (2023-06-16)
Expand Down
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ environment:
- PYTHON: "C:\\Python39"
- PYTHON: "C:\\Python310"
- PYTHON: "C:\\Python311"
- PYTHON: "C:\\Python312"

init:
- "echo %PYTHON%"
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def build_images(doctests=()):
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
],
keywords='object graph visualization graphviz garbage collection',
py_modules=['objgraph'],
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py37, py38, py39, py310, py311
envlist = py37, py38, py39, py310, py311, py312

[testenv]
deps =
Expand Down

0 comments on commit 94b1ca6

Please sign in to comment.