diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 06c90e691..e27ef1008 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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' }} @@ -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: @@ -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" @@ -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 @@ -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: @@ -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' }} @@ -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: @@ -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 @@ -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' }} @@ -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' }} diff --git a/CHANGELOG.md b/CHANGELOG.md index ca8a40e6d..07a5b11ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,7 @@ Generator: Dependencies: +- Support for Python 3.10 - Python: `ruamel.yaml` ### Changed diff --git a/README.md b/README.md index 0567ae92e..792716536 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/rflx/contract.py b/rflx/contract.py index 3e030eb7a..61cb353e3 100644 --- a/rflx/contract.py +++ b/rflx/contract.py @@ -1,4 +1,4 @@ -if __debug__: +if __debug__: # pragma: no cover # pylint: disable=unused-import from icontract import ( diff --git a/setup.py b/setup.py index 6dce3d813..38f737ec8 100644 --- a/setup.py +++ b/setup.py @@ -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",