lanscape 1.3.0a5__py3-none-any.whl → 1.3.0a6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of lanscape might be problematic. Click here for more details.

@@ -1,7 +1,7 @@
1
1
  import logging
2
2
  import requests
3
3
  import traceback
4
- import pkg_resources
4
+ from importlib.metadata import version, PackageNotFoundError
5
5
  from random import randint
6
6
 
7
7
  from .app_scope import is_local_run
@@ -45,8 +45,8 @@ def lookup_latest_version(package=PACKAGE):
45
45
  def get_installed_version(package=PACKAGE):
46
46
  if not is_local_run():
47
47
  try:
48
- return pkg_resources.get_distribution(package).version
49
- except:
48
+ return version(package)
49
+ except PackageNotFoundError:
50
50
  log.debug(traceback.format_exc())
51
51
  log.warning(f'Cannot find {package} installation')
52
52
  return LOCAL_VERSION
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lanscape
3
- Version: 1.3.0a5
3
+ Version: 1.3.0a6
4
4
  Summary: A python based local network scanner
5
5
  Author-email: Michael Dennis <michael@dipduo.com>
6
6
  Project-URL: Homepage, https://github.com/mdennis281/py-lanscape
@@ -11,7 +11,7 @@ lanscape/libraries/port_manager.py,sha256=fNext3FNfGnGYRZK9RhTEwQ2K0e0YmmMlhK4zV
11
11
  lanscape/libraries/runtime_args.py,sha256=zL8QB_Y69OBGjScytuuyHqdy2XimwpypMSPM3_etz7g,1811
12
12
  lanscape/libraries/service_scan.py,sha256=jLU84ZoJnqSQbE30Zly2lm2zHrCGutNXjla1sEvp1hE,1949
13
13
  lanscape/libraries/subnet_scan.py,sha256=0LW_xdoL-PRp59rJr6r6pSL3LiXEO_SJnjdrgEF_pO8,13120
14
- lanscape/libraries/version_manager.py,sha256=Mh8VptGmv03d0tCpS-DFVgsxD5qWMA8iIG1KVcWOp4A,1690
14
+ lanscape/libraries/version_manager.py,sha256=v-IsZ7sYIsNRiraIRckGZthlyL0iTuscR6jF_o9LBK8,1720
15
15
  lanscape/libraries/web_browser.py,sha256=mMc_48g2_GZ0FdHOUuy63pBgYKIdmEz16WtYd0pzhIM,4324
16
16
  lanscape/resources/mac_addresses/convert_csv.py,sha256=w3Heed5z2mHYDEZNBep3_hNg4dbrp_N6J54MGxnrq4s,721
17
17
  lanscape/resources/mac_addresses/mac_db.json,sha256=ygtFSwNwJzDlg6hmAujdgCyzUjxt9Di75J8SO4xYIs8,2187804
@@ -64,8 +64,8 @@ lanscape/ui/templates/scan/ip-table-row.html,sha256=ptY24rxJRaA4PEEQRDncaq6Q0ql5
64
64
  lanscape/ui/templates/scan/ip-table.html,sha256=ds__UP9JiTKf5IxCmTMzw--eN_yg1Pvn3Nj1KvQxeZg,940
65
65
  lanscape/ui/templates/scan/overview.html,sha256=FsX-jSFhGKwCxZGKE8AMKk328UuawN6O9RNTzYvIOts,1205
66
66
  lanscape/ui/templates/scan/scan-error.html,sha256=Q4eZM5ThrxnFaWOSTUpK8hA2ksHwhxOBTaVUCLALhyA,1032
67
- lanscape-1.3.0a5.dist-info/licenses/LICENSE,sha256=cCO-NbS01Ilwc6djHjZ7LIgPFRkRmWdr0fH2ysXKioA,1090
68
- lanscape-1.3.0a5.dist-info/METADATA,sha256=3LQcX6wgMnYdze5jQDdWenaj64cdEuluxPMo3is56xw,2123
69
- lanscape-1.3.0a5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
70
- lanscape-1.3.0a5.dist-info/top_level.txt,sha256=E9D4sjPz_6H7c85Ycy_pOS2xuv1Wm-ilKhxEprln2ps,9
71
- lanscape-1.3.0a5.dist-info/RECORD,,
67
+ lanscape-1.3.0a6.dist-info/licenses/LICENSE,sha256=cCO-NbS01Ilwc6djHjZ7LIgPFRkRmWdr0fH2ysXKioA,1090
68
+ lanscape-1.3.0a6.dist-info/METADATA,sha256=HhwZRp7f-0IwPDHginCcuPUqp5TsdPHJgecFcF4jUN0,2123
69
+ lanscape-1.3.0a6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
70
+ lanscape-1.3.0a6.dist-info/top_level.txt,sha256=E9D4sjPz_6H7c85Ycy_pOS2xuv1Wm-ilKhxEprln2ps,9
71
+ lanscape-1.3.0a6.dist-info/RECORD,,