Repository: robbievanleeuwen/section-properties (language: python)

Issue:
Bump python version to 3.10
All dependencies should be compatible!


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/build_deploy.yml b/.github/workflows/build_deploy.yml
index 90ed5565..eaa15a63 100644
--- a/.github/workflows/build_deploy.yml
+++ b/.github/workflows/build_deploy.yml
@@ -20,10 +20,10 @@ jobs:
     steps:
     - uses: actions/checkout@v2
 
-    - name: Set up Python 3.9
+    - name: Set up Python 3.10
       uses: actions/setup-python@v2
       with:
-        python-version: '3.9'
+        python-version: '3.10'
 
     - name: Install dependencies
       run: |
diff --git a/.github/workflows/code_coverage.yml b/.github/workflows/code_coverage.yml
index d77a50aa..9c0bf97a 100644
--- a/.github/workflows/code_coverage.yml
+++ b/.github/workflows/code_coverage.yml
@@ -11,7 +11,7 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        python-version: [ '3.8' ]
+        python-version: [ '3.10' ]
 
     name: Code coverage with python ${{ matrix.python-version }}
     steps:
diff --git a/.gitignore b/.gitignore
index 0d5fa892..94777cb9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,9 +5,10 @@
 /dist/
 /build/
 
-# Commont virtual environments
+# Common virtual environments
 .venv/
 .env/
+.python-version
 
 # doc generated
 /docs/build
diff --git a/.readthedocs.yaml b/.readthedocs.yaml
index fff84aa6..fd427f7f 100644
--- a/.readthedocs.yaml
+++ b/.readthedocs.yaml
@@ -5,13 +5,13 @@ version: 2
 build:
   os: ubuntu-20.04
   tools:
-    python: "3.8"
+    python: "3.9"
 
 # Build documentation in the docs/ directory with Sphinx
 sphinx:
    configuration: docs/source/conf.py
 
-# # Default is HTML
+# Default is HTML
 formats: all
 
 # Optionally declare the Python requirements required to build your docs
diff --git a/README.md b/README.md
index 2fdf40c6..76e459d5 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
 ![Logo Light](docs/source/images/logo.png#gh-light-mode-only)
 
 [![Run Tests](https://github.com/robbievanleeuwen/section-properties/actions/workflows/tests.yml/badge.svg)](https://github.com/robbievanleeuwen/section-properties/actions/workflows/tests.yml) [![Lint with Black](https://github.com/robbievanleeuwen/section-properties/actions/workflows/black.yml/badge.svg)](https://github.com/robbievanleeuwen/section-properties/actions/workflows/black.yml) [![Documentation Status](https://readthedocs.org/projects/sectionproperties/badge/?version=latest)](https://sectionproperties.readthedocs.io/en/latest/?badge=latest)
- [![codecov](https://codecov.io/gh/robbievanleeuwen/section-properties/branch/master/graph/badge.svg?token=QCH9J4SG6P)](https://codecov.io/gh/robbievanleeuwen/section-properties) [![PyPI version](https://badge.fury.io/py/sectionproperties.svg)](https://badge.fury.io/py/sectionproperties) [![Python versions](https://img.shields.io/badge/python-3.7%20%7C%203.8%20%7C%203.9-blue?style=flat&logo=python)](https://badge.fury.io/py/sectionproperties) [![GitHub license](https://img.shields.io/github/license/robbievanleeuwen/section-properties)](https://github.com/robbievanleeuwen/section-properties/blob/master/LICENSE.md)
+ [![codecov](https://codecov.io/gh/robbievanleeuwen/section-properties/branch/master/graph/badge.svg?token=QCH9J4SG6P)](https://codecov.io/gh/robbievanleeuwen/section-properties) [![PyPI version](https://badge.fury.io/py/sectionproperties.svg)](https://badge.fury.io/py/sectionproperties) [![Python versions](https://img.shields.io/badge/python-3.8%20%7C%203.9%20%7C%203.10-blue?style=flat&logo=python)](https://badge.fury.io/py/sectionproperties) [![GitHub license](https://img.shields.io/github/license/robbievanleeuwen/section-properties)](https://github.com/robbievanleeuwen/section-properties/blob/master/LICENSE.md)
 
 A python package for the analysis of arbitrary cross-sections using the finite element method. *sectionproperties* can be used to determine section properties to be used in structural design and visualise cross-sectional stresses resulting from combinations of applied forces and bending moments.
 
diff --git a/docs/source/rst/installation.rst b/docs/source/rst/installation.rst
index c8fc45b4..ee375912 100644
--- a/docs/source/rst/installation.rst
+++ b/docs/source/rst/installation.rst
@@ -2,7 +2,8 @@ Installation
 ============
 
 These instructions will get you a copy of *sectionproperties* up and running on
-your local machine. You will need a working copy of python 3.7, 3.8 or 3.9 on your machine.
+your local machine. You will need a working copy of python 3.8, 3.9 or 3.10 on your
+machine.
 
 Installing *sectionproperties*
 ------------------------------
diff --git a/setup.cfg b/setup.cfg
index ce08f27e..a8121ce3 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -20,9 +20,9 @@ classifiers =
     Operating System :: POSIX :: Linux
     Operating System :: MacOS :: MacOS X
     Operating System :: Microsoft :: Windows
-    Programming Language :: Python :: 3.7
     Programming Language :: Python :: 3.8
     Programming Language :: Python :: 3.9
+    Programming Language :: Python :: 3.10
 project_urls =
     Documentation = https://sectionproperties.readthedocs.io/
     Source =  https://github.com/robbievanleeuwen/section-properties
@@ -32,7 +32,7 @@ project_urls =
 packages = find:
 platforms = any
 include_package_data = True
-python_requires = >=3.7,<3.10
+python_requires = >=3.8,<3.11
 setup_requires =
     setuptools
 install_requires =
@@ -42,7 +42,7 @@ install_requires =
     matplotlib>=3.4
     shapely>=2.0
     triangle
-    cad_to_shapely>=0.3
+    cad_to_shapely>=0.3.1
     rich
 
 [options.extras_require]


Test patch:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 4576769f..531dfbff 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -13,7 +13,7 @@ jobs:
       fail-fast: false
       matrix:
         os: [ubuntu-latest, macos-latest, windows-latest]
-        python-version: ['3.7', '3.8', '3.9']
+        python-version: ['3.8', '3.9', '3.10']
 
     name: Runs tests with python ${{ matrix.python-version }} using ${{ matrix.os }}
     steps: