From fb4eb71606883efa283b4b25ec415f8826bfa04e Mon Sep 17 00:00:00 2001 From: Julian Hammer Date: Mon, 2 Oct 2017 13:44:31 +0200 Subject: [PATCH 1/2] fixed up setup.py --- setup.py | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) mode change 100644 => 100755 setup.py diff --git a/setup.py b/setup.py old mode 100644 new mode 100755 index e9a8523..ea641d0 --- a/setup.py +++ b/setup.py @@ -6,26 +6,24 @@ from setuptools import setup, find_packages from codecs import open import os, io, re -here = path.abspath(path.dirname(__file__)) +here = os.path.abspath(os.path.dirname(__file__)) # Stolen from pip def read(*names, **kwargs): - with io.open( - os.path.join(os.path.dirname(__file__), *names), - encoding=kwargs.get("encoding", "utf8") - ) as fp: - return fp.read() + with io.open(os.path.join(os.path.dirname(__file__), *names), + encoding=kwargs.get("encoding", "utf8")) as fp: + return fp.read() + # Stolen from pip def find_version(*file_paths): version_file = read(*file_paths) - version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", - version_file, re.M) - if version_match: - return version_match.group(1) - raise RuntimeError("Unable to find version string.") + version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M) + if version_match: + return version_match.group(1) + raise RuntimeError("Unable to find version string.") # Get the long description from the README file -with open(path.join(here, 'README.rst'), encoding='utf-8') as f: +with open(os.path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( @@ -43,7 +41,7 @@ setup( url='https://github.com/RRZE-HPC/OSACA', #Author details - author='Jan Laukemann' + author='Jan Laukemann', author_email='jan.laukemann@fau.de', #Choose your license @@ -74,7 +72,7 @@ setup( ], # What doesd your project relate to? - keywords='hpc performance benchmark analysis architecture' + keywords='hpc performance benchmark analysis architecture', # You can just specify the packages manually here if your project is From 571a5722c3f3362344078116cf1798f1ef3556b3 Mon Sep 17 00:00:00 2001 From: Julian Hammer Date: Mon, 2 Oct 2017 13:44:45 +0200 Subject: [PATCH 2/2] added tox.ini with trivial testcase --- tox.ini | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tox.ini diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..9ead9a7 --- /dev/null +++ b/tox.ini @@ -0,0 +1,5 @@ +[tox] +envlist = py35 +[testenv] +commands= + osaca