-
Notifications
You must be signed in to change notification settings - Fork 20
/
setup.py
63 lines (58 loc) · 1.79 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
"""
setup.py adapted from https://github.com/kennethreitz/setup.py
"""
import io
import numpy as np
import os
from setuptools import setup
# Package meta-data.
name = "pyvorotomo"
description = "Parsimonious Voronoi-cell based tomograph (Fang et al., 2019)"
url = "https://github.com/malcolmw/PyVoroTomo"
email = "[email protected]"
author = "Hongjian Fang and Malcolm C. A. White"
requires_python = ">=3.8"
packages = ["pyvorotomo"]
required = [
"KDEpy>=1.0.3",
"mpi4py",
"numpy>=1.24.0",
"pandas",
"pykonal>=0.2.3b4",
"tables",
"scipy"
]
scripts = ["bin/pyvorotomo"]
license = "GNU GPLv3"
here = os.path.abspath(os.path.dirname(__file__))
# Load the package's __version__.py module as a dictionary.
about = {}
project_slug = name.lower().replace("-", "_").replace(" ", "_")
with open(os.path.join(here, project_slug, "__version__.py")) as f:
exec(f.read(), about)
# Where the magic happens:
setup(
name=name,
version=about["__version__"],
description=description,
author=author,
author_email=email,
python_requires=requires_python,
url=url,
packages=packages,
scripts=scripts,
install_requires=required,
license=license,
classifiers=[
'Development Status :: 3 - Alpha',
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering :: Physics"
]
)