Skip to content

Commit 20ff560

Browse files
authored
Update requirements to remove python version restrictions. (#19061)
* Update requirements to remove python version restrictions. * Fix test_functional.py * More test fixes * Scope windows tests to windows platform * delete unused requirements file
1 parent 5a322c0 commit 20ff560

File tree

7 files changed

+410
-447
lines changed

7 files changed

+410
-447
lines changed

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
},
4747
"typescript.tsdk": "./node_modules/typescript/lib", // we want to use the TS server from our node_modules folder to control its version
4848
"python.linting.enabled": false,
49-
"python.testing.promptToConfigure": false,
5049
"python.formatting.provider": "black",
50+
"python.sortImports.args": ["--profile", "black"],
5151
"typescript.preferences.quoteStyle": "single",
5252
"javascript.preferences.quoteStyle": "single",
5353
"typescriptHero.imports.stringQuoteStyle": "'",

build/conda-functional-requirements.txt

Lines changed: 0 additions & 27 deletions
This file was deleted.

build/test-requirements.txt

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,23 @@
22
# but flake8 has a tighter pinning.
33
flake8
44
autopep8
5-
bandit ; python_version >= '3.5'
6-
black ; python_version > '2.7'
5+
bandit
6+
black
77
yapf
8-
pylint ; python_version > '2.7'
8+
pylint
99
pycodestyle
1010
pydocstyle
11-
prospector>=1.6.0 ; python_version > '2.7'
12-
pytest<7.0.0 ; python_version > '2.7'
11+
prospector
12+
pytest
1313
flask
14-
fastapi ; python_version > '2.7'
15-
uvicorn ; python_version > '2.7'
14+
fastapi
15+
uvicorn
1616
django
1717
isort
1818

1919
# Integrated TensorBoard tests
20-
tensorboard ; python_version > '2.7'
21-
torch-tb-profiler ; python_version > '2.7'
22-
23-
# Python 2.7 support.
24-
pytest==4.6.9 ; python_version == '2.7'
25-
py==1.10.0 ; python_version == '2.7' # via pytest 4
26-
pathlib2>=2.2.0 ; python_version == '2.7' # via pytest 4
27-
prospector==1.2.0 ; python_version == '2.7'
28-
wrapt==1.14.0 ; python_version == '2.7'
20+
tensorboard
21+
torch-tb-profiler
2922

3023
# extension build tests
3124
freezegun

news/3 Code Health/19060.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update requirements to remove python 2.7 version restrictions.

pythonFiles/testing_tools/adapter/util.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from io import StringIO
99
except ImportError:
1010
from StringIO import StringIO # 2.7
11+
1112
import os
1213
import os.path
1314
import sys
@@ -63,6 +64,7 @@ def group_attr_names(attrnames):
6364
BASENAME = _os_path.basename
6465
IS_ABS_PATH = _os_path.isabs
6566
PATH_JOIN = _os_path.join
67+
ABS_PATH = _os_path.abspath
6668

6769

6870
def fix_path(

0 commit comments

Comments
 (0)