-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathsetup.py
44 lines (39 loc) · 1.42 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
from setuptools import setup, find_packages
with open('README.md') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read().replace('.. :changelog:', '')
with open("requirements.txt") as req_file:
requirements = list(filter(None, req_file.read().split("\n")))
__version__ = None
with open("utime/version.py") as version_file:
exec(version_file.read())
if __version__ is None:
raise ValueError("Did not find __version__ in version.py file.")
setup(
name='utime',
version=__version__,
description='A deep learning framework for automatic PSG sleep analysis.',
long_description=readme + "\n\n" + history,
long_description_content_type='text/markdown',
author='Mathias Perslev',
author_email='[email protected]',
url='https://github.com/perslev/U-Time',
license="LICENSE.txt",
packages=find_packages(),
package_dir={'utime':
'utime'},
include_package_data=True,
setup_requires=["setuptools_git>=0.3",],
entry_points={
'console_scripts': [
'ut=utime.bin.ut:entry_func',
],
},
install_requires=requirements,
classifiers=['Environment :: Console',
'Operating System :: POSIX',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'License :: OSI Approved :: MIT License']
)