Skip to content

Commit

Permalink
[EngSys] making all packages uppercase to prevent issue with PyJWT an…
Browse files Browse the repository at this point in the history
…d pyjwt (#18364)
  • Loading branch information
seankane-msft authored Apr 27, 2021
1 parent d207900 commit a8baa16
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
11 changes: 9 additions & 2 deletions eng/tox/verify_installed_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,15 @@ def verify_packages(package_file_path):
sys.exit(1)

# find installed and expected packages
installed = dict(p.split('==') for p in get_installed_packages() if "==" in p)
expected = dict(p.split('==') for p in packages)
installed = {}
for p in get_installed_packages():
if "==" in p:
[package, version] = p.split("==")
installed[package.upper()] = version
expected = {}
for p in packages:
[package, version] = p.split("==")
expected[package.upper()] = version

missing_packages = [pkg for pkg in expected.keys() if installed.get(pkg) != expected.get(pkg)]

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[packaging]
package_name = "azure-messaging-webpubsubservice"
package_nspkg = "azure-messaging-nspkg"
package_pprint_name = "Azure Web PubSub Service"
package_doc_id = ""
is_stable = false
is_arm = false
need_msrestazure = false
auto_update = false

0 comments on commit a8baa16

Please sign in to comment.