Skip to content

Commit

Permalink
add setup.py script for pip
Browse files Browse the repository at this point in the history
  • Loading branch information
bast committed Nov 30, 2017
1 parent f2b29dd commit 7aa062d
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
from setuptools import setup
import os
import sys

_here = os.path.abspath(os.path.dirname(__file__))

if sys.version_info[0] < 3:
with open(os.path.join(_here, 'README.rst')) as f:
long_description = f.read()
else:
with open(os.path.join(_here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()

version = {}
with open(os.path.join(_here, 'runtest', 'version.py')) as f:
exec(f.read(), version)

setup(
name='runtest',
version=version['__version__'],
description=('Numerically tolerant end-to-end test library for scientific codes.'),
long_description=long_description,
author='Radovan Bast',
author_email='[email protected]',
url='https://github.com/bast/runtest',
license='MPL-2.0',
packages=['runtest'],
# no dependencies
# install_requires=[
# 'dependency==1.2.3',
# ],
# no scripts
# scripts=['bin/a-script'],
include_package_data=True,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.6'],
)

0 comments on commit 7aa062d

Please sign in to comment.