slpkg/slpkg/version.py
Dimitris Zlatanidis abdc4bbf83 Updated for version 4.2.7
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
2022-11-05 19:27:26 +02:00

21 lines
512 B
Python

#!/usr/bin/python3
# -*- coding: utf-8 -*-
from dataclasses import dataclass
from slpkg.configs import Configs
@dataclass
class Version:
prog_name: str = Configs.prog_name
version_info: tuple = (4, 2, 7)
version: str = '{0}.{1}.{2}'.format(*version_info)
license: str = 'MIT License'
author: str = 'dslackw'
homepage: str = 'https://dslackw.gitlab.io/slpkg'
def view(self):
print(f'{self.prog_name} version: {self.version}\n'
f'Homepage: {self.homepage}')