Drop Python3.7, require 3.8+

Revert "Revert "Merge pull request #2879 from fonttools/drop-py37""

This reverts commit f21e6768a7e970e3ec0f3c4b818f47f8dfd1c92b.

Which in turn, reverted https://github.com/fonttools/fonttools/pull/2879
This commit is contained in:
Cosimo Lupo 2023-02-02 15:32:41 +00:00
parent 253b4f9afc
commit 7f4fe17e5b
No known key found for this signature in database
GPG Key ID: DF65A8A5A119C9A8
5 changed files with 8 additions and 10 deletions

View File

@ -27,20 +27,20 @@ jobs:
- name: Install packages - name: Install packages
run: pip install tox run: pip install tox
- name: Run Tox - name: Run Tox
run: tox -e lint,package_readme run: tox $TOX_OPTIONS -e lint,package_readme
test: test:
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')" if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
strategy: strategy:
matrix: matrix:
python-version: ["3.7", "3.10"] python-version: ["3.8", "3.10"]
platform: [ubuntu-latest, macos-latest, windows-latest] platform: [ubuntu-latest, macos-latest, windows-latest]
exclude: # Only test on the latest supported stable Python on macOS and Windows. exclude: # Only test on the latest supported stable Python on macOS and Windows.
- platform: macos-latest - platform: macos-latest
python-version: 3.7 python-version: 3.8
- platform: windows-latest - platform: windows-latest
python-version: 3.7 python-version: 3.8
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}

View File

@ -18,7 +18,7 @@ are available at `Read the Docs <https://fonttools.readthedocs.io/>`_.
Installation Installation
~~~~~~~~~~~~ ~~~~~~~~~~~~
FontTools requires `Python <http://www.python.org/download/>`__ 3.7 FontTools requires `Python <http://www.python.org/download/>`__ 3.8
or later. We try to follow the same schedule of minimum Python version support as or later. We try to follow the same schedule of minimum Python version support as
NumPy (see `NEP 29 <https://numpy.org/neps/nep-0029-deprecation_policy.html>`__). NumPy (see `NEP 29 <https://numpy.org/neps/nep-0029-deprecation_policy.html>`__).

View File

@ -3,8 +3,7 @@
brotli==1.0.9; platform_python_implementation != "PyPy" brotli==1.0.9; platform_python_implementation != "PyPy"
brotlicffi==1.0.9.2; platform_python_implementation == "PyPy" brotlicffi==1.0.9.2; platform_python_implementation == "PyPy"
unicodedata2==15.0.0; python_version <= '3.11' unicodedata2==15.0.0; python_version <= '3.11'
scipy==1.7.3; platform_python_implementation != "PyPy" and python_version <= '3.7' # pyup: ignore scipy==1.9.3; platform_python_implementation != "PyPy"
scipy==1.9.3; platform_python_implementation != "PyPy" and python_version > '3.7'
munkres==1.1.4; platform_python_implementation == "PyPy" munkres==1.1.4; platform_python_implementation == "PyPy"
zopfli==0.2.1 zopfli==0.2.1
fs==2.4.16 fs==2.4.16

View File

@ -155,7 +155,6 @@ classifiers = {
"Natural Language :: English", "Natural Language :: English",
"Operating System :: OS Independent", "Operating System :: OS Independent",
"Programming Language :: Python", "Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.10",
@ -471,7 +470,7 @@ setup_params = dict(
url="http://github.com/fonttools/fonttools", url="http://github.com/fonttools/fonttools",
license="MIT", license="MIT",
platforms=["Any"], platforms=["Any"],
python_requires=">=3.7", python_requires=">=3.8",
long_description=long_description, long_description=long_description,
package_dir={"": "Lib"}, package_dir={"": "Lib"},
packages=find_packages("Lib"), packages=find_packages("Lib"),

View File

@ -1,6 +1,6 @@
[tox] [tox]
minversion = 3.0 minversion = 3.0
envlist = lint, py3{7,8,9,10,11}-cov, htmlcov envlist = lint, py3{8,9,10,11}-cov, htmlcov
skip_missing_interpreters=true skip_missing_interpreters=true
[testenv] [testenv]