Skip to content

Commit

Permalink
Merge pull request #111 from OneraHub/master
Browse files Browse the repository at this point in the history
Pypi packaging
  • Loading branch information
relf authored Sep 5, 2018
2 parents 6ace718 + 1955da2 commit e44ac1e
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 5 deletions.
13 changes: 13 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[paths]
source =
smt

[html]
directory = coverage_html_report

[run]
omit =
*/tests/*
*/examples/*
*/__init__.py
*/setup.py
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ smt/src/rmts/rmtsclib.cpp
.project
.pydevproject
.settings/
/.coverage
/coverage_html_report
/dist
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
[metadata]
description-file = README.md
license_file = LICENSE.txt

49 changes: 44 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'''
Author: Dr. John T. Hwang <[email protected]>
Dr. Mohamed A. Bouhlel <mbouhlel@umich>
Dr. Mohamed A. Bouhlel <[email protected]>
Remi Lafage <[email protected]>
This package is distributed under New BSD license.
'''
Expand All @@ -11,6 +12,37 @@
from subprocess import call
import numpy as np

CLASSIFIERS = """\
Development Status :: 5 - Production/Stable
Intended Audience :: Science/Research
Intended Audience :: Developers
License :: OSI Approved :: BSD License
Programming Language :: C++
Programming Language :: Python
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3.6
Programming Language :: Python :: Implementation :: CPython
Topic :: Software Development
Topic :: Scientific/Engineering
Operating System :: Microsoft :: Windows
Operating System :: Unix
Operating System :: MacOS
"""

LONG_DESCRIPTION= """
The surrogate modeling toolbox (SMT) is a Python package that contains
a collection of surrogate modeling methods, sampling techniques, and
benchmarking functions. This package provides a library of surrogate
models that is simple to use and facilitates the implementation of additional methods.
SMT is different from existing surrogate modeling libraries because of
its emphasis on derivatives, including training derivatives used for
gradient-enhanced modeling, prediction derivatives, and derivatives
with respect to the training data. It also includes new surrogate models
that are not available elsewhere: kriging by partial-least squares reduction
and energy-minimizing spline interpolation.
"""

try:
import Cython
except ImportError:
Expand Down Expand Up @@ -52,12 +84,16 @@
include_dirs=[np.get_include(),
]))

setup(name='smt',
version='0.2',

metadata = dict(
name='smt',
version='0.2.1',
description='The Surrogate Modeling Toolbox (SMT)',
author='Mohamed Amine Bouhlel',
long_description=LONG_DESCRIPTION,
author='Mohamed Amine Bouhlel et al.',
author_email='[email protected]',
license='BSD-3',
classifiers=[_f for _f in CLASSIFIERS.split('\n') if _f],
packages=[
'smt',
'smt/surrogate_models',
Expand All @@ -73,8 +109,11 @@
'six>=1.10',
'scipy'
],
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*',
zip_safe=False,
ext_modules=ext,
url = 'https://github.com/SMTorg/smt', # use the URL to the github repo
download_url = 'https://github.com/SMTorg/smt/archive/v0.2.tar.gz',
download_url = 'https://github.com/SMTorg/smt/releases',
)

setup(**metadata)

0 comments on commit e44ac1e

Please sign in to comment.