forked from imr-framework/pypulseq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
53 lines (47 loc) · 1.65 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
import setuptools
from version import major, minor, revision
def _get_long_description() -> str:
"""
Returns long description from `README.md` if possible, else 'Pulseq in Python'.
Returns
-------
str
Long description of PyPulseq project.
"""
try: # Unicode decode error on Windows
with open("README.md", "r") as fh:
long_description = fh.read()
except:
long_description = "Pulseq in Python"
return long_description
setuptools.setup(
author="Keerthi Sravan Ravi",
author_email="[email protected]",
classifiers=[
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Operating System :: OS Independent",
],
description="Pulseq in Python",
include_package_data=True,
install_requires=[
"coverage>=6.2",
"matplotlib>=3.5.2",
"numpy>=1.19.5",
"scipy>=1.8.1",
"sigpy==0.1.23",
],
license="License :: OSI Approved :: GNU Affero General Public License v3",
long_description=_get_long_description(),
long_description_content_type="text/markdown",
name="pypulseq",
packages=setuptools.find_packages(),
py_modules=["version"],
# package_data for wheel distributions; MANIFEST.in for source distributions
package_data={"pypulseq.SAR": ["QGlobal.mat"]},
project_urls={"Documentation": "https://pypulseq.readthedocs.io/en/latest/"},
python_requires=">=3.6.3",
url="https://github.com/imr-framework/pypulseq",
version=".".join((str(major), str(minor), str(revision))),
)