Skip to content

Commit

Permalink
Don't build or test on Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Minaev authored and int19h committed Sep 12, 2023
1 parent cbd0c2a commit 4a03787
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 22 deletions.
6 changes: 0 additions & 6 deletions azure-pipelines/pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ jobs:

strategy:
matrix:
py37:
python.version: "3.7"
py38:
python.version: "3.8"
py39:
Expand Down Expand Up @@ -91,8 +89,6 @@ jobs:

strategy:
matrix:
py37:
python.version: "3.7"
py38:
python.version: "3.8"
py39:
Expand Down Expand Up @@ -121,8 +117,6 @@ jobs:

strategy:
matrix:
py37:
python.version: "3.7"
py38:
python.version: "3.8"
py39:
Expand Down
7 changes: 0 additions & 7 deletions azure-pipelines/templates/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@ steps:
- script: "python -m pip install tox"
displayName: "Setup Python packages"

# tox will automatically install the most recent version of setuptools to build the package.
# However, for Python 3.7, we want an older version of setuptools to avoid DeprecationWarning
# for pkg_resources getting triggered by test_gevent.
- script: 'python -m pip install -U "setuptools<66"'
displayName: "Install setuptools"
condition: eq(variables['python.version'], '3.7')

- pwsh: |
$toxEnv = '$(python.version)'
if (-not $toxEnv.startsWith('pypy')) {
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exclude = '''
'''

[tool.pyright]
pythonVersion = "3.7"
pythonVersion = "3.8"
include = ["src/**", "tests/**" ]
extraPaths = ["src/debugpy/_vendored/pydevd"]
ignore = ["src/debugpy/_vendored/pydevd", "src/debugpy/_version.py"]
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,13 @@ def tail_is(*suffixes):
project_urls={
"Source": "https://github.com/microsoft/debugpy",
},
python_requires=">=3.7",
python_requires=">=3.8",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Debuggers",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
Expand Down
10 changes: 4 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
[tox]
envlist = py{37,38,39,310,311,312}{,-cov}
envlist = py{38,39,310,311,312}{,-cov}

[testenv]
deps =
-rtests/requirements.txt
py37{,-cov}: setuptools<66
deps = -rtests/requirements.txt
passenv = DEBUGPY_LOG_DIR,DEBUGPY_TESTS_FULL
setenv =
DEBUGPY_TEST=1
commands =
py{37,38,39}-!cov: python -m pytest {posargs}
py{37,38,39}-cov: python -m pytest --cov --cov-append --cov-config=.coveragerc {posargs}
py{38,39}-!cov: python -m pytest {posargs}
py{38,39}-cov: python -m pytest --cov --cov-append --cov-config=.coveragerc {posargs}
py{310,311,312}-!cov: python -Xfrozen_modules=off -m pytest {posargs}
py{310,311,312}-cov: python -Xfrozen_modules=off -m pytest --cov --cov-append --cov-config=.coveragerc {posargs}

0 comments on commit 4a03787

Please sign in to comment.