-
Notifications
You must be signed in to change notification settings - Fork 24
/
setup.py
74 lines (64 loc) · 2.06 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
69
70
71
72
73
74
"""Setup PyLada."""
from os.path import dirname, join
from sys import platform, version_info
import setuptools
from setuptools import find_packages
from skbuild import setup
old_setup = setuptools.setup
def wrapped_setup(*args, **kwargs):
pckd = kwargs.pop("package_dir", {})
pckd[""] = "src"
kwargs["package_dir"] = pckd
return old_setup(*args, **kwargs)
setuptools.setup = wrapped_setup
tests_require = ["pytest>=6.1.0", "pytest-bdd>=4.0.1"]
install_requires = [
"py",
"numpy",
"scipy",
"quantities",
"cython",
"six",
"traitlets",
"f90nml>=1.0",
"nbconvert",
"nbformat",
"ipykernel",
"IPython",
"black",
]
if version_info[0] == 2:
tests_require.append("mock")
cmake_args = []
if platform.lower() == "darwin":
cmake_args.append("-DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.9")
setup(
name="pylada",
version="1.0.1",
install_requires=install_requires,
platforms=["GNU/Linux", "Unix", "Mac OS-X"],
author=["Peter Graf", "Mayeul d'Avezac"],
author_email=["[email protected]", "[email protected]"],
description="Productivity environment for Density Functional Theory",
license="GPL-2",
url="https://github.com/pylada/pylada",
packages=find_packages("src", exclude="tests"),
package_dir={"": "src"},
keywords="Physics",
classifiers=[
"Development Status :: 0 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU Public License v2 (GPLv2)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 2.7",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Libraries :: Application Frameworks",
],
long_description=open(join(dirname(__file__), "README.rst"), "r").read(),
extras_require={"dev": tests_require},
cmake_args=cmake_args,
cmake_languages=("CXX", "Fortran"),
)