From a5c620379b7e5c271ffa0158e5285f59bb5be708 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Fri, 26 Apr 2019 20:54:58 +0200 Subject: [PATCH] tools to build a python wheel distribution --- python/MANIFEST.in | 1 + python/damask/README | 1 + python/setup.py | 11 ++++++++--- 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 python/MANIFEST.in create mode 120000 python/damask/README diff --git a/python/MANIFEST.in b/python/MANIFEST.in new file mode 100644 index 000000000..bb6d21f36 --- /dev/null +++ b/python/MANIFEST.in @@ -0,0 +1 @@ +include damask/VERSION diff --git a/python/damask/README b/python/damask/README new file mode 120000 index 000000000..3830a4118 --- /dev/null +++ b/python/damask/README @@ -0,0 +1 @@ +../../README \ No newline at end of file diff --git a/python/setup.py b/python/setup.py index 823365d34..e49872354 100644 --- a/python/setup.py +++ b/python/setup.py @@ -1,15 +1,20 @@ import setuptools +import os + +with open(os.path.join(os.path.dirname(__file__),'damask/VERSION')) as f: + version = f.readline()[1:-1] setuptools.setup( name="damask", - version="0.0.1", + version=version, author="The DAMASK team", author_email="damask@mpie.de", description="Python library for DAMASK", long_description='test', - long_description_content_type="text/markdown", - url="https://github.com/pypa/sampleproject", + #long_description_content_type="text/markdown", + url="https://damask.mpie.de", packages=setuptools.find_packages(), + include_package_data=True, classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: GLPv3",