Skip to content

Commit

Permalink
Add support for Python 3.10
Browse files Browse the repository at this point in the history
Ref. #1142
  • Loading branch information
treiher committed Aug 22, 2022
1 parent ec57d72 commit 0a652ea
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 18 deletions.
34 changes: 18 additions & 16 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- contracts
- doc
env:
python-version: 3.8
python-version: "3.8"
steps:
- uses: actions/checkout@v2
if: ${{ needs.skip_check_general.outputs.should_skip != 'true' }}
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: "3.8"
- name: Cache GNAT Community
uses: actions/cache@v2
with:
Expand Down Expand Up @@ -147,15 +147,16 @@ jobs:
target:
- "python_coverage"
python-version:
- 3.8
- 3.9
- "3.8"
- "3.9"
- "3.10"
include:
- target: "python_unit"
python-version: 3.8
python-version: "3.8"
- target: "python_property"
python-version: 3.8
python-version: "3.8"
- target: "python_optimized"
python-version: 3.8
python-version: "3.8"
env:
gnat-version: "23.0w-20220723"
GNAT: "pro23.0w-20220723"
Expand Down Expand Up @@ -269,7 +270,7 @@ jobs:
- gnat-distrib: "fsf"
gnat-version: "12.1.2"
env:
python-version: 3.8
python-version: "3.8"
GNAT: ${{ matrix.gnat-distrib }}${{ matrix.gnat-version }}
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -361,7 +362,7 @@ jobs:
name: Binary size
runs-on: ubuntu-20.04
env:
python-version: 3.8
python-version: "3.8"
gnat-version: "23.0w-20220723"
GNAT: "pro23.0w-20220723"
steps:
Expand Down Expand Up @@ -563,7 +564,7 @@ jobs:
- "sequence"
- "tlv"
env:
python-version: 3.8
python-version: "3.8"
steps:
- uses: actions/checkout@v2
if: ${{ needs.skip_check_spark.outputs.should_skip != 'true' }}
Expand Down Expand Up @@ -654,14 +655,15 @@ jobs:
fail-fast: false
matrix:
python-version:
- 3.8
- 3.9
- "3.8"
- "3.9"
- "3.10"
gnat-distrib:
- "community"
gnat-version:
- "2021"
include:
- python-version: 3.8
- python-version: "3.8"
gnat-distrib: "fsf"
gnat-version: "11.2.4"
env:
Expand Down Expand Up @@ -744,7 +746,7 @@ jobs:
- ping
- dhcp_client
env:
python-version: 3.8
python-version: "3.8"
# SPARK requires more than the available 7 GB of RAM for proving the DHCP client, if multiple
# processes are used.
GNATPROVE_PROCS: 1
Expand Down Expand Up @@ -841,7 +843,7 @@ jobs:
- "community"
- "fsf"
env:
python-version: 3.8
python-version: "3.8"
steps:
- uses: actions/checkout@v2
if: ${{ needs.skip_check_specs.outputs.should_skip != 'true' }}
Expand Down Expand Up @@ -908,7 +910,7 @@ jobs:
needs: skip_check_general
runs-on: ubuntu-20.04
env:
python-version: 3.8
python-version: "3.8"
steps:
- uses: actions/checkout@v2
if: ${{ needs.skip_check_general.outputs.should_skip != 'true' }}
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Generator:

Dependencies:

- Support for Python 3.10
- Python: `ruamel.yaml`

### Changed
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# [![RecordFlux](https://raw.githubusercontent.com/Componolit/RecordFlux/main/doc/img/logo.svg)](https://github.com/Componolit/RecordFlux/)

[![PyPI](https://img.shields.io/pypi/v/RecordFlux?color=blue)](https://pypi.org/project/RecordFlux/)
[![Python Versions](https://img.shields.io/badge/python-3.8%20%7C%203.9-blue.svg)](https://python.org/)
[![Python Versions](https://img.shields.io/badge/python-3.8%20%7C%203.9%20%7C%203.10-blue.svg)](https://python.org/)
[![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/)
[![Tests](https://github.com/Componolit/RecordFlux/workflows/tests/badge.svg)](https://github.com/Componolit/RecordFlux/actions)
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/5052/badge)](https://bestpractices.coreinfrastructure.org/projects/5052)
Expand Down
2 changes: 1 addition & 1 deletion rflx/contract.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if __debug__:
if __debug__: # pragma: no cover

# pylint: disable=unused-import
from icontract import (
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Communications",
"Topic :: Security",
"Topic :: Software Development :: Build Tools",
Expand Down

0 comments on commit 0a652ea

Please sign in to comment.