Skip to content

Commit fec9686

Browse files
linesightclaude
andcommitted
tools: drop Python 2.7/3.4-3.9 remnants; fix download_cef copyright year
- installer/cefpython3.__init__.py: load only Python 3.10-3.14 modules (removed the 2.7/3.4-3.9 dispatch branches; updated example paths) - installer/cefpython3.setup.py: drop unsupported Python classifiers - download_cef.py: copyright year 2017 -> 2026 (new file) Addresses review feedback on PR cztomczak#691 (cztomczak/cefpython). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 3ae029a commit fec9686

3 files changed

Lines changed: 4 additions & 32 deletions

File tree

tools/download_cef.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2017 CEF Python, see the Authors file.
1+
# Copyright (c) 2026 CEF Python, see the Authors file.
22
# All rights reserved. Licensed under BSD 3-clause license.
33
# Project website: https://github.com/cztomczak/cefpython
44

tools/installer/cefpython3.__init__.py

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717

1818
# If package was installed using PIP or setup.py then package
1919
# dir is here:
20-
# /usr/local/lib/python2.7/dist-packages/cefpython3/
20+
# /usr/local/lib/python3.10/dist-packages/cefpython3/
2121

2222
# If this is a debian package then package_dir returns:
23-
# /usr/lib/pymodules/python2.7/cefpython3
23+
# /usr/lib/pymodules/python3.10/cefpython3
2424
# The above path consists of symbolic links to the real directory:
2525
# /usr/share/pyshared/cefpython3
2626

@@ -49,28 +49,7 @@
4949
ctypes.CDLL(libcef, ctypes.RTLD_GLOBAL)
5050

5151
# Load the cefpython module for given Python version
52-
if sys.version_info[:2] == (2, 7):
53-
# noinspection PyUnresolvedReferences
54-
from . import cefpython_py27 as cefpython
55-
elif sys.version_info[:2] == (3, 4):
56-
# noinspection PyUnresolvedReferences
57-
from . import cefpython_py34 as cefpython
58-
elif sys.version_info[:2] == (3, 5):
59-
# noinspection PyUnresolvedReferences
60-
from . import cefpython_py35 as cefpython
61-
elif sys.version_info[:2] == (3, 6):
62-
# noinspection PyUnresolvedReferences
63-
from . import cefpython_py36 as cefpython
64-
elif sys.version_info[:2] == (3, 7):
65-
# noinspection PyUnresolvedReferences
66-
from . import cefpython_py37 as cefpython
67-
elif sys.version_info[:2] == (3, 8):
68-
# noinspection PyUnresolvedReferences
69-
from . import cefpython_py38 as cefpython
70-
elif sys.version_info[:2] == (3, 9):
71-
# noinspection PyUnresolvedReferences
72-
from . import cefpython_py39 as cefpython
73-
elif sys.version_info[:2] == (3, 10):
52+
if sys.version_info[:2] == (3, 10):
7453
# noinspection PyUnresolvedReferences
7554
from . import cefpython_py310 as cefpython
7655
elif sys.version_info[:2] == (3, 11):

tools/installer/cefpython3.setup.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,6 @@ def main():
143143
"Operating System :: MacOS :: MacOS X",
144144
"Operating System :: Microsoft :: Windows",
145145
"Operating System :: POSIX :: Linux",
146-
"Programming Language :: Python :: 2.7",
147-
"Programming Language :: Python :: 3.4",
148-
"Programming Language :: Python :: 3.5",
149-
"Programming Language :: Python :: 3.6",
150-
"Programming Language :: Python :: 3.7",
151-
"Programming Language :: Python :: 3.8",
152-
"Programming Language :: Python :: 3.9",
153146
"Programming Language :: Python :: 3.10",
154147
"Programming Language :: Python :: 3.11",
155148
"Programming Language :: Python :: 3.12",

0 commit comments

Comments
 (0)