Skip to content

Commit 5f508f7

Browse files
committed
Drop Python 3.5 support.
1 parent ce0d6fd commit 5f508f7

File tree

14 files changed

+33
-33
lines changed

14 files changed

+33
-33
lines changed

.github/workflows/python-package-macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
env:
4949
TCOD_TAG: ${{ github.event.release.tag_name }}
5050
run: |
51-
python setup.py sdist develop bdist_wheel --py-limited-api=cp35
51+
python setup.py sdist develop bdist_wheel --py-limited-api=cp36
5252
- name: Test with pytest
5353
run: |
5454
pytest --no-window --cov-report=xml

.github/workflows/python-package.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
4444
flake8 tcod/ --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
4545
- name: Check type hints with MyPy
46+
if: ${{ matrix.python-version != '3.6' }}
4647
run: |
4748
mypy tcod/
4849
- name: Check formatting with Black

CHANGELOG.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ v2.0.0
88

99
Unreleased
1010
------------------
11+
Removed
12+
- Python 3.5 is no longer supported.
1113

1214
11.19.3 - 2021-01-07
1315
--------------------

appveyor.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,12 @@ environment:
1010
DEPLOY_ONLY: false
1111
EXTRA_SETUP_ARGS: ""
1212
matrix:
13-
- PYTHON: C:\Python35-x64\python.exe
14-
platform: x64
15-
EXTRA_SETUP_ARGS: "--py-limited-api cp35"
16-
- PYTHON: C:\Python35\python.exe
17-
platform: Any CPU
18-
EXTRA_SETUP_ARGS: "--py-limited-api cp35"
1913
- PYTHON: C:\Python36-x64\python.exe
2014
platform: x64
21-
NO_DEPLOY: true
15+
EXTRA_SETUP_ARGS: "--py-limited-api cp36"
16+
- PYTHON: C:\Python36\python.exe
17+
platform: Any CPU
18+
EXTRA_SETUP_ARGS: "--py-limited-api cp36"
2219
- PYTHON: C:\Python37-x64\python.exe
2320
platform: x64
2421
NO_DEPLOY: true

build_libtcod.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def unpack_sdl2(version: str) -> str:
207207

208208
libraries = []
209209
library_dirs = []
210-
define_macros = [("Py_LIMITED_API", 0x03050000)] # type: List[Tuple[str, Any]]
210+
define_macros = [("Py_LIMITED_API", 0x03060000)] # type: List[Tuple[str, Any]]
211211

212212
sources += walk_sources("tcod/", cpp=True)
213213
sources += walk_sources("libtcod/src/libtcod/", cpp=False)

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ requires = [
88

99
[tool.black]
1010
line-length = 79
11-
py36 = false
12-
target-version = ["py35"]
11+
py36 = true
12+
target-version = ["py36"]
1313

1414
[tool.isort]
1515
profile= "black"
16-
py_version = "35"
16+
py_version = "36"
1717
skip_gitignore = true
1818
line_length = 79

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
cffi~=1.13
2-
numpy~=1.10,!=1.16.3;
2+
numpy>=1.20.0rc1; python_version >= '3.7'
3+
numpy>=1.19.5; python_version <= '3.6'
34
pycparser>=2.14
45
setuptools>=36.0.1
56
typing_extensions

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ filterwarnings =
1414
ignore = E203 W503
1515

1616
[mypy]
17-
python_version = 3.5
17+
python_version = 3.6
1818
warn_unused_configs = True
1919
disallow_subclassing_any = True
2020
disallow_any_generics = True

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def check_sdl_version():
136136
py_modules=["libtcodpy"],
137137
packages=["tdl", "tcod"],
138138
package_data={"tdl": ["*.png"], "tcod": get_package_data()},
139-
python_requires=">=3.5",
139+
python_requires=">=3.6",
140140
install_requires=[
141141
"cffi~=1.13", # Also required by pyproject.toml.
142142
"numpy~=1.10" if not is_pypy else "",
@@ -157,7 +157,6 @@ def check_sdl_version():
157157
"Operating System :: MacOS :: MacOS X",
158158
"Operating System :: Microsoft :: Windows",
159159
"Programming Language :: Python :: 3",
160-
"Programming Language :: Python :: 3.5",
161160
"Programming Language :: Python :: 3.6",
162161
"Programming Language :: Python :: 3.7",
163162
"Programming Language :: Python :: 3.8",

tcod/console.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def ch(self) -> np.ndarray:
230230
Index this array with ``console.ch[i, j] # order='C'`` or
231231
``console.ch[x, y] # order='F'``.
232232
"""
233-
return self._tiles["ch"].T if self._order == "F" else self._tiles["ch"]
233+
return self._tiles["ch"].T if self._order == "F" else self._tiles["ch"] # type: ignore
234234

235235
@property
236236
def tiles(self) -> np.ndarray:

0 commit comments

Comments
 (0)