Skip to content

Commit

Permalink
Merge pull request #125 from sigvaldm/setup
Browse files Browse the repository at this point in the history
Bugfix #124: imports GPy before installing it
  • Loading branch information
ndem0 authored Dec 15, 2020
2 parents 6d2c3ff + 8b5a08b commit c055a41
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 19 deletions.
11 changes: 1 addition & 10 deletions ezyrb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,7 @@
'approximation', 'rbf', 'linear', 'gpr'
]

__project__ = 'EZyRB'
__title__ = "ezyrb"
__author__ = "Nicola Demo, Marco Tezzele"
__copyright__ = "Copyright 2016-2019, EZyRB contributors"
__license__ = "MIT"
__version__ = "1.0"
__mail__ = '[email protected], [email protected]'
__maintainer__ = __author__
__status__ = "Stable"

from .meta import *
from .database import Database
from .reduction import Reduction
from .pod import POD
Expand Down
20 changes: 20 additions & 0 deletions ezyrb/meta.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
__all__ = [
'__project__',
'__title__',
'__author__',
'__copyright__',
'__license__',
'__version__',
'__mail__',
'__maintainer__',
'__status__']

__project__ = 'EZyRB'
__title__ = "ezyrb"
__author__ = "Nicola Demo, Marco Tezzele"
__copyright__ = "Copyright 2016-2019, EZyRB contributors"
__license__ = "MIT"
__version__ = "1.0"
__mail__ = '[email protected], [email protected]'
__maintainer__ = __author__
__status__ = "Stable"
21 changes: 12 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
from setuptools import setup, Command
import os
import sys
import ezyrb
from shutil import rmtree

meta = {}
with open("ezyrb/meta.py") as fp:
exec(fp.read(), meta)

# Package meta-data.
NAME = ezyrb.__title__
NAME = meta['__title__']
DESCRIPTION = 'Easy Reduced Basis'
URL = 'https://github.com/mathLab/EZyRB'
MAIL = ezyrb.__mail__
AUTHOR = ezyrb.__author__
VERSION = ezyrb.__version__
MAIL = meta['__mail__']
AUTHOR = meta['__author__']
VERSION = meta['__version__']
KEYWORDS='pod interpolation reduced-basis model-order-reduction'

REQUIRED = [
Expand Down Expand Up @@ -75,10 +78,10 @@ def run(self):
author=AUTHOR,
author_email=MAIL,
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Mathematics'
],
Expand Down

0 comments on commit c055a41

Please sign in to comment.