Skip to content

Commit

Permalink
When installing dev package, target a specific index (Azure#3189)
Browse files Browse the repository at this point in the history
* When installing dev package, target a specific index. ensure we install a pinned version of pylint-guidelines-checker
  • Loading branch information
scbedd authored May 17, 2022
1 parent b53ce40 commit 958c5ba
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 2 additions & 0 deletions packages/python-packages/api-stub-generator/apiview_reqs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
./
pylint-guidelines-checker==0.0.3
2 changes: 1 addition & 1 deletion packages/python-packages/api-stub-generator/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"astroid>=2.11",
"charset-normalizer",
"pylint",
"pylint-guidelines-checker==0.0.3"
"pylint-guidelines-checker"
],
python_requires=">=3.7.0",
entry_points={"console_scripts": ["apistubgen=apistub:console_entry_point",]},
Expand Down
12 changes: 7 additions & 5 deletions packages/python-packages/api-stub-generator/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@ envlist = py310
deps =
pytest
-rdev_requirements.txt
setenv =
PIP_EXTRA_INDEX_URL = https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/
ignore_args=--ignore=.tox --ignore=build --ignore=.eggs
default_pytest_params = --junitxml={toxinidir}/test-junit-{envname}.xml --verbose --durations=10
skipsdist = true
skip_install = true
commands =
{envbindir}/python -m pip install -r {toxinidir}/apiview_reqs.txt --index-url https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/
pytest {toxinidir}/tests

[testenv:stubgen]
deps =
pylint
setenv =
PIP_EXTRA_INDEX_URL = https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/
pylint
skipsdist = true
skip_install = true
commands =
{envbindir}/python -m pip install -r {toxinidir}/apiview_reqs.txt --index-url https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/
apistubgen --pkg-path {toxinidir}/../apistubgentest --out-path {envtmpdir} --temp-path {envtmpdir} --verbose

0 comments on commit 958c5ba

Please sign in to comment.