diff --git a/setup.py b/setup.py index f0d7341..c39c65f 100755 --- a/setup.py +++ b/setup.py @@ -2,9 +2,10 @@ import codecs import os -from distutils.core import setup +from setuptools import setup +import pathlib -version = '?' +version = '1.7.4+1.0.0' root = os.path.dirname(os.path.abspath(__file__)) # Path to __version__ module version_file = os.path.join(root, 'roberta', '__version__.py') @@ -12,17 +13,28 @@ # If not create the __version__ module containing the version if not os.path.exists(os.path.join(root, 'PKG-INFO')): fd = codecs.open(version_file, 'w', 'utf-8') - fd.write('version = %r\n' % os.getenv('VERSION', '?')) + fd.write('version = %r\n' % os.getenv('VERSION', version)) fd.close() # Load version + exec(open(version_file).read()) # TODO: convert README.md to long_desc # https://gist.github.com/aubricus/9184003#file-setup_snippet-py +HERE = pathlib.Path(__file__).parent + +# The text of the README file +path = HERE/"README.md" + +with path.open(mode='r') as fid: + README = fid.read() + setup(name='openrobertalab', version=version, description='lab.open-roberta.org connector for ev3dev.org', + long_description=README, + long_description_content_type='text/markdown', author='Stefan Sauer', author_email='ensonic@google.com', url='https://www.open-roberta.org/',