From 7790ed07a3e8b5d34122f5e4761ccd17167bec1e Mon Sep 17 00:00:00 2001 From: gentlegiantJGC Date: Fri, 29 Sep 2023 11:24:22 +0100 Subject: [PATCH] Bump python version and updated build scripts (#54) Dropped support for Python 3.7 and 3.8. 3.7 is EOL and 3.9 implemented better typing hinting. Updated github actions. Updated readthedocs config. --- .github/workflows/python-build.yml | 6 +++--- .github/workflows/python-stylecheck.yml | 6 +++--- .github/workflows/python-unittests.yml | 6 +++--- .readthedocs.yml | 14 +++++++++----- setup.cfg | 2 +- 5 files changed, 19 insertions(+), 15 deletions(-) diff --git a/.github/workflows/python-build.yml b/.github/workflows/python-build.yml index c1314983..0ef95123 100644 --- a/.github/workflows/python-build.yml +++ b/.github/workflows/python-build.yml @@ -12,12 +12,12 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] + python-version: ['3.9', '3.10', '3.11'] os: [macos-latest, windows-latest] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/.github/workflows/python-stylecheck.yml b/.github/workflows/python-stylecheck.yml index 31468cc9..ab0a8e28 100644 --- a/.github/workflows/python-stylecheck.yml +++ b/.github/workflows/python-stylecheck.yml @@ -15,12 +15,12 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.7'] + python-version: ['3.9'] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/.github/workflows/python-unittests.yml b/.github/workflows/python-unittests.yml index 18911549..1e5a85c6 100644 --- a/.github/workflows/python-unittests.yml +++ b/.github/workflows/python-unittests.yml @@ -16,12 +16,12 @@ jobs: continue-on-error: true strategy: matrix: - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] + python-version: ['3.9', '3.10', '3.11'] os: [macos-latest, windows-latest, ubuntu-latest] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/.readthedocs.yml b/.readthedocs.yml index d9f3248b..8b3d25e7 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -1,9 +1,13 @@ version: 2 build: - os: ubuntu-20.04 + os: ubuntu-22.04 tools: - python: "3.9" - jobs: - pre_build: - - pip install -e .[docs] + python: 3.9 + +python: + install: + - method: pip + path: . + extra_requirements: + - docs diff --git a/setup.cfg b/setup.cfg index c78782f9..64ef9a69 100644 --- a/setup.cfg +++ b/setup.cfg @@ -15,7 +15,7 @@ platforms = any [options] packages = find: zip_safe = False -python_requires = ~=3.6 +python_requires = ~=3.9 install_requires = numpy ~= 1.17 mutf8 ~= 1.0