-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
47 lines (41 loc) · 1.51 KB
/
setup.py
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
#! /usr/bin/env python
#
# Copyright (c) 2021 Angela Radulescu
import os, sys
from setuptools import setup, find_packages
path = os.path.abspath(os.path.dirname(__file__))
## Metadata
DISTNAME = 'gaze_tutorial'
MAINTAINER = 'Angela Radulescu'
MAINTAINER_EMAIL = '[email protected]'
DESCRIPTION = 'Computational modeling of gaze tutorial.'
URL = 'http://www.angelaradulescu.com'
LICENSE = 'MIT'
DOWNLOAD_URL = 'http://github.com/angelaradulescu/gaze_tutorial'
with open(os.path.join(path, 'README.rst'), encoding='utf-8') as readme_file:
README = readme_file.read()
with open(os.path.join(path, 'requirements.txt')) as requirements_file:
# Parse requirements.txt, ignoring any commented-out lines.
requirements = [line for line in requirements_file.read().splitlines()
if not line.startswith('#')]
VERSION = None
with open(os.path.join('gaze_tutorial', '__init__.py'), 'r') as fid:
for line in (line.strip() for line in fid):
if line.startswith('__version__'):
VERSION = line.split('=')[1].strip().strip('\'')
break
if VERSION is None:
raise RuntimeError('Could not determine version')
setup(name=DISTNAME,
maintainer=MAINTAINER,
maintainer_email=MAINTAINER_EMAIL,
description=DESCRIPTION,
url=URL,
version=VERSION,
download_url=DOWNLOAD_URL,
long_description=README,
packages=find_packages(exclude=['data']),
include_package_data=True,
install_requires=requirements,
license=LICENSE
)