diff --git a/5minute.spec b/5minute.spec index 1bf9d10..f017537 100644 --- a/5minute.spec +++ b/5minute.spec @@ -1,11 +1,11 @@ -Name: 5minute -Version: 0.2.28 +Name: 5minute +Version: 0.2.29 Release: 1%{?dist} -Summary: Command line tool for getting instance from OpenStack +Summary: Command line tool for getting instance from OpenStack -License: GPLv2 -URL: https://github.com/SatelliteQE/5minute -Source0: https://github.com/BlackSmith/%{name}/archive/%{version}.tar.gz +License: GPLv2 +URL: https://github.com/SatelliteQE/5minute +Source0: https://github.com/BlackSmith/%{name}/archive/%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel @@ -19,7 +19,7 @@ BuildRequires: python3-novaclient BuildRequires: python3-keystoneclient BuildRequires: python3-glanceclient Requires: python3 -Requires: python3-cinderclient +Requires: python3-cinderclient Requires: python3-heatclient Requires: python3-neutronclient Requires: python3-xmltodict @@ -51,4 +51,3 @@ Give me an instance of mine image on OpenStack. Hurry! %{python3_sitelib}/* %changelog - diff --git a/setup.py b/setup.py index fe496dc..68865e3 100644 --- a/setup.py +++ b/setup.py @@ -17,9 +17,9 @@ def get_version(): - VERSIONFILE = path.join('vminute', '__init__.py') + VERSIONFILE = path.join('5minute.spec') initfile_lines = open(VERSIONFILE, 'rt').readlines() - VSRE = r"^__version__ ?= ?['\"]([^'\"]*)['\"]" + VSRE = r"^Version:\s*([^'\"]*)\s*" for line in initfile_lines: mo = re.search(VSRE, line, re.M) if mo: diff --git a/vminute/__init__.py b/vminute/__init__.py index 526c6d5..4cf39ab 100644 --- a/vminute/__init__.py +++ b/vminute/__init__.py @@ -2,7 +2,6 @@ from .vminute import main import sys -__version__ = "0.2.28" def main_main():