Don't use .build file for minor version because we define the full version in pylast.py as well
This commit is contained in:
parent
79d741269a
commit
aa022c5a71
|
@ -3,4 +3,3 @@ include setup.py
|
|||
include README
|
||||
include COPYING
|
||||
include INSTALL
|
||||
include .build
|
||||
|
|
20
setup.py
20
setup.py
|
@ -5,27 +5,9 @@ from distutils.core import setup
|
|||
import os
|
||||
|
||||
|
||||
def get_build():
|
||||
path = "./.build"
|
||||
|
||||
if os.path.exists(path):
|
||||
fp = open(path, "r")
|
||||
build = eval(fp.read())
|
||||
if os.path.exists("./.increase_build"):
|
||||
build += 1
|
||||
fp.close()
|
||||
else:
|
||||
build = 1
|
||||
|
||||
fp = open(path, "w")
|
||||
fp.write(str(build))
|
||||
fp.close()
|
||||
|
||||
return str(build)
|
||||
|
||||
setup(
|
||||
name="pylast",
|
||||
version="1.0." + get_build(),
|
||||
version="1.0.0",
|
||||
author="Amr Hassan <amr.hassan@gmail.com>",
|
||||
description=("A Python interface to Last.fm "
|
||||
"(and other API compatible social networks)"),
|
||||
|
|
Loading…
Reference in a new issue