-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
58 lines (49 loc) · 1.72 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
# coding: utf-8
#
# This code is part of dqmc.
#
# Copyright (c) 2021, Dylan Jones
#
# This code is licensed under the MIT License. The copyright notice in the
# LICENSE file in the root directory and this permission notice shall
# be included in all copies or substantial portions of the Software.
from setuptools import find_packages
import versioneer
from numpy.distutils.core import setup, Extension
def requirements():
with open("requirements.txt", "r") as f:
return f.readlines()
def long_description():
with open("README.md", "r") as f:
return f.read()
ext_modules = [
Extension(name="src.timeflow", sources=["dqmc/src/timeflow.f90"],
libraries=["lapack", "blas"]),
Extension(name="src.greens", sources=["dqmc/src/greens.f90"],
libraries=["lapack", "blas"])
]
setup(
name="dqmc",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
author="Dylan Jones",
author_email="[email protected]",
description="Determinant Quantum Monte Carlo simulations in python",
long_description=long_description(),
long_description_content_type="text/markdown",
url="https://github.com/dylanljones/dqmc",
packages=find_packages(),
ext_modules=ext_modules,
license="MIT License",
install_requires=requirements(),
python_requires=">=3.7",
classifiers=[
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Scientific/Engineering :: Physics',
],
keywords=["quantum monte carlo", "physics", "dqmc", ""],
)