forked from amusecode/amuse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
62 lines (57 loc) · 1.59 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
#!/usr/bin/env python3
from support.classifiers import classifiers
from support.misc import find_data_files
from setuptools import setup
name = 'amuse-tutorial'
author = 'The AMUSE team'
author_email = 'info@amusecode.org'
license_ = "Apache License 2.0"
url = 'http://www.amusecode.org/'
install_requires = [
'matplotlib>=2.2',
'amuse-framework',
'amuse-bhtree',
'amuse-hermite',
'amuse-seba',
'amuse-sphray',
'notebook',
]
description = 'The Astrophysical Multipurpose Software Environment - tutorial'
with open("README.md", "r") as fh:
long_description = fh.read()
long_description_content_type = "text/markdown"
all_data_files = find_data_files(
'tutorial', 'share/amuse/tutorial', '*', recursive=True
)
try:
from tutorial.version import version
use_scm_version = False
setup_requires = []
except ImportError:
version = False
setup_requires = ['setuptools_scm']
use_scm_version = {
"root": "../..",
"relative_to": __file__,
"write_to": "tutorial/version.py",
}
setup(
name=name,
use_scm_version=use_scm_version,
setup_requires=setup_requires,
version=version,
classifiers=classifiers,
url=url,
author_email=author_email,
author=author,
license=license_,
description=description,
long_description=long_description,
long_description_content_type=long_description_content_type,
install_requires=install_requires,
python_requires=">=3.5",
# cmdclass=mapping_from_command_name_to_command_class,
data_files=all_data_files,
scripts=["bin/amuse-tutorial"],
packages=[],
)