11# encoding: utf-8
2- from setuptools import setup
2+ try :
3+ from setuptools import setup
4+ except ImportError :
5+ # For Python 3.12+, setuptools is no longer in stdlib
6+ import sys
7+ print ("Error: setuptools is required but not found." )
8+ print ("Please install setuptools package using:" )
9+ print ("pip install setuptools" )
10+ sys .exit (1 )
311
412
513def get_description ():
@@ -20,12 +28,17 @@ def get_description():
2028 include_package_data = True ,
2129 zip_safe = False ,
2230 platforms = 'any' ,
23- install_requires = [ 'Flask>=0.11' ] ,
31+ python_requires = '>=3.8' ,
2432 classifiers = [
2533 'Environment :: Web Environment' ,
2634 'Intended Audience :: Developers' ,
2735 'Operating System :: OS Independent' ,
28- 'Programming Language :: Python' ,
36+ 'Programming Language :: Python :: 3' ,
37+ 'Programming Language :: Python :: 3.8' ,
38+ 'Programming Language :: Python :: 3.9' ,
39+ 'Programming Language :: Python :: 3.10' ,
40+ 'Programming Language :: Python :: 3.11' ,
41+ 'Programming Language :: Python :: 3.12' ,
2942 'Topic :: Internet :: WWW/HTTP :: Dynamic Content' ,
3043 'Topic :: Software Development :: Libraries :: Python Modules'
3144 ]
0 commit comments