chore: drop py3.7 (#4770)

This commit is contained in:
Noorhteen Raja NJ 2022-04-26 18:30:31 +05:30 committed by GitHub
parent e0a0394bfc
commit 73a880f76a
Failed to generate hash of commit
4 changed files with 25 additions and 7 deletions

View file

@ -25,7 +25,7 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu-latest, macOS-latest, windows-latest ]
python-version: [ "3.7", "3.8", "3.9","3.10" ]
python-version: [ "3.8", "3.9","3.10" ]
name: Test Python ${{ matrix.python-version }} ${{ matrix.os }}
steps:
- uses: actions/checkout@v2

View file

@ -0,0 +1,23 @@
**Added:**
* <news item>
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* Removed Python 3.7 support following `NEP0029 <https://numpy.org/neps/nep-0029-deprecation_policy.html>`_
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -383,7 +383,7 @@ def main():
"gnureadline; platform_system=='Darwin'",
],
}
skw["python_requires"] = ">=3.7"
skw["python_requires"] = ">=3.8"
setup(**skw)

View file

@ -108,11 +108,6 @@ def token_map():
tm[NEWLINE] = "NEWLINE"
tm[INDENT] = "INDENT"
tm[DEDENT] = "DEDENT"
if PYTHON_VERSION_INFO < (3, 7, 0):
from xonsh.tokenize import ASYNC, AWAIT
tm[ASYNC] = "ASYNC"
tm[AWAIT] = "AWAIT"
if HAS_WALRUS:
tm[(OP, ":=")] = "COLONEQUAL"
# python 3.10 (backwards and name token compatible) tokens