Skip to content

Commit 7806798

Browse files
authored
Merge pull request #2034 from AndreMiras/feature/drop-python3.9
🔥 Drop EOL Python 3.8 and 3.9 support
2 parents 333f610 + c891a1f commit 7806798

3 files changed

Lines changed: 5 additions & 28 deletions

File tree

.github/workflows/test_python.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ jobs:
77
fail-fast: false
88
matrix:
99
python:
10-
- '3.8'
11-
- '3.9'
1210
- '3.10'
1311
- '3.11'
1412
- '3.12'

docs/source/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ for installing Buildozer on Ubuntu or on MacOS, also there are special notes for
1212
be used (for example Colab) but there are no instructions. The iOS section
1313
contains instructions for installing kivy-ios on MacOS.
1414

15-
Buildozer is tested on Python 3.8 and above.
15+
Buildozer is tested on Python 3.10 and above.
1616

1717
Targeting Android
1818
-----------------

setup.py

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,16 @@
22
Buildozer
33
'''
44

5-
import sys
65
from setuptools import setup
76
from os.path import dirname, join
8-
import codecs
97
import os
108
import re
11-
import io
129

1310
here = os.path.abspath(os.path.dirname(__file__))
1411

15-
CURRENT_PYTHON = sys.version_info[:2]
16-
REQUIRED_PYTHON = (3, 8)
17-
18-
# This check and everything above must remain compatible with Python 2.7.
19-
if CURRENT_PYTHON < REQUIRED_PYTHON:
20-
sys.stderr.write("""
21-
==========================
22-
Unsupported Python version
23-
==========================
24-
This version of buildozer requires Python {}.{}, but you're trying to
25-
install it on Python {}.{}.
26-
""".format(*(REQUIRED_PYTHON + CURRENT_PYTHON)))
27-
sys.exit(1)
28-
2912

3013
def find_version(*file_paths):
31-
# Open in Latin-1 so that we avoid encoding errors.
32-
# Use codecs.open for Python 2 compatibility
33-
with codecs.open(os.path.join(here, *file_paths), 'r', 'utf-8') as f:
14+
with open(os.path.join(here, *file_paths), encoding='utf-8') as f:
3415
version_file = f.read()
3516

3617
# The version line must have the form
@@ -43,9 +24,9 @@ def find_version(*file_paths):
4324

4425

4526
curdir = dirname(__file__)
46-
with io.open(join(curdir, "README.md"), encoding="utf-8") as fd:
27+
with open(join(curdir, "README.md"), encoding="utf-8") as fd:
4728
readme = fd.read()
48-
with io.open(join(curdir, "CHANGELOG.md"), encoding="utf-8") as fd:
29+
with open(join(curdir, "CHANGELOG.md"), encoding="utf-8") as fd:
4930
changelog = fd.read()
5031

5132
setup(
@@ -86,14 +67,12 @@ def find_version(*file_paths):
8667
'docs': ['sphinx', 'sphinxawesome_theme>=5.3,<6'],
8768
'ios': ['kivy-ios'],
8869
},
89-
python_requires='>=3.8',
70+
python_requires='>=3.10',
9071
classifiers=[
9172
'Development Status :: 5 - Production/Stable',
9273
'Intended Audience :: Developers',
9374
'Topic :: Software Development :: Build Tools',
9475
'Programming Language :: Python :: 3',
95-
'Programming Language :: Python :: 3.8',
96-
'Programming Language :: Python :: 3.9',
9776
'Programming Language :: Python :: 3.10',
9877
'Programming Language :: Python :: 3.11',
9978
'Programming Language :: Python :: 3.12',

0 commit comments

Comments
 (0)