diff --git a/news/pyreq.rst b/news/pyreq.rst new file mode 100644 index 000000000..5744fbe6b --- /dev/null +++ b/news/pyreq.rst @@ -0,0 +1,24 @@ +**Added:** + +* + +**Changed:** + +* We no longer manually check the Python version in ``setup.py``, + but instead use the setuptools ``python_requires`` feature. + +**Deprecated:** + +* + +**Removed:** + +* + +**Fixed:** + +* + +**Security:** + +* diff --git a/setup.py b/setup.py index 277acb8aa..3be5ebba4 100755 --- a/setup.py +++ b/setup.py @@ -325,8 +325,6 @@ if HAVE_SETUPTOOLS: def main(): """The main entry point.""" - if sys.version_info[:2] < (3, 5): - sys.exit("xonsh currently requires Python 3.5+") try: if "--name" not in sys.argv: logo_fname = os.path.join(os.path.dirname(__file__), "logo.txt") @@ -405,6 +403,7 @@ def main(): "linux": ["distro"], "proctitle": ["setproctitle"], } + skw["python_requires"] = ">=3.5" setup(**skw)