Skip to content

Commit ab3f145

Browse files
authored
Disable dev-setup "Develop" mode in CI checks (Azure#7162)
* update sdist to not install in develop * allowing CI to run dev_setup without develop mode * updating appconfiguration manifest so that the sdist can properly install * update applicationinsights manifest so that the sdist can properly install * bugfix in dev_setup.py, bad syntax. adding 'develop' environment to the tox.ini * datalake analytics packages have bad manifests * repair manifest for sdist azure-eventhub * adding manifest for identity * updating manifest for scheduler * repair manifest for servermanager
1 parent 7354bbd commit ab3f145

File tree

12 files changed

+44
-6
lines changed

12 files changed

+44
-6
lines changed

eng/tox/tox.ini

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,20 @@ deps =
5555
commands =
5656
- mypy {toxinidir}/azure
5757

58-
5958
[testenv:sdist]
6059
skipsdist = false
6160
skip_install = false
61+
changedir = {toxinidir}
62+
deps =
63+
{[base]deps}
64+
commands =
65+
pytest \
66+
{posargs} \
67+
{toxinidir}
68+
69+
[testenv:develop]
70+
skipsdist = false
71+
skip_install = false
6272
usedevelop = true
6373
changedir = {toxinidir}
6474
deps =

scripts/dev_setup.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ def pip_command(command, additional_dir=".", error_ok=False):
4242
default="",
4343
help="Comma separated list of targeted packages. Used to limit the number of packages that dependencies will be installed for.",
4444
)
45+
parser.add_argument(
46+
"--disabledevelop",
47+
dest="develop_mode_disabled",
48+
default=False,
49+
action="store_true",
50+
help="Add this argument if you would prefer to install the package with a simple `pip install` versus `pip install -e`",
51+
)
52+
53+
4554
args = parser.parse_args()
4655

4756
packages = {
@@ -122,8 +131,12 @@ def pip_command(command, additional_dir=".", error_ok=False):
122131
"install -r dev_requirements.txt",
123132
os.path.join(packages[package_name], package_name),
124133
)
134+
135+
mode_arg = "" if args.develop_mode_disabled else "-e"
136+
125137
pip_command(
126-
"install --ignore-requires-python -e {}".format(
138+
"install --ignore-requires-python {} {}".format(
139+
mode_arg,
127140
os.path.join(packages[package_name], package_name)
128141
)
129142
)

scripts/devops_tasks/setup_execute_tests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,9 @@ def prep_tests(targeted_packages, python_version):
6565
[
6666
python_version,
6767
dev_setup_script_location,
68+
"--disabledevelop",
6869
"-p",
69-
",".join([os.path.basename(p) for p in targeted_packages]),
70+
",".join([os.path.basename(p) for p in targeted_packages])
7071
],
7172
root_dir,
7273
)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
recursive-include tests *.py *.yaml
2-
include *.rst
2+
include *.md
33
include azure/__init__.py
44
include azure/data/__init__.py
55

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
include *.rst
2+
3+
include azure/__init__.py
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
include *.rst
2+
include azure/__init__.py
3+
include azure/mgmt/__init__.py
4+
include azure/mgmt/datalake/__init__.py
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
include *.rst
2+
include azure/__init__.py
3+
include azure/mgmt/__init__.py
4+
include azure/mgmt/datalake/__init__.py
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
include *.rst
1+
include *.md
22
include azure/__init__.py
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include *.md
2+
include azure/__init__.py
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
include *.rst
2+
include azure/__init__.py
3+
include azure/mgmt/__init__.py
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
include *.rst
2+
include azure/__init__.py
3+
include azure/mgmt/__init__.py

sdk/storage/azure-storage-queue/dev_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
-e ../../../tools/azure-sdk-tools
33
-e ../../identity/azure-identity
44
aiohttp>=3.0; python_version >= '3.5'
5-
pytest
5+
pytest

0 commit comments

Comments
 (0)