-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
45 lines (41 loc) · 1.34 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
import setuptools
import os
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
version = None
with open(os.path.join('eeglabio', '_version.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 obtain version')
with open("requirements.txt") as f:
requires = f.read().splitlines()
GITHUB_URL = "https://github.com/jackz314/eeglabio"
setuptools.setup(
name="eeglabio",
version=version,
author="Jack Zhang",
author_email="[email protected]",
description="I/O support for EEGLAB files in Python",
license="BSD (3-clause)",
long_description=long_description,
long_description_content_type="text/markdown",
url=GITHUB_URL,
download_url=GITHUB_URL,
project_urls={
"Source": GITHUB_URL,
"Tracker": GITHUB_URL + '/issues',
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
],
packages=setuptools.find_packages(exclude=("*tests",)),
python_requires=">=3.7",
include_package_data=True,
install_requires=requires,
keywords="EEG MEG MNE EEGLAB",
)