Tweak how we show pyCOREPOS package version

per upstream changes
This commit is contained in:
Lance Edgar 2020-07-15 21:45:48 -05:00
parent 0729a8902f
commit 310baea00f

View file

@ -14,13 +14,13 @@ class CommonView(base.CommonView):
project_version = rattail_demo.__version__ + '+dev' project_version = rattail_demo.__version__ + '+dev'
def get_packages(self): def get_packages(self):
import corepos._version import corepos
import rattail_corepos import rattail_corepos
import rattail_tempmon import rattail_tempmon
import tailbone_corepos import tailbone_corepos
packages = super(CommonView, self).get_packages() packages = super(CommonView, self).get_packages()
packages['pyCOREPOS'] = corepos._version.__version__ packages['pyCOREPOS'] = corepos.__version__
packages['rattail-corepos'] = rattail_corepos.__version__ packages['rattail-corepos'] = rattail_corepos.__version__
packages['rattail-tempmon'] = rattail_tempmon.__version__ packages['rattail-tempmon'] = rattail_tempmon.__version__
packages['tailbone-corepos'] = tailbone_corepos.__version__ packages['tailbone-corepos'] = tailbone_corepos.__version__