-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathsetup.py
More file actions
47 lines (36 loc) · 1.41 KB
/
setup.py
File metadata and controls
47 lines (36 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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 <felixmolter@gmail.com>, Armin W. Thomas <athms.research@gmail.com>",
maintainer_email="glamlab.berlin@gmail.com",
packages=find_packages(exclude=["tests", "test_*"]),
tests_require=tests_require,
license="MIT",
**extra_setuptools_args,
)