File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 22import sys
33from subprocess import check_output
44
5- import pkg_resources
5+ from importlib . metadata import version , PackageNotFoundError
66
77
88def get_version ():
@@ -29,10 +29,10 @@ def assert_versions():
2929 expected_gauge_version = python_plugin_version
3030
3131 try :
32- getgauge_version = pkg_resources . get_distribution ('getgauge' ). version
32+ getgauge_version = version ('getgauge' )
3333 if getgauge_version != expected_gauge_version :
3434 install_getgauge ("getgauge==" + expected_gauge_version )
35- except pkg_resources . DistributionNotFound :
35+ except PackageNotFoundError :
3636 install_getgauge ("getgauge==" + expected_gauge_version )
3737
3838
Original file line number Diff line number Diff line change 11{
22 "id" : " python" ,
3- "version" : " 0.4.5 " ,
3+ "version" : " 0.4.6 " ,
44 "description" : " Python support for gauge" ,
55 "run" : {
66 "windows" : [
You can’t perform that action at this time.
0 commit comments