Skip to content

Commit cec7526

Browse files
committed
support 3.8 or greater
1 parent 4816b87 commit cec7526

File tree

3 files changed

+11
-22
lines changed

3 files changed

+11
-22
lines changed

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-20.04
1212
strategy:
1313
matrix:
14-
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
14+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1515

1616
steps:
1717
- name: Checkout repo

setup.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
author_email=tmdbapis.__email__,
2525
license=tmdbapis.__license__,
2626
packages=find_packages(),
27-
python_requires=">=3.6",
27+
python_requires=">=3.8",
2828
keywords=["tmdbapis", "tmdbapi", "tmdb", "wrapper", "api"],
2929
install_requires=[
3030
"requests"
@@ -40,8 +40,6 @@
4040
"Intended Audience :: Developers",
4141
"Topic :: Software Development :: Libraries",
4242
"Programming Language :: Python",
43-
"Programming Language :: Python :: 3.6",
44-
"Programming Language :: Python :: 3.7",
4543
"Programming Language :: Python :: 3.8",
4644
"Programming Language :: Python :: 3.9",
4745
"Programming Language :: Python :: 3.10",

tests/test_api.py

+9-18
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,7 @@
2626
local = os.environ["LOCAL"] == "True"
2727
py_version = f"{sys.version_info.major}.{sys.version_info.minor}"
2828

29-
if py_version in ["3.10", "3.11", "3.12"] and not local:
30-
time.sleep(300)
31-
3229
movie_ids = {
33-
"3.6": {"id": 11, "name": "Star Wars"},
34-
"3.7": {"id": 1891, "name": "The Empire Strikes Back"},
3530
"3.8": {"id": 1892, "name": "Return of the Jedi"},
3631
"3.9": {"id": 1893, "name": "Star Wars: Episode I - The Phantom Menace"},
3732
"3.10": {"id": 1894, "name": "Star Wars: Episode II - Attack of the Clones"},
@@ -40,23 +35,19 @@
4035
}
4136

4237
show_ids = {
43-
"3.6": {"id": 4194, "name": "Star Wars: The Clone Wars"},
44-
"3.7": {"id": 105971, "name": "Star Wars: The Bad Batch"},
45-
"3.8": {"id": 60554, "name": "Star Wars Rebels"},
46-
"3.9": {"id": 203085, "name": "Star Wars: Tales of the Jedi"},
47-
"3.10": {"id": 114478, "name": "Star Wars: Visions"},
48-
"3.11": {"id": 79093, "name": "Star Wars Resistance"},
38+
"3.8": {"id": 4194, "name": "Star Wars: The Clone Wars"},
39+
"3.9": {"id": 105971, "name": "Star Wars: The Bad Batch"},
40+
"3.10": {"id": 60554, "name": "Star Wars Rebels"},
41+
"3.11": {"id": 203085, "name": "Star Wars: Tales of the Jedi"},
4942
"3.12": {"id": 83867, "name": "Star Wars: Andor"},
5043
}
5144

5245
episode_ids = {
53-
"3.6": {"id": 1, "name": "Ambush"},
54-
"3.7": {"id": 2, "name": "Rising Malevolence"},
55-
"3.8": {"id": 3, "name": "Shadow of Malevolence"},
56-
"3.9": {"id": 4, "name": "Destroy Malevolence"},
57-
"3.10": {"id": 5, "name": "Rookies"},
58-
"3.11": {"id": 6, "name": "Downfall of a Droid"},
59-
"3.12": {"id": 7, "name": "Duel of the Droids"},
46+
"3.8": {"id": 1, "name": "Ambush"},
47+
"3.9": {"id": 2, "name": "Rising Malevolence"},
48+
"3.10": {"id": 3, "name": "Shadow of Malevolence"},
49+
"3.11": {"id": 4, "name": "Destroy Malevolence"},
50+
"3.12": {"id": 5, "name": "Rookies"},
6051
}
6152

6253
class APITests(unittest.TestCase):

0 commit comments

Comments
 (0)