Skip to content

Commit 75329b3

Browse files
committed
Update setup script. Type ignore is no longer needed with types packages.
1 parent 0ab6a34 commit 75329b3

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
- name: Checkout submodules
5858
run: git submodule update --init --recursive --depth 1
5959
- name: Install Python dependencies
60-
run: pip install mypy pytest types-tabulate -r requirements.txt
60+
run: pip install mypy pytest -r requirements.txt
6161
- name: Fake initialize package
6262
run: |
6363
echo '__version__ = ""' > tcod/version.py

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ cffi~=1.13
22
numpy>=1.20.3
33
pycparser>=2.14
44
setuptools>=36.0.1
5+
types-setuptools
6+
types-tabulate
57
typing_extensions

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import warnings
1010
from typing import List
1111

12-
from setuptools import setup # type: ignore
12+
from setuptools import setup
1313

1414
SDL_VERSION_NEEDED = (2, 0, 5)
1515

@@ -147,6 +147,7 @@ def check_sdl_version() -> None:
147147
"Programming Language :: Python :: 3.7",
148148
"Programming Language :: Python :: 3.8",
149149
"Programming Language :: Python :: 3.9",
150+
"Programming Language :: Python :: 3.10",
150151
"Programming Language :: Python :: Implementation :: CPython",
151152
"Programming Language :: Python :: Implementation :: PyPy",
152153
"Topic :: Games/Entertainment",

0 commit comments

Comments
 (0)