[DEV] update version model

This commit is contained in:
Edouard DUPIN 2019-08-28 00:23:32 +02:00
parent e809d2c309
commit 492743cd6a

View File

@ -9,14 +9,26 @@
##
from setuptools import setup
import os
def readme():
with open('README.rst') as f:
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
setup(name='island',
version='0.9.0',
version=read_version_file(),
description='island generic source manager (like repo in simple mode)',
long_description=readme(),
url='http://github.com/HeeroYui/island',