Skip to content

Commit

Permalink
Merge branch 'pipinstall'
Browse files Browse the repository at this point in the history
  • Loading branch information
moltaire committed Nov 7, 2019
2 parents f41856c + 8a07221 commit d0c13ba
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 3 deletions.
File renamed without changes.
4 changes: 1 addition & 3 deletions glambox/__init__.py
Expand Up @@ -4,6 +4,4 @@
from . import analysis
from ._model import GLAM

__all__ = ['plots', 'analysis', 'GLAM']
__version__ = '0.0.1'
__name__ = 'glambox'
__all__ = ['plots', 'analysis', 'GLAM']
1 change: 1 addition & 0 deletions glambox/version.py
@@ -0,0 +1 @@
__version__ = "0.0.1"
9 changes: 9 additions & 0 deletions requirements.txt
@@ -0,0 +1,9 @@
matplotlib==3.1.1
numpy==1.17.3
pandas==0.25.2
pymc3==3.7
scipy==1.3.1
seaborn==0.9.0
statsmodels==0.10.1
Theano==1.0.4
tqdm==4.36.1
3 changes: 3 additions & 0 deletions setup.cfg
@@ -0,0 +1,3 @@
# Inside of setup.cfg
[metadata]
description-file = README.md
47 changes: 47 additions & 0 deletions setup.py
@@ -0,0 +1,47 @@
import codecs
import os
import sys

from setuptools import find_packages, setup

PROJECT_ROOT = os.path.dirname(os.path.realpath(__file__))
README_FILE = os.path.join(PROJECT_ROOT, "README.md")
VERSION_FILE = os.path.join(PROJECT_ROOT, "glambox", "version.py")
REQUIREMENTS_FILE = os.path.join(PROJECT_ROOT, "requirements.txt")


def get_long_description():
with codecs.open(README_FILE, "rt") as buff:
return buff.read()


def get_requirements():
with codecs.open(REQUIREMENTS_FILE) as buff:
return buff.read().splitlines()


with open(VERSION_FILE) as buff:
exec(buff.read())

if len(set(("test", "easy_install")).intersection(sys.argv)) > 0:
import setuptools

tests_require = []
extra_setuptools_args = {}

setup(
name="glambox",
version=__version__,
description="GLAMbox: A toolbox to fit the Gaze-weighted Linear Accumulator Model",
long_description=get_long_description(),
long_description_content_type="text/markdown",
url="http://github.com/glamlab/glambox",
download_url="https://github.com/glamlab/glambox/archive/%s.tar.gz" % __version__,
install_requires=get_requirements(),
maintainer="Felix Molter, Armin Thomas",
maintainer_email="felixmolter@gmail.com",
packages=find_packages(exclude=["tests", "test_*"]),
tests_require=tests_require,
license="MIT",
**extra_setuptools_args,
)

0 comments on commit d0c13ba

Please sign in to comment.