This repository has been archived by the owner on Sep 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
68 lines (59 loc) · 1.92 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
import sys
import versioneer
if sys.version_info[:2] < (3, 6):
raise RuntimeError("Python version >= 3.6 required.")
from setuptools import setup, find_packages
with open("README.md", "r") as fh:
long_description = fh.read()
try:
from setuptools_rust import RustExtension, Binding
except ImportError:
import subprocess
errno = subprocess.call([sys.executable, "-m", "pip", "install", "setuptools-rust"])
if errno:
print("Please install setuptools-rust package")
raise SystemExit(errno)
else:
from setuptools_rust import RustExtension, Binding
setup(
name="pysprint",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
author="Péter Leéh",
author_email="leeh123peter@gmail.com",
description="Spectrally refined interferometry for Python",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/Ptrskay3/PySprint",
packages=find_packages(),
include_package_data=True,
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Rust",
"Development Status :: 4 - Beta",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Physics",
],
install_requires=[
"numpy>=1.16.6",
"scipy",
"matplotlib",
"pandas",
"Jinja2",
"scikit-learn",
],
setup_requires=["setuptools-rust>=0.11.4", "wheel"],
extras_require={"optional": ["numba", "lmfit", "pytest", "dask"]},
rust_extensions=[
RustExtension(
"pysprint.pysprint",
"Cargo.toml",
debug=False,
binding=Binding.PyO3,
# py_limited_api=True,
# features=["pyo3/abi3"],
),
],
zip_safe=False,
)