mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
python_requires
This commit is contained in:
parent
912340a35d
commit
3e05159ba6
2 changed files with 25 additions and 2 deletions
24
news/pyreq.rst
Normal file
24
news/pyreq.rst
Normal 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>
|
3
setup.py
3
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)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue