Merge pull request #3124 from xonsh/pyreq

python_requires
This commit is contained in:
Morten Enemark Lund 2019-05-11 15:22:39 +02:00 committed by GitHub
commit 2bb5734395
Failed to generate hash of commit
2 changed files with 25 additions and 2 deletions

24
news/pyreq.rst Normal file
View file

@ -0,0 +1,24 @@
**Added:**
* <news item>
**Changed:**
* We no longer manually check the Python version in ``setup.py``,
but instead use the setuptools ``python_requires`` feature.
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -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)