Skip to content

Commit

Permalink
Require Python 3.6 or later.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Sep 23, 2021
1 parent 536d46c commit 6515274
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 25 deletions.
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
[build-system]
# pin to Setuptools prior to 58 for use_2to3 support
requires = ["setuptools<58"]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ formats = bztar,zip
# Folders 'pytest' unit testing framework should avoid when collecting test
# cases to run, e.g. internal build & version control system folders.
norecursedirs=.git .hg .svn build dist

[options]
python_requires = >=3.6
24 changes: 1 addition & 23 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ def read_python_code(filename):
# Load the suds library version information directly into this module without
# having to import the whole suds library itself. Importing the suds package
# would have caused problems like the following:
# * Forcing the imported package module to be Python 3 compatible without any
# lib2to3 fixers first being run on it (since such fixers get run only
# later as a part of the setup procedure).
# * Making the setup module depend on the package module's dependencies, thus
# forcing the user to install them manually (since the setup procedure that
# is supposed to install them automatically will not be able to run unless
Expand All @@ -87,17 +84,6 @@ def read_python_code(filename):
# distutils.setup() 'obsoletes' parameter not introduced until Python 2.5.
extra_setup_params["obsoletes"] = ["suds"]

if sys.version_info >= (3, 0):
extra_setup_params["use_2to3"] = True

# Teach Python's urllib lib2to3 fixer that the old urllib2.__version__
# data member is now stored in the urllib.request module.
import lib2to3.fixes.fix_urllib
for x in lib2to3.fixes.fix_urllib.MAPPING["urllib2"]:
if x[0] == "urllib.request":
x[1].append("__version__")
break;

with open('README.rst') as strm:
long_description = strm.read()

Expand Down Expand Up @@ -172,16 +158,8 @@ def run_tests(self):
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.4",
"Programming Language :: Python :: 2.5",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.0",
"Programming Language :: Python :: 3.1",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Internet"],

# PEP-314 states that if possible license & platform should be specified
Expand Down

0 comments on commit 6515274

Please sign in to comment.