Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

Commit

Permalink
Merge pull request #42 from BlackSmith/master
Browse files Browse the repository at this point in the history
Fix version detect
  • Loading branch information
BlackSmith authored Feb 28, 2018
2 parents 1382487 + d1cc8e5 commit eae2960
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
15 changes: 7 additions & 8 deletions 5minute.spec
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down Expand Up @@ -51,4 +51,3 @@ Give me an instance of mine image on OpenStack. Hurry!
%{python3_sitelib}/*

%changelog

4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion vminute/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from .vminute import main
import sys
__version__ = "0.2.28"


def main_main():
Expand Down

0 comments on commit eae2960

Please sign in to comment.