Skip to content

Commit

Permalink
Fix tox.ini issue + Fix linting issue + Drop support for Python 3.6 a…
Browse files Browse the repository at this point in the history
…nd 3.7 + Update GitHub Actions (#51)
  • Loading branch information
leifgehrmann authored Oct 21, 2023
1 parent c4fa079 commit 0292399
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion docs/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Install with pip_::

.. _pip: https://pip.pypa.io/

Note: Python versions < 3.6 are not supported.
Note: Python versions < 3.8 are not supported.

Importing pangocffi
-------------------
Expand Down
2 changes: 1 addition & 1 deletion pangocffi/attribute.py
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ def from_fallback(
:raises: AssertionError
When ``enable_fallback`` isn't a :class:`bool`.
"""
assert isinstance(enable_fallback, bool),\
assert isinstance(enable_fallback, bool), \
"enable_fallback isn't a bool"
enable_fallback = ffi.cast("gboolean", enable_fallback)
temp = cls.from_pointer(
Expand Down
6 changes: 3 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ classifiers =
Intended Audience :: Developers
Natural Language :: English
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Topic :: Text Processing :: Fonts
project_urls =
Code = https://github.com/leifgehrmann/pangocffi
Expand All @@ -33,7 +33,7 @@ setup_requires =
setuptools
install_requires =
cffi >= 1.1.0
python_requires = >= 3.6
python_requires = >= 3.8

[options.package_data]
pangocffi = VERSION, *.txt
Expand Down
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[tox]
envlist = py36, py37, py38, py39, py310
envlist = py38, py39, py310, py311, py312

[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py3120

[testenv]
passenv = TOXENV CI
passenv = TOXENV,CI
deps = -rrequirements.txt
commands =
coverage run --source pangocffi -m pytest -s

0 comments on commit 0292399

Please sign in to comment.