5
5
6
6
# In all cases, whenever we install an azure-* package from a requirement (read: not a specific file), the only source will be from the dev feed.
7
7
# once we've downloaded these dependencies, only then do we install other packages from pypi.
8
-
9
- # INSTALLER SELECTION:
10
- # You can control which pip implementation is used by setting the TOX_PIP_IMPL environment variable:
11
- # - TOX_PIP_IMPL=pip (default) - Uses standard pip for package installation
12
- # - TOX_PIP_IMPL=uv - Uses uv pip for faster package installation
13
- #
14
- # Example usage:
15
- # tox -e pylint # Use standard pip (default)
16
- # TOX_PIP_IMPL=pip tox -e pylint # Use standard pip explicitly
17
- # TOX_PIP_IMPL=uv tox -e pylint # Use uv for faster installation
18
-
19
8
[tox]
20
9
requires =
21
10
# Ensure that we're running a version of tox compatible with this config
@@ -24,16 +13,13 @@ requires=
24
13
tox>=4.4.10
25
14
# note that this envlist is the default set of environments that will run if a target environment is not selected.
26
15
envlist = whl,sdist
27
- # Environment variable controlled installer configuration
28
- # Set TOX_PIP_IMPL=uv pip to use uv pip, or TOX_PIP_IMPL=pip (default) to use standard pip
29
- pip_impl = {env:TOX_PIP_IMPL:python -m pip}
30
- pip_command = {[tox]pip_impl}
31
16
32
17
33
18
[tools]
34
19
deps =
35
20
-r {repository_root}/eng/test_tools.txt
36
21
22
+
37
23
[coverage:paths]
38
24
source =
39
25
azure
@@ -55,46 +41,43 @@ deps =
55
41
56
42
[packaging]
57
43
pkgs =
58
- wheel ==0.45.1
59
- packaging ==24.2
60
- urllib3 ==2.2.3
61
- tomli ==2.2.1
62
- build ==1.2.2.post1
44
+ wheel ==0.43.0
45
+ packaging ==23.1
46
+ urllib3 ==1.26.15
47
+ tomli ==2.0.1
63
48
64
49
[pytest]
65
- ignore_args =--ignore =.tox --ignore =build --ignore =.eggs -- ignore =samples
50
+ ignore_args =--ignore =.tox --ignore =build --ignore =.eggs
66
51
default_args = -rsfE --junitxml ={tox_root}/test-junit-{envname}.xml --verbose --cov-branch --durations =10 --ignore =azure {[pytest]ignore_args} --log-cli-level ={pytest_log_level}
67
52
68
53
[testenv]
69
- uv_seed = true
70
54
parallel_show_output =True
71
55
skip_install = true
72
56
skipsdist = true
73
57
usedevelop = false
74
58
passenv = *
75
59
download =true
76
- # Allow both pip and uv as external commands since we support both via TOX_PIP_IMPL
77
- allowlist_externals = uv,pip
78
60
requires =
79
61
{[packaging]pkgs}
80
62
setenv =
81
63
SPHINX_APIDOC_OPTIONS =members,undoc-members,inherited-members
64
+ PIP_EXTRA_INDEX_URL =https://pypi.python.org/simple
82
65
PROXY_URL =http://localhost:5000
83
- VIRTUALENV_WHEEL =0.45.1
66
+ VIRTUALENV_WHEEL =0.37.0
84
67
VIRTUALENV_PIP =24.0
85
- VIRTUALENV_SETUPTOOLS =75.3.2
86
- PIP_EXTRA_INDEX_URL =https://pypi.python.org/simple
68
+ VIRTUALENV_SETUPTOOLS =67.6.0
87
69
deps = {[base]deps}
88
- install_command = {[tox]pip_command} install {opts} {packages} --cache-dir {tox_root}/../.tox_pip_cache_{envname}
70
+ install_command = python -m pip install {opts} {packages} --cache-dir {tox_root}/../.tox_pip_cache_{envname}
89
71
commands =
72
+ python -m pip --version
90
73
python {repository_root}/eng/tox/create_package_and_install.py -d {envtmpdir} -p {tox_root} -w {envtmpdir}
74
+ python -m pip freeze
91
75
pytest {[pytest]default_args} {posargs} {tox_root}
92
- python {repository_root}/eng/tox/run_coverage.py -t {tox_root} -r {repository_root}
93
76
94
77
95
78
[testenv:pylint]
96
79
description =Lints a package with pylint (version {[testenv:pylint]pylint_version})
97
- pylint_version =3.2.7
80
+ pylint_version =3.0.3
98
81
skipsdist = true
99
82
skip_install = true
100
83
usedevelop = false
@@ -107,8 +90,8 @@ setenv =
107
90
deps =
108
91
-rdev_requirements.txt
109
92
commands =
110
- {[tox]pip_command} install pylint =={[testenv:pylint]pylint_version}
111
- {[tox]pip_command} install azure-pylint-guidelines-checker ==0.5.6 --index-url =" https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/"
93
+ python -m pip install pylint =={[testenv:pylint]pylint_version}
94
+ python -m pip install azure-pylint-guidelines-checker ==0.3.1 --index-url =" https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/"
112
95
python {repository_root}/eng/tox/create_package_and_install.py \
113
96
-d {envtmpdir}/dist \
114
97
-p {tox_root} \
@@ -118,7 +101,7 @@ commands =
118
101
119
102
[testenv:next-pylint]
120
103
description =Lints a package with pylint (version {[testenv:next-pylint]pylint_version})
121
- pylint_version =3.3.6
104
+ pylint_version =3.1.0
122
105
skipsdist = true
123
106
skip_install = true
124
107
usedevelop = false
@@ -132,8 +115,8 @@ deps =
132
115
-rdev_requirements.txt
133
116
PyGitHub>=1.59.0
134
117
commands =
135
- {[tox]pip_command} install pylint =={[testenv:next-pylint]pylint_version}
136
- {[tox]pip_command} install azure-pylint-guidelines-checker ==0.5.6 --index-url =" https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/"
118
+ python -m pip install pylint =={[testenv:next-pylint]pylint_version}
119
+ python -m pip install azure-pylint-guidelines-checker ==0.4.1 --index-url =" https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/"
137
120
python {repository_root}/eng/tox/create_package_and_install.py \
138
121
-d {envtmpdir}/dist \
139
122
-p {tox_root} \
@@ -162,7 +145,7 @@ commands =
162
145
163
146
[testenv:mypy]
164
147
description =Typechecks a package with mypy (version {[testenv:mypy]mypy_version})
165
- mypy_version =1.14.1
148
+ mypy_version =1.8.0
166
149
skipsdist = true
167
150
skip_install = true
168
151
usedevelop = true
@@ -187,7 +170,7 @@ commands =
187
170
188
171
[testenv:next-mypy]
189
172
description =Typechecks a package with the latest version of mypy
190
- mypy_version =1.14.1
173
+ mypy_version =1.9.0
191
174
skipsdist = true
192
175
skip_install = true
193
176
usedevelop = true
@@ -214,7 +197,7 @@ commands =
214
197
215
198
[testenv:pyright]
216
199
description =Typechecks a package with pyright (version {[testenv:pyright]pyright_version})
217
- pyright_version =1.1.391
200
+ pyright_version =1.1.350
218
201
skipsdist = true
219
202
skip_install = true
220
203
usedevelop = true
@@ -236,7 +219,7 @@ commands =
236
219
237
220
[testenv:next-pyright]
238
221
description =Typechecks a package with the latest version of static type-checker pyright
239
- pyright_version =1.1.391
222
+ pyright_version =1.1.359
240
223
skipsdist = true
241
224
skip_install = true
242
225
usedevelop = true
@@ -288,10 +271,10 @@ setenv =
288
271
{[testenv]setenv}
289
272
PROXY_URL =http://localhost:5004
290
273
commands =
291
- - {[tox]pip_command} uninstall aiohttp --yes
274
+ - python -m pip uninstall aiohttp --yes
292
275
python {repository_root}/eng/tox/create_package_and_install.py -d {envtmpdir} -p {tox_root} -w {envtmpdir}
293
276
python {repository_root}/eng/tox/try_import.py aiohttp -p {tox_root}
294
- {[tox]pip_command} freeze
277
+ python -m pip freeze
295
278
pytest {[pytest]default_args} --ignore-glob =' *async*.py' {posargs} --no-cov {tox_root}
296
279
297
280
@@ -313,7 +296,7 @@ commands =
313
296
-p {tox_root} \
314
297
-w {envtmpdir} \
315
298
--package-type sdist
316
- {[tox]pip_command} freeze
299
+ python -m pip freeze
317
300
pytest {posargs} --no-cov {[pytest]ignore_args} {tox_root}
318
301
319
302
@@ -341,9 +324,9 @@ setenv =
341
324
PROXY_URL =http://localhost:5007
342
325
deps =
343
326
{[base]deps}
344
- sphinx ==8 .2.0
345
- sphinx_rtd_theme ==3.0.2
346
- myst_parser ==4 .0.1
327
+ sphinx ==6 .2.1
328
+ sphinx_rtd_theme ==1. 3.0
329
+ myst_parser ==2 .0.0
347
330
sphinxcontrib-jquery ==4.1
348
331
commands =
349
332
python {repository_root}/eng/tox/create_package_and_install.py \
@@ -359,8 +342,8 @@ commands =
359
342
-r {tox_root}
360
343
361
344
362
- [testenv:next -sphinx]
363
- description =" Builds a package's documentation with the next version of sphinx"
345
+ [testenv:strict -sphinx]
346
+ description =" Builds a package's documentation with strict sphinx"
364
347
skipsdist = true
365
348
skip_install = true
366
349
passenv = *
@@ -369,9 +352,9 @@ setenv =
369
352
PROXY_URL =http://localhost:5023
370
353
deps =
371
354
{[base]deps}
372
- sphinx ==8 .2.0
373
- sphinx_rtd_theme ==3.0.2
374
- myst_parser ==4 .0.1
355
+ sphinx ==6 .2.1
356
+ sphinx_rtd_theme ==1. 3.0
357
+ myst_parser ==2 .0.0
375
358
sphinxcontrib-jquery ==4.1
376
359
PyGitHub>=1.59.0
377
360
commands =
@@ -385,8 +368,8 @@ commands =
385
368
python {repository_root}/eng/tox/run_sphinx_build.py \
386
369
-w {envtmpdir}/dist/unzipped/docgen \
387
370
-o {envtmpdir}/dist/site \
388
- -r {tox_root}
389
-
371
+ -r {tox_root} \
372
+ --strict true
390
373
391
374
[testenv:depends]
392
375
description = Ensures all modules in a target package can be successfully imported
@@ -396,12 +379,12 @@ setenv =
396
379
deps =
397
380
{[packaging]pkgs}
398
381
commands =
399
- {[tox]pip_command} install {repository_root}/tools/azure-sdk-tools --no-deps
382
+ python -m pip install {repository_root}/tools/azure-sdk-tools --no-deps
400
383
python {repository_root}/eng/tox/create_package_and_install.py \
401
384
-d {envtmpdir} \
402
385
-p {tox_root} \
403
386
-w {envtmpdir}
404
- {[tox]pip_command} freeze
387
+ python -m pip freeze
405
388
python {repository_root}/eng/tox/import_all.py -t {tox_root}
406
389
407
390
@@ -415,7 +398,7 @@ setenv =
415
398
deps =
416
399
{[packaging]pkgs}
417
400
commands =
418
- {[tox]pip_command} install {repository_root}/tools/azure-sdk-tools --no-deps
401
+ python -m pip install {repository_root}/tools/azure-sdk-tools --no-deps
419
402
python {repository_root}/eng/tox/create_package_and_install.py -d {envtmpdir} -p {tox_root} --skip-install True
420
403
python {repository_root}/eng/tox/verify_whl.py -d {envtmpdir} -t {tox_root}
421
404
@@ -425,12 +408,13 @@ description=Verify directories included in sdist and contents in manifest file.
425
408
skipsdist = true
426
409
skip_install = true
427
410
setenv =
428
- {[testenv]setenv} PROXY_URL =http://localhost:5010
411
+ {[testenv]setenv}
412
+ PROXY_URL =http://localhost:5010
429
413
deps =
430
414
{[packaging]pkgs}
431
415
commands =
432
- {[tox]pip_command} install {repository_root}/tools/azure-sdk-tools --no-deps
433
- sdk_build_package --package_folder {tox_root} - d {envtmpdir} --package_type sdist
416
+ python -m pip install {repository_root}/tools/azure-sdk-tools --no-deps
417
+ python {tox_root}/setup.py --q sdist - d {envtmpdir}
434
418
python {repository_root}/eng/tox/verify_sdist.py -d {envtmpdir} -t {tox_root}
435
419
436
420
@@ -450,7 +434,7 @@ commands =
450
434
commands =
451
435
python {repository_root}/eng/tox/install_depend_packages.py -t {tox_root} -d {env:DEPENDENCY_TYPE:} -w {envtmpdir}
452
436
python {repository_root}/eng/tox/create_package_and_install.py -d {envtmpdir} -p {tox_root} -w {envtmpdir} --pre-download-disabled
453
- {[tox]pip_command} freeze
437
+ python -m pip freeze
454
438
python {repository_root}/eng/tox/verify_installed_packages.py --packages-file {envtmpdir}/packages.txt
455
439
pytest {[pytest]default_args} {posargs} --no-cov {tox_root}
456
440
@@ -499,8 +483,8 @@ deps =
499
483
{[base]deps}
500
484
commands =
501
485
# install API stub generator
502
- {[tox]pip_command} install -r {repository_root}/eng/apiview_reqs.txt --index-url =" https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/"
503
- {[tox]pip_command} freeze
486
+ python -m pip install -r {repository_root}/eng/apiview_reqs.txt --index-url =" https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/"
487
+ python -m pip freeze
504
488
python {repository_root}/eng/tox/run_apistubgen.py -t {tox_root} -w {envtmpdir} {posargs}
505
489
506
490
@@ -515,8 +499,14 @@ setenv =
515
499
PROXY_URL =http://localhost:5015
516
500
deps =
517
501
{[base]deps}
502
+ importlib-metadata<5.0
518
503
commands =
519
- {[tox]pip_command} freeze
504
+ python {repository_root}/eng/tox/create_package_and_install.py \
505
+ -d {envtmpdir} \
506
+ -p {tox_root} \
507
+ -w {envtmpdir} \
508
+ --package-type sdist
509
+ python -m pip freeze
520
510
python {repository_root}/eng/tox/run_bandit.py -t {tox_root}
521
511
522
512
@@ -533,7 +523,7 @@ deps =
533
523
{[base]deps}
534
524
subprocess32; python_version < '3.5'
535
525
commands =
536
- {[tox]pip_command} freeze
526
+ python -m pip freeze
537
527
python {repository_root}/scripts/devops_tasks/test_run_samples.py -t {tox_root}
538
528
539
529
@@ -568,17 +558,17 @@ commands =
568
558
-p {tox_root} \
569
559
-w {envtmpdir} \
570
560
--package-type sdist
571
- python {repository_root}/scripts/breaking_changes_checker/detect_breaking_changes.py -t {tox_root} {posargs}
561
+ python {repository_root}/scripts/breaking_changes_checker/detect_breaking_changes.py -t {tox_root}
572
562
573
563
574
564
[testenv:black]
575
565
description =Runs the code formatter black
576
566
skip_install =true
577
567
deps =
578
568
black ==24.4.0
579
- -rdev_requirements.txt
580
569
commands =
581
- python {repository_root}/eng/tox/run_black.py -t {tox_root}
570
+ black --config {repository_root}/eng/black-pyproject.toml {posargs}
571
+
582
572
583
573
[testenv:generate]
584
574
description =Regenerate the code
@@ -599,5 +589,5 @@ setenv =
599
589
{[testenv]setenv}
600
590
PROXY_URL =http://localhost:5018
601
591
commands =
602
- {[tox]pip_command} install {toxinidir}/../../../tools/azure-sdk-tools[build]
592
+ {envbindir}/python -m pip install {toxinidir}/../../../tools/azure-sdk-tools[build]
603
593
python {repository_root}/eng/tox/run_optional.py -t {toxinidir} --temp ={envtmpdir} {posargs}
0 commit comments