diff --git a/azure-pipelines/pipelines.yaml b/azure-pipelines/pipelines.yaml index 1a4726a6a..e145d07c0 100644 --- a/azure-pipelines/pipelines.yaml +++ b/azure-pipelines/pipelines.yaml @@ -61,8 +61,6 @@ jobs: strategy: matrix: - py37: - python.version: "3.7" py38: python.version: "3.8" py39: @@ -91,8 +89,6 @@ jobs: strategy: matrix: - py37: - python.version: "3.7" py38: python.version: "3.8" py39: @@ -121,8 +117,6 @@ jobs: strategy: matrix: - py37: - python.version: "3.7" py38: python.version: "3.8" py39: diff --git a/azure-pipelines/templates/run_tests.yml b/azure-pipelines/templates/run_tests.yml index 04170a165..a853e08e0 100644 --- a/azure-pipelines/templates/run_tests.yml +++ b/azure-pipelines/templates/run_tests.yml @@ -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')) { diff --git a/pyproject.toml b/pyproject.toml index d40d09e99..a6fc072f2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"] diff --git a/setup.py b/setup.py index f3e04cf35..0bb4f00ca 100644 --- a/setup.py +++ b/setup.py @@ -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", diff --git a/tox.ini b/tox.ini index ee1b8c361..cca61852c 100644 --- a/tox.ini +++ b/tox.ini @@ -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}