22Buildozer
33'''
44
5- import sys
65from setuptools import setup
76from os .path import dirname , join
8- import codecs
97import os
108import re
11- import io
129
1310here = 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
3013def 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
4526curdir = 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
5132setup (
@@ -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