Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F84254398
setup.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Sep 21, 16:09
Size
1 KB
Mime Type
text/x-python
Expires
Mon, Sep 23, 16:09 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20971218
Attached To
R4670 PySONIC (old)
setup.py
View Options
# -*- coding: utf-8 -*-
# @Author: Theo Lemaire
# @Email: theo.lemaire@epfl.ch
# @Date: 2017-06-13 09:40:02
# @Last Modified by: Theo Lemaire
# @Last Modified time: 2021-03-16 18:26:21
import
os
from
setuptools
import
setup
readme_file
=
'README.md'
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
)]
setup
(
name
=
'PySONIC'
,
version
=
'1.0'
,
description
=
description
(),
long_description
=
readme
(),
url
=
'https://iopscience.iop.org/article/10.1088/1741-2552/ab1685'
,
classifiers
=
[
'Development Status :: 4 - Beta'
,
'Intended Audience :: Science/Research'
,
'Programming Language :: Python :: 3'
,
'Topic :: Scientific/Engineering :: Physics'
],
keywords
=
(
'SONIC NICE acoustic ultrasound ultrasonic neuromodulation neurostimulation excitation
\
computational model intramembrane cavitation'
),
author
=
'Théo Lemaire'
,
author_email
=
'theo.lemaire@epfl.ch'
,
license
=
'MIT'
,
packages
=
[
'PySONIC'
],
scripts
=
getFiles
(
'scripts'
)
+
getFiles
(
'tests'
),
install_requires
=
[
'numpy>=1.10'
,
'scipy>=0.17'
,
'matplotlib>=2'
,
'pandas>=1.0.2'
,
'colorlog>=3.0.1'
,
'tqdm>=4.3'
,
'lockfile>=0.1.2'
,
'multiprocess>=0.70'
,
'pushbullet.py>=0.11.0'
,
'boltons>=20.1.0'
],
zip_safe
=
False
)
Event Timeline
Log In to Comment