11#!/usr/bin/env python
2- # -*- coding: utf-8 -*-
32#
43# Copyright 2015-2019 by Hartmut Goebel <h.goebel@crazy-compilers.com>
54#
2019#
2120
2221from setuptools import setup
23- import codecs
2422import re
25- import sys
2623
2724
2825def get_version (filename ):
@@ -37,14 +34,11 @@ def get_version(filename):
3734
3835
3936def read (filename ):
40- try :
41- return unicode (codecs .open (filename , encoding = 'utf-8' ).read ())
42- except NameError :
43- return open (filename , 'r' , encoding = 'utf-8' ).read ()
37+ return open (filename , encoding = 'utf-8' ).read ()
38+
39+
4440long_description = '\n \n ' .join ([read ('README.rst' ),
4541 read ('CHANGES.rst' )])
46- if sys .version_info < (3 ,):
47- long_description = long_description .encode ('utf-8' )
4842
4943
5044setup (
@@ -69,15 +63,16 @@ def read(filename):
6963 "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)" ,
7064 "Operating System :: OS Independent" ,
7165 "Programming Language :: Python" ,
72- "Programming Language :: Python :: 2" ,
73- "Programming Language :: Python :: 2.7" ,
7466 "Programming Language :: Python :: 3" ,
75- "Programming Language :: Python :: 3.5 " ,
67+ "Programming Language :: Python :: 3 :: Only " ,
7668 "Programming Language :: Python :: 3.6" ,
7769 "Programming Language :: Python :: 3.7" ,
70+ "Programming Language :: Python :: 3.8" ,
71+ "Programming Language :: Python :: 3.9" ,
72+ "Programming Language :: Python :: 3.10" ,
7873 "Topic :: Software Development" ,
7974 "Topic :: Utilities" ,
8075 ],
81- python_requires = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.* " ,
76+ python_requires = ">=3.6 " ,
8277 zip_safe = False
8378)
0 commit comments