-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
68 lines (56 loc) · 1.84 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# -*- coding: utf-8 -*-
# @Author: Theo Lemaire
# @Email: theo.lemaire1@gmail.com
# @Date: 2019-06-04 18:26:42
# @Last Modified by: Theo Lemaire
# @Last Modified time: 2023-03-16 13:22:53
import os
from setuptools import setup
readme_file = 'README.md'
requirements_file = 'requirements.txt'
def readme():
with open(readme_file, encoding="utf8") as f:
return f.read()
def description():
with open(readme_file, encoding="utf8") as f:
started = False
lines = []
for line in f:
if not started:
if line.startswith('# Description'):
started = True
else:
if line.startswith('#'):
break
else:
lines.append(line)
return ''.join(lines).strip('\n')
def getFiles(path):
return [f'{path}/{x}' for x in os.listdir(path)]
def get_requirements():
with open(requirements_file, 'r', encoding="utf8") as f:
reqs = f.read().splitlines()
return reqs
setup(
name='MorphoSONIC',
version='1.0',
description=description(),
long_description=readme(),
url='https://github.com/tjjlemaire/MorphoSONIC',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Physics'
],
keywords=('SONIC NICE extended nerve axon morphology acoustic ultrasound ultrasonic \
neuromodulation neurostimulation excitation computational model intramembrane \
cavitation'),
author='Théo Lemaire',
author_email='theo.lemaire@epfl.ch',
license='MIT',
packages=['MorphoSONIC'],
scripts=getFiles('scripts') + getFiles('tests') + getFiles('examples'),
install_requires=get_requirements(),
zip_safe=False
)