[DEV] update version model
This commit is contained in:
parent
48d1ff1937
commit
9ca3f693a2
13
setup.py
13
setup.py
@ -9,14 +9,25 @@
|
|||||||
##
|
##
|
||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
import os
|
||||||
|
|
||||||
def readme():
|
def readme():
|
||||||
with open('README.rst') as f:
|
with open('README.rst') as f:
|
||||||
return f.read()
|
return f.read()
|
||||||
|
|
||||||
|
def read_version_file():
|
||||||
|
if not os.path.isfile("version.txt"):
|
||||||
|
return ""
|
||||||
|
file = open("version.txt", "r")
|
||||||
|
data_file = file.read()
|
||||||
|
file.close()
|
||||||
|
if len(data_file) > 4 and data_file[-4:] == "-dev":
|
||||||
|
data_file = data_file[:-4]
|
||||||
|
return data_file
|
||||||
|
|
||||||
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
|
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
|
||||||
setup(name='lutin',
|
setup(name='lutin',
|
||||||
version='2.5.0',
|
version=read_version_file(),
|
||||||
description='Lutin generic builder (might replace makefile, CMake ...)',
|
description='Lutin generic builder (might replace makefile, CMake ...)',
|
||||||
long_description=readme(),
|
long_description=readme(),
|
||||||
url='http://github.com/HeeroYui/lutin',
|
url='http://github.com/HeeroYui/lutin',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user